Apache Problems

soirambo

Verified User
Joined
Feb 27, 2005
Messages
28
I am getting the following error when I attempt to start apache right after a fresh install of DirectAdmin. I haven't touched any files except the Apache config which I restored to normal from a backup at this point. So everything right now is how DirectAdmin installed it and I get this error...

Starting httpd: Syntax error on line 160 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
[FAILED]


I can't figure out why it is doing this. Would an apache re-install help, if so, how do I do that. Any suggestions or solutions?

Thanks, Mike.
 
UPDATE

Also, when I comment out all of the php4 lines it runs fine. Maybe I need a php4 re-install, if so, how is that done? Any help on this issue would be great.

Thanks, Mike
 
Problem Solved!

Well, seems something was weird with it, but if you are reading this and have the same problem I had, here is a simple solution...

Run the following commands...

1) cd /usr/local/directadmin/customapache
2) rm -f configure.php
3) ./build clean
4) ./build update
5) ./build php
6) service httpd restart

That should put a fresh install of it in your system without destroying your configs and it should fix the php4 problem and allow the panel to start, stop, and restart apache.

Thanks, Mike
 
Back
Top