- Plesk Onyx for Linux
- Plesk Obsidian for Linux
Apache cannot be started with the following error:
# service apache2 status
AH00112: Warning: DocumentRoot [/var/www/vhosts/granit.is/httpsdocs] does not exist
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
No records can be found in
Nginx cannot be started:
CONFIG_TEXT: nginx: [emerg] bind() to [::]:443 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed file:
# grep -u Listen /etc/apache2/ports.conf | uniq
/etc/apache2/ports.conf file was overwritten by the package maintainer's version and uses ports 80 and 443 for http and https respectively. However, nginx is also running and uses the same ports.
Log in to the server via SSH.
To reconfigure Apache to use proper ports, disable and enable nginx reverse proxy server running following commands one after another:
# plesk sbin nginxmng --disable
# plesk sbin nginxmng --enable