Plesk fix .conf files

In case you need to allow access with PHP scripts of a certain virtual host to additional folder(s), you should set up option ‘open_basedir’ for the virtual host with the new path value, splitting the folder names with colons. This action can only be made by a user with root privileges on domains’ vhost.conf or vhost_ssl.conf files (for SSL virtual host). For more information, read the article ‘Including Directives into Configuration File of Web Serve’ in the Parallels Plesk Panel documentation.

Once applied these changes, you should recreate Apache’s configuration files and restart Apache service using the following command in the shell. If the vhost(_ssl).conf file is found, then it will be automatically added to the httpd.include file of the domain:

~# /usr/local/psa/admin/sbin/websrvmng -a -v

/plesk_installation_directory/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=<domain_name>

Leave a comment