For any Cloud Server with Plesk, Apache administration tasks such as adding and configuring Apache modules should always be installed and managed through the Plesk interface whenever possible.
Follow the instructions in this tutorial to learn how to add Apache modules to a Plesk server. This tutorial covers how to add Apache modules which are available through the Plesk interface, as well as how to add those which are not.
- A Cloud Server with Plesk (any operating system)
This tutorial uses the Power User view. You can change the Plesk view by clicking Change View at the bottom of the column on the left.
Add a Pre-Configured Apache Module
Plesk comes with many Apache modules pre-configured and ready to be added. Go to Tools & Settings.
Go to General Settings: Apache Web Server.
Select the Apache module you wish to turn on, then click OK.
You will be redirected back to the Tools & Settings page, with a message confirming that the changes have been saved.
Add an Apache Module Which is Not Available Through the Plesk Interface
If you wish to add an Apache module which is not available through the Plesk interface at Tools & Settings > General Settings: Apache Web Server you will need to add the module at the command line. After adding the module, restart Apache. Then you will be able to manage the module through Plesk.
Connect to the server with SSH. Update the existing packages:
- Ubuntu: sudo apt-get update
- CentOS: sudo yum update
Follow the recommended steps to install the Apache module from the command line. For this example, we will install the mod_wsgi module, which configures Apache to run Python scripts.
- Ubuntu: sudo apt-get install apache2 python-setuptools libapache2-mod-wsgi
- CentOS: sudo yum install mod_wsgi
After the module has been installed, restart Apache:
- Ubuntu: sudo systemctl restart apache2
- CentOS: sudo systemctl restart httpd
From this point forward, you will be able to manage the new module through Plesk. Return to Tools & Settings > General Settings: Apache Web Server and you will find the new module listed there.
In this example, mod_wsgi is now available to be managed through Plesk.