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 and named doesnt start at boot

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
leisegang
Posts: 64
Joined: Mon Feb 29, 2016 7:24 pm

Nginx and named doesnt start at boot
  • Quote

Post by leisegang » Mon Feb 29, 2016 7:27 pm

I have installed the VestaCP.

After about 3 days the nginx(frontend) and named stopped starting on boot. i have to manually open terminal and start it.

2016/02/29 20:08:33 [emerg] 719#0: bind() to x.x.x.x:80 failed (99: Cannot assign requested address)


Is there something i can do to try to fix this?
I have read loads of posts here but cant find a solution.

Is there a possibility to reset some settings to make it work?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Nginx and named doesnt start at boot
  • Quote

Post by skamasle » Mon Feb 29, 2016 7:47 pm

Check if you dont lost any IP on reboot

ifconfig

And check if nginx not runing

ps aux |grep nginx

If runing kill pid or killall nginx

Then service nginx start

If you lost IPs, or remove ip from server and dont remove it from vesta nginx dont start.
Top

leisegang
Posts: 64
Joined: Mon Feb 29, 2016 7:24 pm

Re: Nginx and named doesnt start at boot
  • Quote

Post by leisegang » Mon Feb 29, 2016 7:55 pm

When testing ifconfig i get this:
Last edited by leisegang on Mon Feb 29, 2016 8:21 pm, edited 1 time in total.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Nginx and named doesnt start at boot
  • Quote

Post by skamasle » Mon Feb 29, 2016 8:02 pm

Yes there is one IP.

You need check if nginx try listing on same IP than you have venet0:0 or in orther one your x.x.x.x -> bind() to x.x.x.x:80 failed (99: Cannot assign requested address)
Top

leisegang
Posts: 64
Joined: Mon Feb 29, 2016 7:24 pm

Re: Nginx and named doesnt start at boot
  • Quote

Post by leisegang » Mon Feb 29, 2016 8:03 pm

How do i do that?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Nginx and named doesnt start at boot
  • Quote

Post by skamasle » Mon Feb 29, 2016 8:07 pm

Check if x.x.x.x:80 is same IP ad you have on vnet0:0
Top

leisegang
Posts: 64
Joined: Mon Feb 29, 2016 7:24 pm

Re: Nginx and named doesnt start at boot
  • Quote

Post by leisegang » Mon Feb 29, 2016 8:22 pm

The venet and nginx ip is the same
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Nginx and named doesnt start at boot
  • Quote

Post by skamasle » Mon Feb 29, 2016 8:45 pm

CHeck if you have runing apache or other nginx

is use centos

Code: Select all

ps aux |grep httpd
on debian

Code: Select all

ps aux |grep apache2

ps aux |grep nginx
Or check if you dont have any orther application on port 80

Code: Select all

netstat -plnt
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

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