Page 1 of 1

Cant start httpd and nginx

Posted: Sat Mar 10, 2018 1:44 pm
by LorenzoVonMatterhorn
OS: Centos 6.9
Web: apache & nginx

I tried to upgrade php 5.6 to php 7 by following a tutorial. In step 6 I got an error that tells me I have missing dependencies. I tried to install them one by one but it was going to forever. I learned thats called "dependency hell".

Well, after a lots of research I decided to keep php 5.6 for a while. But, I can't start nginx and httpd process. If httpd working, nginx refusing to start:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Stopping nginx: [FAILED]
Starting nginx: nginx: [emerg] bind() to 128.24.230.223:80 failed (98: Address already in use)
nginx: [emerg] bind() to 128.24.230.223:80 failed (98: Address already in use)
nginx: [emerg] bind() to 128.24.230.223:80 failed (98: Address already in use)
nginx: [emerg] bind() to 128.24.230.223:80 failed (98: Address already in use)
nginx: [emerg] bind() to 128.24.230.223:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
[FAILED]
By the way, this is the tutorial I followed on: Note: I tried to restart the machine, tried to stop apache and start nginx then start apache back but this time apache asking for that port.

And I think I lost a few services after that. It says it does not recognize the service when I type service php-fpm stop.

Re: Cant start httpd and nginx

Posted: Sat Mar 10, 2018 4:09 pm
by mehargags
Try to rebuild web for your VestaCP users

Re: Cant start httpd and nginx

Posted: Sat Mar 10, 2018 5:15 pm
by LorenzoVonMatterhorn
mehargags wrote:
Sat Mar 10, 2018 4:09 pm
Try to rebuild web for your VestaCP users
I tried to reinstall vestacp but it says there is a user called admin. Im newbie to linux and vesta.

Re: Cant start httpd and nginx

Posted: Sun Mar 11, 2018 8:32 am
by mehargags
LorenzoVonMatterhorn wrote:
Sat Mar 10, 2018 5:15 pm
mehargags wrote:
Sat Mar 10, 2018 4:09 pm
Try to rebuild web for your VestaCP users
I tried to reinstall vestacp but it says there is a user called admin. Im newbie to linux and vesta.
My friend... that is not how you are going to run and maintain your Linux server.
You should try to fix if something is broken, you cannot re-install VestaCP on top of an existing install. You need to reinstall your whole VPS and then clean-install VestaCP

Re: Cant start httpd and nginx

Posted: Sun Mar 11, 2018 11:44 am
by LorenzoVonMatterhorn
mehargags wrote:
Sun Mar 11, 2018 8:32 am
LorenzoVonMatterhorn wrote:
Sat Mar 10, 2018 5:15 pm
mehargags wrote:
Sat Mar 10, 2018 4:09 pm
Try to rebuild web for your VestaCP users
I tried to reinstall vestacp but it says there is a user called admin. Im newbie to linux and vesta.
My friend... that is not how you are going to run and maintain your Linux server.
You should try to fix if something is broken, you cannot re-install VestaCP on top of an existing install. You need to reinstall your whole VPS and then clean-install VestaCP
There is no way to repair vestacp setup?
I tried to fix but there was hell of a dependencies needed and all dependencies needed another dependencies to install that made me dizzy.
Format was the last option because I don't own the server. I just rented it to learn vestacp. Well, I will contact with my server provider to reinstall vesta with php7. Thanks eveyone.