Category: Plesk

“One-liner” To Change Plesk Admin Port

Here’s a Bash one-liner to change the Plesk admin port:

Replace XXXX with the desired port number. Explanation sed -i ‘s/listen 8443 ssl;/listen 8444 ssl;/’ /etc/sw-cp-server/conf.d/plesk.conf Searches for listen 8443 ssl; in the configuration file and replaces it with

Read More »

Plesk / Nginx Open Files Limit

Was trying to increase open files limit for nginx on a Plesk server following instructions here: MariaDB on CentOS 7 – “Error in accept: Too many open files” But the limit was not changing. After digging around I found that

Read More »

Expires Header In Nginx On Plesk

Trying to add an Expires header in Nginx on a Plesk server like this is problematic. The “location” directive conflicts (overrides) the “location” directive created by Plesk. The work around is to disable “Serve static files directly by nginx” but

Read More »

Nginx Redirects With Map File

Client provided a CSV file with several thousand redirects for site hosted on Plesk server. For maximum efficiency we implemented the redirects using a map file in Nginx. Start by convert the CSV file to a map include file with

Read More »

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.