Can't start nginx
Can't start nginx
Hello,
I am getting following error while running 'service nginx restart' in ssh...
Websites are not loading and apache config file got empty somehow, i have tried to rebuild web and rebuild dns but nothing helped. Please suggest a way to fix this issue.
Thanks
I am getting following error while running 'service nginx restart' in ssh...
Code: Select all
* Restarting nginx nginx nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
Thanks
Re: Can't start nginx
Reboot
or
/etc/init.d/nginx stop && /etc/init.d/nginx start
or
/etc/init.d/nginx stop && /etc/init.d/nginx start
Re: Can't start nginx
Thanks for your reply. I am still getting following error...
Code: Select all
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
skurudo wrote:Reboot
or
/etc/init.d/nginx stop && /etc/init.d/nginx start
Re: Can't start nginx
Show me please result of this command
Code: Select all
service nginx configtest
Re: Can't start nginx
Here is the reply for service nginx configtest
Code: Select all
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
imperio wrote:Show me please result of this commandCode: Select all
service nginx configtest
Re: Can't start nginx
I think you have problem with ip on your server
Try to use this command
Try to use this command
Code: Select all
/usr/local/vesta/bin/v-update-sys-ip
Re: Can't start nginx
Hello,
I have tried, it outputs nothing, and then i tried but still getting same error...
I have tried
Code: Select all
/usr/local/vesta/bin/v-update-sys-ip
Code: Select all
service nginx configtest
Code: Select all
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
* Restarting nginx nginx
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
imperio wrote:I think you have problem with ip on your server
Try to use this commandCode: Select all
/usr/local/vesta/bin/v-update-sys-ip
Re: Can't start nginx
Do you have ip adress in /usr/local/vesta/data/ips ?
What operating system on your server ?
Show me result
What operating system on your server ?
Show me result
Code: Select all
tail /etc/network/interfaces
Re: Can't start nginx
Operating System: Ubuntu 14.04
Yes, there are 3 ips in /usr/local/vesta/data/ips
tail /etc/network/interfaces outputs following...
Please note i am able to access VESTA CP.
Yes, there are 3 ips in /usr/local/vesta/data/ips
tail /etc/network/interfaces outputs following...
Code: Select all
netmask 255.255.255.128
gateway 209.187.25.1
auto eth1:1
iface eth1:1 inet static
name Ethernet alias LAN card
address 209.187.25.116
netmask 255.255.255.128
imperio wrote:Do you have ip adress in /usr/local/vesta/data/ips ?
What operating system on your server ?
Show me resultCode: Select all
tail /etc/network/interfaces
Last edited by webdotapp on Thu Jan 29, 2015 5:16 pm, edited 1 time in total.
Re: Can't start nginx
Ok, let's see what's demon on your port:
Show output, please.
Code: Select all
netstat -tunlp | grep 80