• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Going insane with open_basedir probs

gwnet

New Pleskian
Vers: Plesk 8.2.1 for Redhat ES

Problem: Trying to set a directory for a php application that is a second hard drive mounted as /home2 I get: Warning: is_dir(): open_basedir restriction in effect. File(/home2/) is not within the allowed path(s)

Ok, i've been going in circles trying various vhost configurations.... whenever I try what is recommended (many iterations, many many different forums) i get the following error when trying to get plesk to reload / rewrite the config file:

[root]# /usr/local/psa/admin/sbin/websrvmng -v -a
Syntax error on line 1 of /home/httpd/vhosts/domain/conf/vhost.conf:
/home/httpd/vhosts/domain/conf/vhost.conf:1: <Directory> was not closed.
websrvmng: Service /etc/rc.d/init.d/httpd failed to gracefully restart
websrvmng: Service /etc/rc.d/init.d/httpd failed to gracefully restart

This is one iteration of the vhost file contents:

<Directory /home/httpd/vhosts/jon.info/httpdocs>
php_admin_value open_basedir "/home/httpd/vhosts/domain/httpdocs:/tmp:/home2"
</Directory>


Does anyone have a definitive solution? I've tried the KB article exact solution, but still doesn't work.... same error...

TIA!!!!!!!!

Jon.
 
Back
Top