Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 21:07:00

Author Topic: error on /script/restart-web  (Read 8346 times)

0 Members and 1 Guest are viewing this topic.

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
error on /script/restart-web
« on: 2016-04-16, 10:20:01 »
Code: [Select]
sh /script/restart-web

*** Process for PHP-FPM service ***
  - Process: restart
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
-------------------------------------------------------------------

*** Process for NGINX service ***
  - Process: restart
Stopping nginx:                                            [FAILED]
Starting nginx: nginx: [emerg] open() "/opt/configs/nginx/conf/globals/switch_standard_ssl.conf" failed (2: No such file or directory) in /opt/configs/nginx/conf/defaults/init.conf:60
                                                           [FAILED]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - Process: restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'

Offline Chicken2nd

  • Junior Member
  • *
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: error on /script/restart-web
« Reply #1 on: 2016-04-16, 10:29:02 »
Create a file switch_standard_ssl.conf and  Copy all config in /opt/configs/nginx/conf/globals/switch_standard.conf to /opt/configs/nginx/conf/globals/switch_standard_ssl.conf.

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: error on /script/restart-web
« Reply #2 on: 2016-04-16, 10:32:11 »
we can disable nginx ?


Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: error on /script/restart-web
« Reply #3 on: 2016-04-16, 10:35:36 »
Create a file switch_standard_ssl.conf and  Copy all config in /opt/configs/nginx/conf/globals/switch_standard.conf to /opt/configs/nginx/conf/globals/switch_standard_ssl.conf.

If i do that httpd stop working...

Code: [Select]
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]

Offline Chicken2nd

  • Junior Member
  • *
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: error on /script/restart-web
« Reply #4 on: 2016-04-16, 11:14:06 »
After copy to, you need use sh /scripts/restart-web

Offline Chicken2nd

  • Junior Member
  • *
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: error on /script/restart-web
« Reply #5 on: 2016-04-16, 11:16:17 »
Create a file switch_standard_ssl.conf and  Copy all config in /opt/configs/nginx/conf/globals/switch_standard.conf to /opt/configs/nginx/conf/globals/switch_standard_ssl.conf.

If i do that httpd stop working...

Code: [Select]
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]

After copy to, you need use sh /scripts/restart-web
Reboot your vps or sv

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: error on /script/restart-web
« Reply #6 on: 2016-04-16, 12:18:14 »
Kloxo-MR will copy php-fpm*.conf or proxy*.conf to switch*.conf if we run 'sh /script/fixweb'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: error on /script/restart-web
« Reply #7 on: 2016-04-16, 12:41:06 »
I had done...

Code: [Select]
sh /script/fixweb

and

sh /script/restart-web

*** Process for PHP-FPM service ***
  - Process: restart
Stopping php56m-fpm:                                       [  OK  ]
Starting php56m-fpm:                                       [  OK  ]
-------------------------------------------------------------------

*** Process for NGINX service ***
  - Process: restart
Stopping nginx:                                            [FAILED]
Starting nginx: nginx: [emerg] open() "/opt/configs/nginx/conf/globals/switch_standard_ssl.conf" failed (2: No such file or directory) in /opt/configs/nginx/conf/defaults/init.conf:60
                                                           [FAILED]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - Process: restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'


But dont solve the nginx problem...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: error on /script/restart-web
« Reply #8 on: 2016-04-16, 12:59:11 »
So, try 'sh /script/cleanup' and or switch web to 'hiawatha' and then switch back to original in 'switch programs'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: error on /script/restart-web
« Reply #9 on: 2016-04-16, 13:25:44 »
I had done both...

And dont solve the problem...

And now i cant stop http... always FAIL...

Code: [Select]
/etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]


 sh /script/restart-web

*** Process for PHP-FPM service ***
  - Process: restart
Stopping php56m-fpm:                                       [  OK  ]
Starting php56m-fpm:                                       [  OK  ]
-------------------------------------------------------------------

*** Process for NGINX service ***
  - Process: restart
Stopping nginx:                                            [FAILED]
Starting nginx: nginx: [emerg] open() "/opt/configs/nginx/conf/globals/switch_standard_ssl.conf" failed (2: No such file or directory) in /opt/configs/nginx/conf/defaults/init.conf:62
                                                           [FAILED]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - Process: restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: error on /script/restart-web
« Reply #10 on: 2016-04-16, 13:56:44 »
What's happen if you running 'yum clean all; yum update -y'?. Inform here.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: error on /script/restart-web
« Reply #11 on: 2016-04-16, 15:26:30 »
Code: [Select]

