nginx starts up before apache

Posted by paullb on Server Fault See other posts from Server Fault or by paullb
Published on 2012-10-16T02:23:32Z Indexed on 2012/10/16 5:08 UTC
Read the original article Hit count: 532

Filed under:
|
|
|

I've been fumbling through setting up redmine on a unbuntu (12.04) box and somewhere along the line NginX got set up and now apache no longer loads because nginx has already grabbed the port.

I tried removing NginX with the below command but that didn't seem to make any difference. When I restarted the server and pointed my web browser I still got the "Welcome to NginX" message

sudo apt-get purge nginx

I have confirmed that NginX is gone because when I run the above now I get as an output

Package nginx is not installed, so not removed

Yet everytime I start the machine it is running again. I noticed the following for the running processes (if that is helpful)

root       923  0.0  0.0  76784  1280 ?        Ss   03:00   0:00 nginx: master process /usr/sbin/nginx
www-data   925  0.0  0.0  77092  1704 ?        S    03:00   0:00 nginx: worker process
www-data   926  0.0  0.1  77092  2204 ?        S    03:00   0:00 nginx: worker process
www-data   927  0.0  0.0  77092  1704 ?        S    03:00   0:00 nginx: worker process
www-data   928  0.0  0.0  77092  1704 ?        S    03:00   0:00 nginx: worker process

Any advice for bringing back apache2 as the "default" (for lack of a better term) web server?

© Server Fault or respective owner

Related posts about apache2

Related posts about ubuntu