hi
i've just upgraded php from 5.2 cli to 5.3 cgi suphp all is fine except that a script i run from root user cron is giving an open_basedir error even though the includes the scrpit is calling for are all in the same users directory's.
the user in question has his own php.ini for that user which has
but the error i'm getting when the cron runs the script is:
which is saying allowed paths are only:
/var/www/html/:/tmp/
and not
/home/admin9/:/tmp/
which it says in his own user specific php.ini
if anyone has any idea what the issue is any advice would be appreciated.
thanks in advance
i've just upgraded php from 5.2 cli to 5.3 cgi suphp all is fine except that a script i run from root user cron is giving an open_basedir error even though the includes the scrpit is calling for are all in the same users directory's.
the user in question has his own php.ini for that user which has
Code:
open_basedir = /home/admin9/:/tmp/
but the error i'm getting when the cron runs the script is:
Code:
PHP Warning: chdir(): open_basedir restriction in effect. File(/home/admin9/domains/domain.com/public_html/gen) is not within the allowed path(s): (/var/www/html/:/tmp/) in /home/admin9/domains/domain.com/public_html/gen/runcrawl.php(2) : eval()'d code on line 9 PHP Warning: include(): open_basedir restriction in effect. File(./index.php) is not within the allowed path(s): (/var/www/html/:/tmp/) in /home/admin9/domains/domain.com/public_html/gen/runcrawl.php(2) : eval()'d code on line 12 PHP Warning: include(./index.php): failed to open stream: Operation not permitted in /home/admin9/domains/domain.com/public_html/gen/runcrawl.php(2) : eval()'d code on line 12 PHP Warning: include(): open_basedir restriction in effect. File(./index.php) is not within the allowed path(s): (/var/www/html/:/tmp/) in /home/admin9/domains/domain.com/public_html/gen/runcrawl.php(2) : eval()'d code on line 12 PHP Warning: include(./index.php): failed to open stream: Operation not permitted in /home/admin9/domains/domain.com/public_html/gen/runcrawl.php(2) : eval()'d code on line 12 PHP Warning: include(): Failed opening './index.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/admin9/domains/domain.com/public_html/gen/runcrawl.php(2) : eval()'d code on line 12
which is saying allowed paths are only:
/var/www/html/:/tmp/
and not
/home/admin9/:/tmp/
which it says in his own user specific php.ini
if anyone has any idea what the issue is any advice would be appreciated.
thanks in advance