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 ?
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
Try to start it via command line and look for errors. Check the apache error log.
 

gaz0r

Verified User
Joined
Aug 27, 2004
Messages
36
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 ?
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
chmod 660 /etc/httpd/conf/extra/directadmin-vhosts.conf
chown root:root /etc/httpd/conf/extra/directadmin-vhosts.conf
/sbin/service httpd restart
 

gaz0r

Verified User
Joined
Aug 27, 2004
Messages
36
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
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,544
Location
LT, EU
Code:
chattr -i /etc/httpd/conf/extra/directadmin-vhosts.conf
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
No you have to login as root user your logged in as admin.
 

spacefish

New member
Joined
Mar 5, 2009
Messages
4
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:
 

GXX

Verified User
Joined
Mar 25, 2006
Messages
361
Code:
ps aux | grep httpd
Is httpd running? Try and kill the process and start up httpd again.
 
Top