boost with subfolder installation

Events happening in the community are now at Drupal community events on www.drupal.org.
jdidelet's picture

Hi everyone,

I'm little in a trouble with boost module. This module doesn't work if drupal is installed in a subfolder (e.g. /drupal/my-site). I read all posts and issues about this but I didn't find solution. I have folders "cache/gz/my-site-name" and "cache/my-site-name" but they are empty. Nothing files are generated... Have you already tried? Probabaly it's the configuration in my .htaccess.

Cheers !
Julien

Comments

Hmmm, if the files aren't

dalin's picture

Hmmm, if the files aren't being created then it's not an issue with .htaccess. .htaccess only controls the reading of those files, not the writing. Are those folders writable by the webserver? Is this *nix or windoze?

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

It's crazy !

jdidelet's picture

I discover this morning that I had files in my folders (cache/gz/my-website and cache/my-website). And I didn't activated the cron crawler mode. Ok nice ! But if I go on a page (in anonymous) who didn't have generated (e.g. home page), this page is not generated in my folders ????? Grrrr what's the problem with this module ?? I don't understand anything lol. For the permission, everything is ok. I have the permission to read and write (and I'm on *nix :)) (and everything works very well in my development environment lol).


Julien Didelet
Founder
Weblaa.com

There are many reasons why

dalin's picture

There are many reasons why Boost may not cache a page. Try to increase the Boost logging level (on the Boost settings page). Then hit the pages in question as anon, then check watchdog to see why Boost isn't caching that page.

Then the next step is to confirm that the cached pages are being served to the anon users (there should be an HTML comment at the end of the page).

Then I always confirm with Apache Bench that my performance improvements are actually improving things (too many times I've come in to optimize a site to discover that a performance tool was incorrectly implemented and actually slowing a site down).

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Ok it's me. No it's the fault

jdidelet's picture

Ok it's me. No it's the fault to filezilla who didn't see the last version of files... With the terminal, I can see that the pages are correctly generated. Now, my problem is why the cached pages aren't served to anonymous users...

Here, my code generated by boost ui :

RewriteCond /home/content/l/u/d/ludaint/html/drupal/cache/%{SERVER_NAME}%{REQUEST_URI}%{QUERY_STRING}.html -s
RewriteRule .* cache/%{SERVER_NAME}%{REQUEST_URI}
%{QUERY_STRING}.html [L,T=text/html]

My site is in subfolder (/drupal/my-website). Probabaly I need change something in this code but I don't know why.

Thanks for your help !
Julien


Julien Didelet
Founder
Weblaa.com

This may be obvious, but did

cloneofsnake's picture

This may be obvious, but did you log out? Static pages are only created for anonymous users.

Otherwise, it's what Dave said, write access by web server.

French English you writing, no? :P

Yes I know :). My english is

jdidelet's picture

Yes I know :). My english is so sad ! :). And you ? You progress in japanese ?


Julien Didelet
Founder
Weblaa.com

You may have to set

dalin's picture

You may have to set RewriteBase in the .htaccess file. By default it's commented out with some notes on how to use it. If that's not it then you may have to play around with the rewrite rule:

RewriteRule .* drupal/my-site/cache/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}.html [L,T=text/html]

Rewrite rules can be a real PITA to debug. If you get stuck you can enable rewrite logging:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

DrupalHK

Group categories

HKDUG Vocabulary

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: