[Plugin: Quick Cache ( A WP Super Cache Alternative )] got a problem with open_basedir restrictions
found this in my error log:
[Tue Jun 07 17:34:18 2011] [warn] [client 18.104.22.168] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/clientxx/webxx/wp-config.php) is not within the allowed path(s): (/var/www/clients/clientxx/webxx/web:/var/www/clients/clientxx/webxx/tmp:/var/www/knightsenglish.com/web:/srv/www/knightsenglish.com/web:/usr/share/php5:/usr/share/php/PEAR:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client6/web11/web/wp-content/plugins/quick-cache/includes/classes/menu-pages.inc.php on line 308, referer: http://www.knightsenglish.com/wp-admin/admin.php?page=ws-plugin--qcache-options
there is something obviously wrong here as your plugin is looking for wp-config.php here:
File(/var/www/clients/clientxx/webxx/wp-config.php) is not within the allowed path(s):
and that is not the root directory and wp-config.php isn’t to be foudn there!!! the right path would be: /var/www/clients/clientxx/webxx/web/ so I am unsure where this problem comes from 🙁
found one of the plugin files and the code looks like this:
else if (file_exists (dirname (ABSPATH) . "/wp-config.php") && !is_writable (dirname (ABSPATH) . "/wp-config.php"))
and sometimes it looks like this:
(ABSPATH . "wp-config.php")– notice the missing / in front of wp-config.php
is that right? if yes, why would ABSPATH not report the right absolute path? Or is the absolute path to be without the WEB folder which is my root folder?
- The topic ‘[Plugin: Quick Cache ( A WP Super Cache Alternative )] got a problem with open_basedir restrictions’ is closed to new replies.