• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Pesk interface on port 8443 does not work (ERR_CONNECTION_REFUSED) after nginx purge and reinstall

Thabet

New Pleskian
Hello,

After executing this command "sudo apt-get remove nginx* --purge", plesk interface does not work anymore on my ip address on port 8443.
I saw in the terminal during the execution of "sudo apt-get remove nginx* --purge" that it was removing alot of components related to plesk itself.
Here's the list of commands I executed:

service apache2 stop
apt-get remove nginx* --purge
apt-get install nginx-common
apt-get install nginx
sudo service nginx restart
service apache2 start

Here's the logs of "service apache2 start":
"
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
"

Apache2 Logs:
● (red) apache2.service - LSB: Apache2 web server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─forking.conf
Active: failed (Result: exit-code) since Thu 2021-06-24 13:28:57 CEST; 56s ago
Process: 12279 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Jun 24 13:28:57 ocr-immowiin systemd[1]: Starting LSB: Apache2 web server...
Jun 24 13:28:57 ocr-immowiin apache2[12279]: Starting web server: apache2 failed!
Jun 24 13:28:57 ocr-immowiin apache2[12279]: The apache2 configtest failed. ... (warning).
Jun 24 13:28:57 ocr-immowiin apache2[12279]: Output of config test was:
Jun 24 13:28:57 ocr-immowiin apache2[12279]: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Syntax error on line 5 of /etc/apache2/conf-enabled/zz010_psa_httpd.conf: Syntax error on line...
Jun 24 13:28:57 ocr-immowiin apache2[12279]: Action 'configtest' failed.
Jun 24 13:28:57 ocr-immowiin apache2[12279]: The Apache error log may have more information.
Jun 24 13:28:57 ocr-immowiin systemd[1]: apache2.service: control process exited, code=exited status=1
Jun 24 13:28:57 ocr-immowiin systemd[1]: Failed to start LSB: Apache2 web server.
Jun 24 13:28:57 ocr-immowiin systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

Plesk error:
1624534490729.png

I don't know what is going on and i'm afraid I broke plesk GUI interface.

Please help me.
 
Have you tried to fix it with

# plesk repair all

or

# plesk repair installation

?
 
Unfortunately it didn't work for me.

I made a backup and reverted to a last snapshot.

Unfortunately, the last Plesk update is not perfect either, subdomains are also created with 500.

However, these can be used if you deactivate the proxy in the hosting settings. At least temporarily
 
I added the following manually. Now the subdomain is also running in proxy mode

Connect to the server using SSH
Change to user root:

plesk sbin httpdmng --reconfigure-all
 
Back
Top