Cant start httpd and nginx
Posted: Sat Mar 10, 2018 1:44 pm
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:
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.
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:
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.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]
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.