httpd wont start

gaz0r

Verified User
Joined
Aug 27, 2004
Messages
36
just came in my server and found httpd is down when i try to restart it in direct admin it just says error

any ideas how i can get it back up ?
 
Try to start it via command line and look for errors. Check the apache error log.
 
Starting httpd: httpd: Syntax error on line 160 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/extra/directadmin-vhosts.conf: Permission denied


thats the error any ideas ?
 
chmod 660 /etc/httpd/conf/extra/directadmin-vhosts.conf
chown root:root /etc/httpd/conf/extra/directadmin-vhosts.conf
/sbin/service httpd restart
 
i just get this

admin@server:/etc/httpd/conf$ chmod 660 /etc/httpd/conf/extra/directadmin-vhosts.conf
chmod: changing permissions of `/etc/httpd/conf/extra/directadmin-vhosts.conf': Operation not permitted
 
Code:
chattr -i /etc/httpd/conf/extra/directadmin-vhosts.conf
 
No you have to login as root user your logged in as admin.
 
chmod 660 /etc/httpd/conf/extra/directadmin-vhosts.conf
chown root:root /etc/httpd/conf/extra/directadmin-vhosts.conf
/sbin/service httpd restart
I get:
Stopping httpd: [FAILED]
Starting httpd: (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


Can anyone help?
I'm a SSH newb, and I confess to feeling a bit paranoid about being logged in as root. :eek:
 
Code:
ps aux | grep httpd

Is httpd running? Try and kill the process and start up httpd again.
 
Back
Top