Reinstalling Apache?

TitaniumMan

Registered
For some reason, my Apache won't start up anymore. I'm not sure exactly when this happened, but when I try to start it, it just says "The Web Server is Starting Up."

Is there anyway I can reinstall Apache? I tried reinstalling Jaguar, but it says I can't install onto my hd because I have a newer version (10.2.1).

Thanks for any help,
Greg
 
One thing you can try to figure out what is wrong is drop to the terminal and read the man pages for "apachectl"

There is an option that will show you where your errors lie and what line in your httpd.conf file has the bad command.

Sorry, I'm on a windows box right now or I would find the exact command for you.
 
Thanks Rhino,

I did apachectl configtest and this is the output:
[pcp011262pcs:/library/logs/crashreporter] greg% apachectl configtest
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/greg.conf
Processing config file: /private/etc/httpd/users/mysql.conf
Syntax OK
dyld: /usr/sbin/httpd Undefined symbols:
_XML_ErrorString
_XML_GetErrorCode
_XML_Parse
_XML_ParserCreate
_XML_ParserFree
_XML_SetCharacterDataHandler
_XML_SetElementHandler
_XML_SetUserData
/usr/sbin/apachectl: line 171: 603 Trace/BPT trap $HTTPD -t

I looked at line 171 and it was: MaxRequestsPerChild 100000. I commented it out and got the same results.

Any thoughts?

Thanks,
Greg
 
It sounds like you have some missing components. Have you added anything to apache in the past or recently removed anything?

I hadn't seen anything regarding XML in the past but I haven't actualy been looking for it.
 
Hmm...

I installed Marc Liyanage's PHP package and I set it up as a WebDAV server. Those are the only 2 changes I've made that I can think of. The WebDAV definitely worked, but I'm not sure about the PHP.

Now that I think about it, maybe that was when it stopped working correctly. After I installed the package, the server was still running, but I don't think PHP was. When I restarted my computer (several days later), the server wouldn't start.

Should I try reinstalling the PHP package?

Thanks for your help!
Greg
 
DONT REINSTALL APACHE! I had the same problem, and this fixed it:

On Marc's page, it says:

"How can I get this to work together with the mod_dav WebDAV module?"

You need to change the order of the LoadModule and AddModule directives in the Apache configuration file /etc/httpd/httpd.conf so that the WebDAV module is loaded and added after the PHP module. Big thanks to Chris Janton for this tip.
 
Back
Top