Hello - Love the Boost! I just installed it and it is blazingly fast.
However, I am having a wee problem. When an anon user clicks on a taxonomy page on the menu (not sure if I am describing that right... it's when you have taxonomies for stories, and you click on a link on the menu that takes you to something that looks like the frontpage, but only shows stories of that category) I get this error:
symlink(): open_basedir restriction in effect.
File(/var/www/vhosts/piggington.com/taxonomy/term/16.html) is not within the allowed path(s):
(/var/www/vhosts/piggington.com/httpdocs:/tmp) in
/var/www/vhosts/piggington.com/httpdocs/modules/boost/boost.helpers.inc on line 83.
Now I am not too bright, but I think the problem is that it's looking one directory up from my basedir. My basedir is:
/var/www/vhosts/piggington.com/httpdocs
whereas it is trying to hit:
/var/www/vhosts/piggington.com/taxonomy/term/16.html
(note that it's missing the "httpdocs" directory).
BTW the page serves up correctly, so it is not a huge deal, but I always get a little scared when i see those red "php" errors in the logs. :-)
Please let me know what other info I can provide.
And thanks for the great module...
Rich
Comments
Comment #1
Arto commentedThe logic for the symlinking was a bit buggy in older versions, but I believe this problem should not occur with the latest development snapshot of Boost.
Comment #2
satos commentedWell, i'v downloaded new build but still...:
symlink() [<a href='function.symlink'>function.symlink</a>]: open_basedir restriction in effect. File(/home/virtwww/node/1711.html) is not within the allowed path(s): (/tmp:/home/virtwww/w_tfortest_3b1af487) in /home/virtwww/w_tfortest_3b1af487/http/modules/boost/boost.helpers.inc on line 83.Comment #3
Arto commentedSomething in the cache directory path computation looks to be going wrong, presumably due to open_basedir. Try specifying the full file system path for the cache directory in your configuration.
Comment #4
Jeroen Coumans commentedI've got the same problem, except with different URL's of course. Caching seems to work for most pages, but strangely not all. For example, I can see my homepage is cached (http://jeroencoumans.nl) but not my "elsewhere" pages (e.g. http://jeroencoumans.nl/elsewhere/2007/10/07/anti-patterns-talk). In the logs, the following message appears:
boost: Unable to create symlink: /home/jeroencoumans.nl/public_html/cache/jeroencoumans.nl/0/elsewhere/2007/10/07/anti-patterns-talk.html to /home/jeroencoumans.nl/public_html/cache/jeroencoumans.nl/0/node/3092.html
php: symlink() [function.symlink]: open_basedir restriction in effect. File(/home/node/3092.html) is not within the allowed path(s): (/home/jeroencoumans.nl/:/tmp:/usr/local/lib/php/) in /home/jeroencoumans.nl/public_html/sites/all/modules/boost/boost.helpers.inc on line 83.
Folder permissions are all writeable for the webserver. Setting the cache directory absolutely to /home/jeroencoumans.nl/public_html/cache prefixes this path to the docroot, making it appear twice.
Comment #5
reikiman commentedI have the same problem.
I've installed it on my sites hosted on dreamhost and this behaviour doesn't happen there. Note that dreamhost uses PHP5.
The server where this happens has PHP4 and the error is exactly like the ones listed above. I'm using 5.x-1.0 from Sep 30, 2007.
I had to chmod the cache directory to 777 due to a different problem in the function for PHP4 compatibility.
Based on the above suggestions I entered the full path for the cache directory... and got this error (it's in that same PHP4 compatibility module) which indicates some place in the module still isn't specifying the correct pathname.
Comment #6
reikiman commentedOops.. shouldn't have changed version?
Comment #7
deverman commentedI also am having the same problem with the sym links and made a separate post before seeing this one:
http://drupal.org/node/200658
The problem is in this function _boost_symlink and I ended just commenting out this if statement below and things are working now.
Comment #8
moshe weitzman commentedwe are likely getting rid of symlinks soon: http://drupal.org/node/174380
Comment #9
liam mcdermott commentedI can confirm this, using the latest dev version of Boost on D5 with PHP4 (haven't tested with PHP5 yet).
Thanks deverman, those instructions seem to work perfectly. Maybe deverman's changes could be committed to the dev version whilst we're waiting for symlinks to be removed altogether?
Comment #10
alex72rm commentedHi,
I have the latest "Boost" dev version installed on a Linux platform.
Anyway the same error arise from watchdog:
Unable to create symlink: /var/www/vhosts/nuovofiscooggi.it/httpdocs/cache/www.nuovofiscooggi.it/0/giurisprudenza/articolo/vita-breve-gli-appelli-f... to /var/www/vhosts/nuovofiscooggi.it/httpdocs/cache/www.nuovofiscooggi.it/0/node/4327.html
symlink() [function.symlink]: open_basedir restriction in effect. File(/var/www/vhosts/nuovofiscooggi.it/taxonomy/term/1.html) is not within the allowed path(s): (/var/www/vhosts/nuovofiscooggi.it/httpdocs:/tmp:/usr:/bin) in /var/www/vhosts/nuovofiscooggi.it/httpdocs/sites/all/modules/boost/boost.helpers.inc nella riga 83.
I used the original boosted.txt to replace .htaccess.
Maybe it's always a problem of relative path... but how can resolve it?
Alessandro
Comment #11
alex72rm commentedHi,
I solved immediately with #7 (thanks a lot deverman!!!)
I'm asking myself why the patch hasn't been inserted into the dev version (one year passed since deverman's post).
Alessandro
Comment #12
wwwoliondorcom commentedHello,
I just had the same problem and copied the #7 code (thanks!).
Will tell you later if it works.
Is there anything else that I should do ?
Thanks for all.
ps: i am hosted in dreamhost ps
Comment #13
wwwoliondorcom commentedJust after starting to use #7 I got the same error again so I disabled boost.
Any solution ?
Comment #14
mikeytown2 commentedyou might want to try this
#174380: Remove symlink creation. Let each path have own file
Also I'm looking...
#454652: Looking for a co-maintainer - 5.x
Comment #15
mikeytown2 commentedComment #16
mikeytown2 commentedThis issue removes all symlinks; merging all symlink issues into this one.
#174380: Remove symlink creation. Let each path have own file