Jump to content

Apache not starting


Recommended Posts

check your log files... as root, restart apache while viewing your logs...

command as root:

tail -f /var/log/messages

or do a config test, make sure you do

su -

then

apachectl configtest

it will tell you if you have some syntax error on httpd.conf

Link to comment
Share on other sites

You can also try starting it from the command line a couple different ways.

 

# service httpd start
Starting httpd: [  OK  ]
# service httpd stop
Stopping httpd: [  OK  ]

 

or

 

# service httpd stop
Stopping httpd: [  OK  ]
# /etc/init.d/httpd stop
Stopping httpd: [  OK  ]

 

or Use this if your httpd.conf is located some were else. (maybe not a default FC package)

 

# /usr/sbin/apachectl -f /tools/IBM/httpd/conf/httpd.conf -k start
# /usr/sbin/apachectl -f /tools/IBM/httpd/conf/httpd.conf -k stop

 

 

Probably more ways but heh.

 

Like aioshin mentioned, run the apachectl configtest to make sure your httpd.conf is ok.

 

# apachectl configtest
Syntax OK

 

 

 

Is your Apache the default one that comes with FC or did you build your own?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...