• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

PHP Open dir

P

Peter Blackford

Guest
I am having problems changing the PHP Open_Dir for a domain. I have tried changing the conf/httpd.include to change the open_dir setting. I then run websrvmng -v -a (although I have tried a combination of things). The httpd.include file is then overwritten and removing my modification.

What am I doing wrong?
 
Never mind fixed it.

I had to create the file conf/vhost and run the command and the included the vhost in the httpd.include file.
 
You should never edit the httpd.include file for a domain. It will always be overwritten. You will need to create a vhost.conf file to set the PHP open_basedir value.

<DirectoryMatch /var/www/vhosts/yourdomain/httpdocs>
php_admin_value open_basedir none
</DirectoryMatch>

For good measure I would also restart Apache, though it might not be required.
 
Back
Top