Page 1 of 1

Nginx and Apache suddenly conflicting

Posted: Sun May 19, 2019 11:30 am
by matteo
Hello,

after a out-of-space issue, due to failed backups which saturate HDD, suddenly anything in my server stopped working.

Apache and Nginx stopped starting: I made out it may be a port conflict since if I stop one service the other starts, and the same if I do viceversa.

I have 3 websites, and cannot understand why 1 is working, while the rest not.

1) https://ilariaematteo.it is no longer reachable
2) https://philipsafari.com is reachable
3) phpmyadmin is no longer reachable: "404 Not Found nginx/1.14.2" (if I start ngninx or "Not Found

The requested URL /phpmyadmin/ was not found on this server.

Apache/2.4.25 (Debian) Server at 217.112.83.231 Port 80
" if I start apache)

it is now urgent to bring back things to normality, then I think I will have to understand why cron-backups creates gigabytes of logs.

can someone help me?

Re: Nginx and Apache suddenly conflicting

Posted: Mon Jul 29, 2019 3:27 pm
by dreiggy
First check apache and nginx error logs.

Re: Nginx and Apache suddenly conflicting

Posted: Mon Jul 29, 2019 6:50 pm
by matteo
They are conflicting that's from the log

Re: Nginx and Apache suddenly conflicting

Posted: Sat Aug 03, 2019 7:21 pm
by dreiggy
Check if your ports configurations are correct:

Code: Select all

# grep PORT /usr/local/vesta/conf/vesta.conf
WEB_PORT='8080'
WEB_SSL_PORT='8443'
PROXY_PORT='80'
PROXY_SSL_PORT='443'

Re: Nginx and Apache suddenly conflicting

Posted: Sat Aug 03, 2019 7:35 pm
by grayfolk
dreiggy wrote:
Sat Aug 03, 2019 7:21 pm
Check if your ports configurations are correct:

Code: Select all

# grep PORT /usr/local/vesta/conf/vesta.conf
WEB_PORT='8080'
WEB_SSL_PORT='8443'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
This is Vesta config, no make sense to check it.

Try to rebuild web and reboot server.