Nginx And HTTPD wont start
Nginx And HTTPD wont start
I am running centos 6.This morning i deleted a user using 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:
my SERVER_IP.conf from contains:
my VESTA.conf from contains:
How do i fix this,if it is fixable
Code: Select all
useradd -m username -s /sbin/nologin
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
Code: Select all
/etc/httpd/conf.d
Code: Select all
NameVirtualHost SERVER_IP:80
Listen SERVER_IP:80
NameVirtualHost SERVER_IP:443
Listen SERVER_IP:443
Code: Select all
/usr/local/vesta/conf
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'
-
- Posts: 139
- Joined: Thu Jan 07, 2016 12:01 am
Re: Nginx And HTTPD wont start
check what's listed in:pwmotp wrote:I am running centos 6.This morning i deleted a user usinglittle 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.Code: Select all
useradd -m username -s /sbin/nologin
Wheni attempt to start httpd i get:
my SERVER_IP.conf fromCode: 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
contains:Code: Select all
/etc/httpd/conf.d
my VESTA.conf fromCode: Select all
NameVirtualHost SERVER_IP:80 Listen SERVER_IP:80 NameVirtualHost SERVER_IP:443 Listen SERVER_IP:443
contains:Code: Select all
/usr/local/vesta/conf
How do i fix this,if it is fixableCode: 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'
Code: Select all
/usr/local/vesta/nginx/conf/nginx.conf
Code: Select all
listen 8083;
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Nginx And HTTPD wont start
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:
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'