New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Apache is running instead of Nginx!
When i visited my sites hosted on my vps today. I got the Apache message "It Works!".
It seems like Apache is running instead of Nginx that i want. I have Minstall installed with virtual hosts.
Please help how i can fix back to Nginx and my virtual hosts using Minstall!
Comments
Just stop apache and remove it maybe?
apt-get purge apache && service nginx start
aptitude --purge remove apache2
service nginx restart
It happens if your vps is reinstalled or your ip is assigned to another customer. can you still log in to ssh?
@netomx
I got error messages when i run your command:
Reading package lists... Done Building dependency tree Reading state information... Done Virtual packages like 'apache' can't be removed 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Starting nginx: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind()
@superpilesos Yes, i can still login to my vps using SSH.
apache is still running, try
service apache2 stop
or
killall httpd
Not then, just run
service apache stop
update-rc.d -f apache remove
service nginx start
(maybe apache2, I don't know on debian)
@superpilesos
Thanks it worked!
@budingyun what do you use for your 'current server status' page?
How to you find out that your vps ip is shared with some other customer too?
If you sometimes can't log into ssh and get other sites/services showing on your ip, then you restart your vm and everything is back to normal
It happen to me once.
Also, if you're still getting a fail bind error, run this:
lsof -i :80