MediaCP provides compatibility with the following applications that use port 80 and you can use AutoSSL in combination without making any changes: cPanel, Plesk, CentOS Web Panel, DirectAdmin. It is also compatible with any standard Apache 2 or Nginx installations. If you have a nonstandard configuration or application that is not compatible you can configure AutoSSL hooks to stop and restart processes using port 80 during renewal.
Create SSL Scripts
1. Create the following bash scripts
/usr/local/mediacp/hooks/autossl_pre.sh
/usr/local/mediacp/hooks/autossl_post.sh
2. In the autossl_pre.sh file you will need to set up a command to stop the intended service (in this case nginx.) This will run before the AutoSSL renewal begins.
#!/bin/bash
systemctl stop nginx
3. In the autossl_post.sh file you will need to set up a command to start the intended service (in this case nginx.) This will run after the AutoSSL renewal finishes.
#!/bin/bash
systemctl start nginx
4. Use chmod to make these bash file executable:
chmod +x /usr/local/mediacp/hooks/autossl_pre.sh
chmod +x /usr/local/mediacp/hooks/autossl_post.sh
For more information about AutoSSL please review our SSL Certificates documentation.