R
rene verheij
Guest
Hi,
Just set up open_basedir through vhost.conf to allow the whole domain to have access to /usr/local/share/something/, /var/www/vhosts/domain.com/httpdocs/ and /tmp.
When I run my script www.domain.com/file.php through the browser it gets access to /usr/local/share/something/, just like I want it too.
But now I need to run something through SSH:
/usr/bin/php -q /var/www/vhosts/domain.com/httpdocs/some_folder/file.php
which gives an error telling me about a open_basedir restriction. In other words, if running a script through SSH the open_basedir settings of vhost.conf seem to have no effect.
When the script tries to access ../some_other_folder/ it gives an open_basedir restriction error "... some_other_folder is not within the allowed path(s): (/tmp)" ... which is the global open_basedir setting.
Any advice?
Tnx in advance!
Just set up open_basedir through vhost.conf to allow the whole domain to have access to /usr/local/share/something/, /var/www/vhosts/domain.com/httpdocs/ and /tmp.
When I run my script www.domain.com/file.php through the browser it gets access to /usr/local/share/something/, just like I want it too.
But now I need to run something through SSH:
/usr/bin/php -q /var/www/vhosts/domain.com/httpdocs/some_folder/file.php
which gives an error telling me about a open_basedir restriction. In other words, if running a script through SSH the open_basedir settings of vhost.conf seem to have no effect.
When the script tries to access ../some_other_folder/ it gives an open_basedir restriction error "... some_other_folder is not within the allowed path(s): (/tmp)" ... which is the global open_basedir setting.
Any advice?
Tnx in advance!