F
funjoy
Guest
On my secure server, allowing PHP to access certain directories works fine with the following method:
I add:
<Directory /var/www/vhosts/mydomain.com/httpsdocs>
php_admin_value open_basedir /home/httpd/vhosts/mydomain.com/httpsdocs:/tmp:/var/log
</Directory>
in /var/www/vhosts/mydomain.com/conf
and then run
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=mydomain.com
and then I restart apache.
It works fine for most directories (I use it to play with my logs in /var/www/vhosts/mydomain.com/statistics/logs)
However, for the directory /var/qmail/mailnames/mydomain.com it doesn't work.
Why is that?
I add:
<Directory /var/www/vhosts/mydomain.com/httpsdocs>
php_admin_value open_basedir /home/httpd/vhosts/mydomain.com/httpsdocs:/tmp:/var/log
</Directory>
in /var/www/vhosts/mydomain.com/conf
and then run
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=mydomain.com
and then I restart apache.
It works fine for most directories (I use it to play with my logs in /var/www/vhosts/mydomain.com/statistics/logs)
However, for the directory /var/qmail/mailnames/mydomain.com it doesn't work.
Why is that?