Web Hosting Talk







View Full Version : PSa & PHP : open_baseDIR


Fremont Servers
09-10-2001, 05:09 PM
I have open_baseDIR restriction problem, when I tried to install phpBB on PSA server.

I tried this method and it didn't work.

1. cd /usr/local/plesk/apache/vhosts/<DOMAIN_NAME>/conf/
2. echo "php_admin_value open_basedir ." >> vhost.conf
3. chmod 400 vhost.conf
4. chown root:root vhost.conf
5. /usr/local/plesk/admin/utils/my_apci_rst

Any solution to this problem?

Jm4n
09-11-2001, 04:37 AM
I might be wrong, but I'm pretty sure you need to specify a full path, not a relative path (or ".").

What we do is set this to the user's home directory. You should be able to modify your setup scripts to automatically add the correct home directory for each virtual host containter upon account setup (quite simply, you could just copy the document root, but it's better to let them open files outside the web-accessible directories).

Fremont Servers
09-15-2001, 12:00 AM
I used the below command

/usr/local/plesk/admin/utils/my_apci_rst

and got an error on this line

echo "php_admin_value open_basedir ."

in

/conf/vhost.conf


----------
Any clue what might be the problem?