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 HTTPD wont start

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
pwmotp
Posts: 1
Joined: Fri Nov 20, 2015 11:58 am

Nginx And HTTPD wont start
  • Quote

Post by pwmotp » Fri Nov 20, 2015 12:12 pm

I am running centos 6.This morning i deleted a user using

Code: Select all

useradd -m username -s /sbin/nologin
little did i know i messed up with something,Now httpd and nginx cannot start at the sametime - one has to be off for another to work - and this way i am getting 502 error bad gateway.

Wheni attempt to start httpd i get:

Code: Select all

[Fri Nov 20 15:06:30 2015] [warn] NameVirtualHost SERVER_IP:443 has no Virtual                                                                                        Hosts
(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
my SERVER_IP.conf from

Code: Select all

/etc/httpd/conf.d
contains:

Code: Select all

NameVirtualHost SERVER_IP:80
Listen SERVER_IP:80
NameVirtualHost SERVER_IP:443
Listen SERVER_IP:443
my VESTA.conf from

Code: Select all

/usr/local/vesta/conf
contains:

Code: Select all

WEB_SYSTEM='httpd'
WEB_RGROUPS='apache'
WEB_PORT='80'
WEB_SSL='mod_ssl'
WEB_SSL_PORT='433'
FTP_SYSTEM='vsftpd'
MAIL_SYSTEM='exim'
IMAP_SYSTEM='dovecot'
DB_SYSTEM='mysql'
DNS_SYSTEM='named'
STATS_SYSTEM='webalizer,awstats'
BACKUP_SYSTEM='local'
CRON_SYSTEM='crond'
DISK_QUOTA='no'
FIREWALL_SYSTEM='iptables'
FIREWALL_EXTENSION='fail2ban'
REPOSITORY='cmmnt'
VERSION='0.9.8'
LANGUAGE='en'
How do i fix this,if it is fixable
Top

BBuchanan1013
Posts: 139
Joined: Thu Jan 07, 2016 12:01 am

Re: Nginx And HTTPD wont start
  • Quote

Post by BBuchanan1013 » Thu Jan 07, 2016 7:29 am

pwmotp wrote:I am running centos 6.This morning i deleted a user using

Code: Select all

useradd -m username -s /sbin/nologin
little did i know i messed up with something,Now httpd and nginx cannot start at the sametime - one has to be off for another to work - and this way i am getting 502 error bad gateway.

Wheni attempt to start httpd i get:

Code: Select all

[Fri Nov 20 15:06:30 2015] [warn] NameVirtualHost SERVER_IP:443 has no Virtual                                                                                        Hosts
(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
my SERVER_IP.conf from

Code: Select all

/etc/httpd/conf.d
contains:

Code: Select all

NameVirtualHost SERVER_IP:80
Listen SERVER_IP:80
NameVirtualHost SERVER_IP:443
Listen SERVER_IP:443
my VESTA.conf from

Code: Select all

/usr/local/vesta/conf
contains:

Code: Select all

WEB_SYSTEM='httpd'
WEB_RGROUPS='apache'
WEB_PORT='80'
WEB_SSL='mod_ssl'
WEB_SSL_PORT='433'
FTP_SYSTEM='vsftpd'
MAIL_SYSTEM='exim'
IMAP_SYSTEM='dovecot'
DB_SYSTEM='mysql'
DNS_SYSTEM='named'
STATS_SYSTEM='webalizer,awstats'
BACKUP_SYSTEM='local'
CRON_SYSTEM='crond'
DISK_QUOTA='no'
FIREWALL_SYSTEM='iptables'
FIREWALL_EXTENSION='fail2ban'
REPOSITORY='cmmnt'
VERSION='0.9.8'
LANGUAGE='en'
How do i fix this,if it is fixable
check what's listed in:

Code: Select all

/usr/local/vesta/nginx/conf/nginx.conf
right around line 80:

Code: Select all

listen          8083;
if that's set to 80 as well, instead of 8083, then there's your problem.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Nginx And HTTPD wont start
  • Quote

Post by tjebbeke » Thu Jan 07, 2016 8:22 am

I suspect that your server is not configured to use Apache + Nginx. I see no reference to Nginx in your vesta config.

Vesta.conf with nginx reference:

Code: Select all

WEB_SYSTEM='httpd'
WEB_RGROUPS='apache' 
WEB_PORT='8080' 
WEB_SSL='mod_ssl'
WEB_SSL_PORT='8443'
PROXY_SYSTEM='nginx'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
Top


Post Reply
  • Print view

3 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