Have a development server with 2 static ips. Apache runs on one, Nginx on the other. Everything seems fine except after reboot. Nginx starts Apache doesn’t. Can someone please tell me where to look outside log files for what the issue could be…or tell me the process on how to make this work..
Thanks in advance…
12/19/2018
Rebuilt the server using only Apache. When binding it to a single ip to one interface it still does not start after boot. When I unbind it, it boots fine. Doesn’t seem to be a conflict with Nginx on the other ip, seems to do with the binding of Apache itself…still perplexed…
2
Answers
It’s probably because default port for both nginx and apache is 80. So for example when nginx starts, the port will be in use, and apache can’t access to that port.
in ypur httpd.conf of apache, find the line that says
Listen 80
and change that port to whatever you want. then restart apache.If this is not the issue, then report results of these commands in your post plz:
I went to sudo nano /etc/apache2/ports.conf
Changed Listen 80 to Listen 8080 and I was able to restart apache2 after that with the following command: