Forums / Install & configuration / Exponential 4.2: Cached CSS Files not readable by the Browser

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Exponential 4.2: Cached CSS Files not readable by the Browser

Author Message

Axel Wehner

Thursday 01 October 2009 8:02:27 pm

Hello,

i've just installed the new Exponential 4.2 with the eZ Website Interface in an VirtualHost on Apache 2.2.11 with PHP 5.2.6. The installation worked very well. No Problems.

After the installation i accessed the new site and saw that the site looks very strange:
http://ecantus.de/misc/ezprob1.png (Frontpage Screenshot)

After i took a look in the sourcecode, i saw that a cached stylesheet is not readable by the Browser and see the Error Page (kernel (20)) which tell me there is a Missing Module (var) if i try to open it directly. I suppose that's the Problem.

<link rel="stylesheet" type="text/css" href="/var/ezwebin_site/cache/public/stylesheets/0e7b335dc5cb41df886bb97f1f059387_all.css" media="all" charset="utf-8" />

The stylesheet is available in the filesystem and should be readable:

root@srv1:/var/www/mysite.de/var/ezwebin_site/cache/public/stylesheets# ls -la
insgesamt 188
drwxrwxrwx 2 www-data www-data  4096 2009-10-02 04:32 .
drwxrwxrwx 4 www-data www-data  4096 2009-09-30 17:38 ..
-rw-r--r-- 1 www-data www-data 36541 2009-09-30 17:43 0e7b335dc5cb41df886bb97f1f059387_all.css

I tried to clear the cache and refreshed the page, but it didn't helped. Could it be an Apache Rewrite Issue? I'll post as a precaution my VirtualHost Setup here:

<VirtualHost mysite.de>

    DocumentRoot /var/www/mysite.de
    ServerName mysite.de
    ServerAlias admin.mysite.de
    ServerAlias www.mysite.de
    ErrorLog /var/www/mysite.de/logs/error.log
    CustomLog /var/www/mysite.de/logs/access.log common
    DirectoryIndex index.php
    AcceptPathInfo On

    <Directory /var/www/mysite.de>
        Options FollowSymLinks
        AllowOverride None
    </Directory>

    <IfModule mod_php5.c>
        php_admin_flag safe_mode Off
        php_admin_value register_globals    0
        php_value magic_quotes_gpc  0
        php_value magic_quotes_runtime  0
        php_value allow_call_time_pass_reference 0
    </IfModule>

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule content/treemenu/? /index_treemenu.php [L]
        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
        RewriteRule ^/favicon\.ico - [L]
        RewriteRule ^/robots\.txt - [L]
        # Uncomment the following lines when using popup style debug.
        # RewriteRule ^/var/cache/debug\.html.* - [L]
        # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
        RewriteRule .* /index.php
    </IfModule>

</VirtualHost>

I've the same problem in the Administration Interface. I hope someone can help me with this problem. If you need more information, just tell me what.
Thank you!

Best regards,
Axel

Sébastien Antoniotti

Thursday 01 October 2009 11:04:48 pm

Hi Axel,

I think you just need to replace this apache rewrite rule :

RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]

by

RewriteRule ^/var/[^/]+/cache/(texttoimage|public)/.* - [L]

Regards,
Seb

eZ Publish Freelance
web : http://www.webaxis.fr

Axel Wehner

Friday 02 October 2009 5:01:50 am

Hi Seb,

great! It works now. Thank you very much for your help.
I've to learn more about mod_rewrite. :)

Best regards,
Axel

Patrick Allaert

Tuesday 20 October 2009 5:58:08 am

Thanks Axel and Sébastien to catch this issue.

This has been fixed in the doc: http://ez.no/doc/ez_publish/technical_manual/4_x/installation/virtual_host_setup

Regards,
Patrick

Patrick ALLAERT
http://patrickallaert.blogspot.com/

Sébastien Antoniotti

Tuesday 20 October 2009 6:42:25 am

It was with pleasure,

Best regards,
Seb

eZ Publish Freelance
web : http://www.webaxis.fr