Page MenuHomePhabricator

Why Phabricator does not load CSS
OpenPublic

Asked by icebearsoft on Sep 30 2016, 8:54 AM.

Details

I have a problem with phabricator, the screenshot shows that it does not use CSS. When creating an administrative account I thought that it cannot find CSS because it is not fully configured but the dministrative account did not solve the problem.

I have installed all required prerequisites. Phabricator at my host enforces https, if accessed via http, "RedirectMatch permanent" to https is forced.

All three components have been cloned to /var/www/PhabricatorInstallation (more precisely, it was first in /usr/local/PhabricatorInstallation but then I have moved it so that setting of Apache 2.4 were easier. My virtual host configuration contains:

<VirtualHost *:443>
ServerName code.math-gnostics.eu
DocumentRoot /var/www/PhabricatorInstallation/phabricator/webroot

RewriteEngine on
RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
RewriteRule ^/favicon.ico   -                       [L,QSA]
RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

<Directory "/var/www/PhabricatorInstallation/phabricator/webroot">
Require all granted
</Directory>

Include conf.d/ssl.include
</VirtualHost>

I have several SSL virtual host, therefore all SSL related commands are in ssl.include.

I have looked into /var/log/httpd/ssl_error_log and there is no error message. /var/log/httpd/ssl_access_log contains these messages:

78.80.17.21 - - [28/Sep/2016:22:36:13 +0200] "GET /res/defaultX/phabricator/4aa80958/conpherence.pkg.css HTTP/1.1" 404 251
78.80.17.21 - - [28/Sep/2016:22:36:13 +0200] "GET /res/defaultX/phabricator/2fd26498/core.pkg.css HTTP/1.1" 404 244
78.80.17.21 - - [28/Sep/2016:22:37:33 +0200] "GET /res/defaultX/phabricator/2fd26498/core.pkg.css HTTP/1.1" 404 244
78.80.17.21 - - [28/Sep/2016:22:37:33 +0200] "GET /res/defaultX/phabricator/4aa80958/conpherence.pkg.css HTTP/1.1" 404 251
78.80.17.21 - - [28/Sep/2016:22:47:59 +0200] "GET /res/defaultX/phabricator/2fd26498/core.pkg.css HTTP/1.1" 404 244
78.80.17.21 - - [28/Sep/2016:22:47:59 +0200] "GET /res/defaultX/phabricator/4aa80958/conpherence.pkg.css HTTP/1.1" 404 251
78.80.17.21 - - [28/Sep/2016:23:03:39 +0200] "GET /res/defaultX/phabricator/2fd26498/core.pkg.css HTTP/1.1" 404 244
78.80.17.21 - - [28/Sep/2016:23:03:39 +0200] "GET /res/defaultX/phabricator/4aa80958/conpherence.pkg.css HTTP/1.1" 404 251

When looking to the cloned files I see that the CSS files reside under phabricator/webroot/rscs, there is no "res" directory. I see no rewrite rule matching "^/res" anywhere in the installation and/or configuration guide and "LogLevel alert rewrite:trace3" in the Apache config reveals that no rewrite occured. What am I missing?

Answers

hpuwang
Updated 2,686 Days Ago

I have the same problem with you

New Answer