Overview
The most common reason for the Apache webserver not being able to use your vhost file are usually related to permissions.
Requirements
Before you start, this article has the following dependencies:
- You must have SSH access set up for root or a sudo user.
Instructions
- Log into your server as root using SSH, and enter the following command to change the owner of all files in the conf directory to the apache user:
chown -R apache /var/www/vhosts/system/example.com/conf - Change the permissions to ensure the Apache user can read all of the files in the conf directory:
chmod -R 644 /var/www/vhosts/system/example.com/conf - Reconfigure your server to use the new vhost.conf file using Plesk's websrvmng command:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Resources
Overview
The most common reason for the Apache webserver not being able to use your vhost file are usually related to permissions.
Requirements
Before you start, this article has the following dependencies:
- You must have SSH access set up for root or a sudo user.
Instructions
- Log into your server as root using SSH, and enter the following command to change the owner of all files in the conf directory to the apache user:
chown -R apache /var/www/vhosts/example.com/conf - Change the permissions to ensure the Apache user can read all of the files in the conf directory:
chmod -R 644 /var/www/vhosts/example.com/conf - Reconfigure your server to use the new vhost.conf file using Plesk's websrvmng command:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all