Quote:
Originally Posted by tamarian
What do you mean by "add a single path to the directory block"?
I suspect CPanel might be chrooting the seperate systems, but I'm not sure, since I don't use it. But I can try to override the php.ini to see if that helps.
|
PHP has a "safe mode" system called open_basedir, it restricts PHP from going areas it isnt allowed to go into. It is controlled via php.ini, httpd.conf or .htaccess.
I do my modifications for each virtual site on my system in httpd.conf (using php_admin_value so that it cant be overridden by .htaccess).
Something like the following will allow PHP scripts to access /www/sitename, /tmp and /var/spool/mail (and outside of these paths will result in an error):
Code:
<Directory /www/sitename>
php_admin_value open_basedir "/www/sitename:/tmp:/var/spool/mail/"
</Directory>
Now, you'd have to be careful, and probably put subscriber_notify in its own directory.
Oh, and this wont help you if you're in a chroot enviroment