Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx & Apache not starting after reboot.

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
11 posts
  • 1
  • 2
  • Next
eeepurushoth
Posts: 5
Joined: Mon Mar 09, 2015 12:30 pm

Nginx & Apache not starting after reboot.
  • Quote

Post by eeepurushoth » Tue Mar 10, 2015 10:26 am

Hi to all,

thanks for the awesome software Vesta CP.

easy to use for all newbies like me.

kindly help me. after reboot the nginx and apache modules are not starting.
i tried several things as said in forum.

Image

Image


i'm running an ubuntu 12.04 in azure VM - with 1.5GB of RAM.
running no other softwares.. fresh install. it worked fine yesterday. but after rebooting it gets this error.


any solutions.??


thanks in advance.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by skurudo » Tue Mar 10, 2015 11:16 am

Show us error logs please from /var/log

And from screenshot you restart not system nginx/apache, but vesta nginx
Top

eeepurushoth
Posts: 5
Joined: Mon Mar 09, 2015 12:30 pm

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by eeepurushoth » Tue Mar 10, 2015 12:16 pm

i saw the error log in which is shows its trying to bind to an ip, which is the ip address of yesterday.

apache2 also tries to bind to yesterdays ip.. so they are getting failed as todays ip is different,

kindly help me how to change an config file or something so that i can change the old ip address from the nginx and apache.



error.log below:


2015/03/10 04:53:48 [emerg] 1660#0: bind() to 100.72.228.57:80 failed (99: Cannot assign requested address)
2015/03/10 05:00:55 [emerg] 3619#0: bind() to 100.72.228.57:80 failed (99: Cannot assign requested address)


this 100.72.228.57:80 is yesterday's ip address.. todays is different.

help me

thanks in advance,.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by skurudo » Tue Mar 10, 2015 12:29 pm

In folders with apach2/httpd and nginx search for conf.d folder, in those folder find and remove/move files with old IP in name. Then you need restart nginx/apache services and check.
Top

eeepurushoth
Posts: 5
Joined: Mon Mar 09, 2015 12:30 pm

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by eeepurushoth » Tue Mar 10, 2015 1:00 pm

root@fatert:/etc/nginx# /etc/init.d/nginx restart
* Restarting nginx nginx nginx: [emerg] bind() to 100.72.228.57:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed.



i'm getting this
Top

eeepurushoth
Posts: 5
Joined: Mon Mar 09, 2015 12:30 pm

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by eeepurushoth » Tue Mar 10, 2015 1:59 pm

i had removed the ip conf in apache2.. its working now.

but in case of nginx its showing the same error above..

is it getting the ip address of yesterday from somewhere???
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by skurudo » Tue Mar 10, 2015 3:25 pm

Check nginx folder /etc/nginx/conf.d/ and do the same as in apache folder, then restart service.
Top

eeepurushoth
Posts: 5
Joined: Mon Mar 09, 2015 12:30 pm

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by eeepurushoth » Wed Mar 11, 2015 5:57 am

Is there any solution to automatically change those ip address by itself.??

do i need to do it everytime.?? i'm running ubuntu vm in azure.. in which i shutdown the vm daily.. so daily i need to do it..

it will be better if VESTACP team give us a solution for this.


I even tried to jump to webmin.. but nothing is as good, easy, convient as this vestacp.


kindly help me. thank you team
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by skurudo » Thu Apr 16, 2015 9:18 am

Solution for brave mans - viewtopic.php?f=10&t=5975
Not fully auto, but... better than nothing
Top

protocore
Posts: 26
Joined: Thu Sep 24, 2015 1:10 pm

Re: Nginx & Apache not starting after reboot.
  • Quote

Post by protocore » Thu Oct 22, 2015 3:21 pm

My logs any help

2015/10/22 15:20:44 [emerg] 2348#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 15:32:42 [emerg] 11344#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 15:46:15 [emerg] 12553#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:11:49 [emerg] 22110#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:11:58 [emerg] 22340#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:12:02 [emerg] 22570#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:12:04 [emerg] 22800#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:18:09 [emerg] 24591#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)

My new IP

176.9.79.23

I changed all files

/etc/apache2/conf.d/your-old-ip.conf
/etc/nginx/conf.d/your-old-ip.conf
/usr/local/vesta/data/ips/your-old-ip
Top


Post Reply
  • Print view

11 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password