You are not logged in.
I successfully set up LAMP a few weeks ago following the wiki but I'm trying to get it back up and running to test a php script and can't seem to figure it out.
/etc/rc.d/httpd restart
and
/etc/rc.d/httpd start
both fail and the logs don't really help. This is the bottom of /etc/httpd/logs/error_log:
[Wed Sep 19 21:24:16 2007] [notice] Apache/2.2.6 (Unix) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e configured -- resuming normal operations
[Wed Sep 19 21:24:36 2007] [error] [client 127.0.0.1] File does not exist: /home/httpd/html/favicon.ico
[Thu Sep 20 18:54:00 2007] [notice] caught SIGTERM, shutting downAnd I tried many times today to start and restart apache. Those are old errors. Why wouldn't apache append anything to the log files if starting it failed? Any ideas?
For the strength of the pack is the wolf, and the strength of the wolf is the pack.
Offline
The rc.d script isn't helpful as that redirects output straight to /dev/null. Try /usr/sbin/apachectl start
1000
Offline
OK, that's good to know. Thanks. Here's the output of /usr/sbin/apachectl start:
httpd: Syntax error on line 91 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/localhost/mod_mime.so into server: /etc/httpd/modules/localhost/mod_mime.so: cannot open shared object file: No such file or directoryIf I comment out that line in httpd.conf and try the command again, I get this:
Syntax error on line 228 of /etc/httpd/conf/httpd.conf:
Invalid command 'AddType', perhaps misspelled or defined by a module not included in the server configurationI don't want to mess with httpd.conf too much further without knowing what I"m doing so any direction would be appreciated.
For the strength of the pack is the wolf, and the strength of the wolf is the pack.
Offline
To mess with your config files is the "only" way to learn, however, you should not "mess" with your config files.
Solution? Make a copy of the config file and give it a name like config.bk then mess with the config file.
If all goes well then no problem, otherwise restore the original file from your backup with "mv config.bk config"
Hope this helps.
R
Edit: On looking at the error it seems that you have a definition for a module you are not using.
Last edited by ralvez (2007-10-13 18:02:21)
Offline
I bet you installed before php was modularized?
And now you need to install all modules you use again and check the configs.
Offline
It looks like some configuration error, try to load mime_module with this line:
LoadModule mime_module /usr/lib/apache/mod_mime.so
btw: what is your ServerRoot directive?
Offline
Thanks, snowbear. I think that did it. I can now view php scripts through a browser.
By the way, my ServerRoot directive is "/etc/httpd".
For the strength of the pack is the wolf, and the strength of the wolf is the pack.
Offline