[b] yum clean all[/b]
Loaded plugins: fastestmirror, keys, priorities, protectbase, replace
Cleaning repos: base extras mratwork-epel mratwork-google-mod-pagespeed mratwork-ius-archive mratwork-ius-stable mratwork-mariadb-32 mratwork-mariadb-64
              : mratwork-nginx mratwork-nginx-stable mratwork-release-neutral-noarch mratwork-release-version-arch mratwork-varnish-3.0 mratwork-webtatic
              : updates
Cleaning up Everything
Cleaning up list of fastest mirrors

[b]yum update[/b]
Loaded plugins: fastestmirror, keys, priorities, protectbase, replace
Setting up Update Process
Determining fastest mirrors
mratwork-epel/metalink                                                                                                                |  27 kB     00:00
 * base: centos.quelquesmots.fr
 * extras: centos.quelquesmots.fr
 * mratwork-epel: mirrors.ircam.fr
 * mratwork-ius-stable: mirrors.ircam.fr
 * mratwork-webtatic: uk.repo.webtatic.com
 * updates: centos.quelquesmots.fr
base                                                                                                                                  | 3.7 kB     00:00
base/primary_db                                                                                                                       | 4.6 MB     00:00
extras                                                                                                                                | 3.4 kB     00:00
extras/primary_db                                                                                                                     |  37 kB     00:00
mratwork-epel                                                                                                                         | 4.3 kB     00:00
mratwork-epel/primary_db                                                                                                              | 5.9 MB     00:00
mratwork-google-mod-pagespeed                                                                                                         |  951 B     00:00
mratwork-google-mod-pagespeed/primary                                                                                                 | 3.1 kB     00:00
mratwork-google-mod-pagespeed                                                                                                                          18/18
mratwork-ius-archive                                                                                                                  | 2.3 kB     00:00
mratwork-ius-archive/primary_db                                                                                                       | 3.4 MB     00:01
mratwork-ius-stable                                                                                                                   | 2.2 kB     00:00
mratwork-ius-stable/primary_db                                                                                                        | 194 kB     00:00
mratwork-mariadb-32                                                                                                                   | 2.9 kB     00:00
mratwork-mariadb-32/primary_db                                                                                                        |  21 kB     00:00
mratwork-mariadb-64                                                                                                                   | 2.9 kB     00:00
mratwork-mariadb-64/primary_db                                                                                                        |  22 kB     00:00
mratwork-nginx                                                                                                                        | 2.9 kB     00:00
mratwork-nginx/primary_db                                                                                                             |  27 kB     00:00
mratwork-nginx-stable                                                                                                                 | 2.9 kB     00:00
mratwork-nginx-stable/primary_db                                                                                                      | 8.3 kB     00:00
mratwork-release-neutral-noarch                                                                                                       |  951 B     00:00
mratwork-release-neutral-noarch/primary                                                                                               |  80 kB     00:00
mratwork-release-neutral-noarch                                                                                                                      270/270
mratwork-release-version-arch                                                                                                         |  951 B     00:00
mratwork-release-version-arch/primary                                                                                                 | 110 kB     00:00
mratwork-release-version-arch                                                                                                                        275/275
mratwork-varnish-3.0                                                                                                                  |  951 B     00:00
mratwork-varnish-3.0/primary                                                                                                          | 9.4 kB     00:00
mratwork-varnish-3.0                                                                                                                                   40/40
mratwork-webtatic                                                                                                                     | 3.6 kB     00:00
mratwork-webtatic/primary_db                                                                                                          | 191 kB     00:00
updates                                                                                                                               | 3.4 kB     00:00
updates/primary_db                                                                                                                    | 4.6 MB     00:00
0 packages excluded due to repository protections
No Packages marked for Update



I had removed nginx!
I need it ?


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: error on /script/restart-web
« Reply #12 on: 2016-04-16, 15:47:15 »
Please select 'web server' from 'switch programs' in panel. Don't use 'yum install' because make trouble.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: error on /script/restart-web
« Reply #13 on: 2016-04-16, 16:07:23 »
On Switch Program, in Web, i have 'apache'


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: error on /script/restart-web
« Reply #14 on: 2016-04-16, 16:44:39 »
At this moment, if you select 'apache' and it make only apache installed. Other web servers not installed (except hiawatha because using by panel itself). If select 'nginxproxy', apache and nginx will installed.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.028 seconds with 19 queries.

web stats analysis