• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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