0 Members and 1 Guest are viewing this topic.
Need select 'php-fpm' for 'php type' if using apache or proxy.
Inform here 'sh /script/restart-web -y'.
[root@server1 ~]# sh /script/restart-web -yStopping php-fpm (PHP Used): [FAILED]Starting php-fpm (PHP Used): [05-Jun-2016 03:56:30] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/php-apache.sock[05-Jun-2016 03:56:30] ERROR: FPM initialization failed [FAILED]-------------------------------------------------------------------Stopping php54m-fpm (Multiple Php): [ OK ]Stopping php55m-fpm (Multiple Php): [ OK ]Stopping php56m-fpm (Multiple Php): [ OK ]Starting php54m-fpm (Multiple Php): [ OK ]Starting php55m-fpm (Multiple Php): [ OK ]Starting php56m-fpm (Multiple Php): [ OK ]-------------------------------------------------------------------Stopping nginx: [FAILED]Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)nginx: [emerg] still could not bind() [FAILED]-------------------------------------------------------------------Stopping httpd: [ OK ]Starting httpd: [ OK ]-------------------------------------------------------------------- For help, type '/script/restart-web [--help|-h]'[root@server1 ~]#
Try 'pkill -9 php-fpm; sh /script/restart-all -y'.
[root@server1 ~]# pkill -9 php-fpm[root@server1 ~]# pkill -9 php-fpm; sh /script/restart-all -yShutting down system logger: [ OK ]Starting system logger: [ OK ]-------------------------------------------------------------------Shutting down MySQL... SUCCESS!Starting MySQL... SUCCESS!-------------------------------------------------------------------Stopping named: . [ OK ]Starting named: [ OK ]-------------------------------------------------------------------Stopping php-fpm (PHP Used): [FAILED]Starting php-fpm (PHP Used): [ OK ]-------------------------------------------------------------------Stopping php54m-fpm (Multiple Php): [FAILED]Stopping php55m-fpm (Multiple Php): [FAILED]Stopping php56m-fpm (Multiple Php): [FAILED]Starting php54m-fpm (Multiple Php): [ OK ]Starting php55m-fpm (Multiple Php): [ OK ]Starting php56m-fpm (Multiple Php): [ OK ]-------------------------------------------------------------------Stopping nginx: [FAILED]Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 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 [::]:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)nginx: [emerg] still could not bind() [FAILED]-------------------------------------------------------------------Stopping httpd: [ OK ]Starting httpd: [ OK ]-------------------------------------------------------------------*** Process for QMAIL service ***Stopping qmail-toaster: svscan qmail logging.qmail-send: no process killedStarting qmail-toaster: svscan.-------------------------------------------------------------------- For help, type '/script/restart-mail [--help|-h]'-------------------------------------------------------------------Stopping pure-ftpd: [ OK ]Starting pure-ftpd: [ OK ]-------------------------------------------------------------------Stopping kloxo-phpcgi: [FAILED]Starting kloxo-phpcgi ('php54s' in 'fpm' mode): [ OK ]Stopping kloxo-hiawatha: [ OK ]Starting kloxo-hiawatha: [ OK ]-------------------------------------------------------------------[root@server1 ~]#
If not using nginx/nginx-proxy, try 'chkconfig nginx off; sh /script/restart-web -y'.
[root@server1 ~]# chkconfig nginx off[root@server1 ~]# sh /script/restart-web -yStopping php-fpm (PHP Used): [ OK ]Starting php-fpm (PHP Used): [ OK ]-------------------------------------------------------------------Stopping php54m-fpm (Multiple Php): [ OK ]Stopping php55m-fpm (Multiple Php): [ OK ]Stopping php56m-fpm (Multiple Php): [ OK ]Starting php54m-fpm (Multiple Php): [ OK ]Starting php55m-fpm (Multiple Php): [ OK ]Starting php56m-fpm (Multiple Php): [ OK ]-------------------------------------------------------------------Stopping httpd: [ OK ]Starting httpd: [ OK ]-------------------------------------------------------------------- For help, type '/script/restart-web [--help|-h]'[root@server1 ~]#
If you choose 'apache' only, better remove nginx with 'yum remove nginx -y'.
[root@server1 ~]# yum remove nginx -yLoaded plugins: fastestmirror, priorities, protectbase, replaceSetting up Remove ProcessResolving Dependencies--> Running transaction check---> Package nginx.x86_64 0:1.11.1-1.el6.ngx will be erased--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Removing: nginx x86_64 1.11.1-1.el6.ngx @mratwork-nginx 2.1 MTransaction Summary================================================================================Remove 1 Package(s)Installed size: 2.1 MDownloading Packages:Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Erasing : nginx-1.11.1-1.el6.ngx.x86_64 1/1warning: /etc/nginx/nginx.conf saved as /etc/nginx/nginx.conf.rpmsavewarning: /etc/nginx/fastcgi_params saved as /etc/nginx/fastcgi_params.rpmsavewarning: /etc/nginx/conf.d/default.conf saved as /etc/nginx/conf.d/default.conf.rpmsave Verifying : nginx-1.11.1-1.el6.ngx.x86_64 1/1Removed: nginx.x86_64 0:1.11.1-1.el6.ngxComplete![root@server1 ~]#
Page created in 0.033 seconds with 22 queries.