Forum Moderators: coopster
I am trying to add a directory above the web root where I can place php files to be used. I understand that this is done using the open_basedir in php.ini. I have a slightly different setup with virtual hosts, and I understand that I have to add a vhost.conf file to my "/srv/www/vhosts/mydomain/conf" directory. I have done that, and still no luck.
My vhost.conf file is the following:
<Directory /srv/www/vhosts/mydomain/httpdocs> php_admin_value open_basedir "/srv/www/vhosts/mydomain/httpdocs:/tmp:/srv/www/vhosts/mydomain/newphpdirectory" </Directory>
I then run the following commands via SSH (based only on what I've googled, not from any real knowledge):
usr/local/psa/admin/sbin/websrvmng -u --vhost-name=mydomain
apache2ctl restart
However, after the second command I am getting a syntax error telling me that the vhost.conf <Directory> is not closed..and yet it is, isn't it?
In phpinfo, "srv/www/vhosts/mydomain/newphpdirectory" is the value for include_path in both the local and master columns, but open_basedir has only "/srv/www/vhosts/mydomain/httpdocs:/tmp" in the local column and "no value" in the master column.
The php files in srv/www/vhosts/mydomain/newphpdirectory are not working.
What do I need to do? I'll only be able to check responses at the end of the day, so please be patient with my responses. thanks.