“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

  1. 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 listen 8444 ssl;.
  2. sudo systemctl restart sw-cp-server
    • Restarts the Plesk control panel server to apply the new port configuration.

 

 

 

 

 

 

Have a project or a problem?

Talk with a senior engineer for practical recommendations—no obligation.

Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Categories

Get a free consultation from Reliable Penguin

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