You are not logged in.

#1 2007-10-13 01:51:01

Thrillhouse
Member
From: Arlington, VA, USA
Registered: 2007-05-29
Posts: 175

What happened to my LAMP?!?!

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 down

And 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

#2 2007-10-13 03:59:42

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: What happened to my LAMP?!?!

The rc.d script isn't helpful as that redirects output straight to /dev/null. Try /usr/sbin/apachectl start


1000

Offline

#3 2007-10-13 15:34:54

Thrillhouse
Member
From: Arlington, VA, USA
Registered: 2007-05-29
Posts: 175

Re: What happened to my LAMP?!?!

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 directory

If 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 configuration

I 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

#4 2007-10-13 18:00:40

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,730
Website

Re: What happened to my LAMP?!?!

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

#5 2007-10-13 19:11:12

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: What happened to my LAMP?!?!

I bet you installed before php was modularized?

And now you need to install all modules you use again and check the configs.

Offline

#6 2007-10-13 20:43:55

snowbear
Member
From: Prague, Czech Republic
Registered: 2007-02-02
Posts: 11

Re: What happened to my LAMP?!?!

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

#7 2007-10-13 20:57:19

Thrillhouse
Member
From: Arlington, VA, USA
Registered: 2007-05-29
Posts: 175

Re: What happened to my LAMP?!?!

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

Board footer

Powered by FluxBB