[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Apache



On Mon, Mar 26, 2001 at 05:14:34PM +0100, Ian Wright wrote:
> Apache is now working, thanks. The problem wasn't in the IP setup after all
> but the httpd wasn't starting. When I dug a bit deeper I got an error
> message saying that line 406 of the httpd.conf file had 'invalid syntax -
> Invalid command 'PerlHandler', perhaps a mis-spelled or defined by a module
> not included in server configuration'
> The line in question reads - 'PerlHandler Apache :: Registry'
> I commented this out and things started working. Now the question is do I
> need this line in and if so what is it all about. The Apache installation is
> straight from the rpm and so I would have expected that it would have, at
> least, had a working .conf file - puzzled,

Well, firstly you were either telling fibs or you broke it yourself - if you ever managed to see http://localhost/, Apache *was* running. I would suggest the RPM installed okay, you got it running on the local machine, changed a config option (either intentionally or unintentionally), b0rked it, and then tried accessing it from elsewhere :-) 

Secondly: tip for Apache people, if you're on a RedHat machine, rather than doing /etc/rc.d/init.d/httpd start, do a '/etc/rc.d/init.d/httpd test' first. This will check your config file, and tell you if it will work. If Apache isn't starting, it'll tell you why. For everyone else, it's 'apachectl configtest', or 'httpd -t', depending what flavour coffee you like.

PerlHandler is part of mod_perl - so it sounds like mod_perl isn't in there. Second tip is 'httpd -l' - that tells you what you have compiled into Apache. If mod_perl isn't there, you need to pick it up as a DSO - I personally recommend APXS for doing this.  HOWEVER - if you don't know if you need mod_perl, you don't. Just use the usual CGI handler. And I would also have expected the line to be PerlHandler Apache::Registry, but I'm not a mod_perl user, so I may be wrong.

Cheers,

Alex.
--
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.