mod_perl: modules not running?
From: Ben Hopkins (XbenXhopkins_at_XmindXspring.Xcom)
Date: 08/30/04
- Next message: Sisyphus: "Re: Win32::File"
- Previous message: Bill Karwin: "Re: DBI quote alternative"
- Next in thread: Sisyphus: "Re: mod_perl: modules not running?"
- Reply: Sisyphus: "Re: mod_perl: modules not running?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 Aug 2004 23:45:28 GMT
I'm running RH 8, apache 1.3.23, mod_perl 1.29. They wanted me to
install a CMS (Plone) that uses Zope, which requires that I put
mod_proxy into the apache setup. So I redid the apache ./configure
(forgetting about mod_perl for the moment).
Then I remembered about mod_perl, learned about APACI args and
everything, and it make'd just fine all the way through the install.
Except for one problem: my mod_perl modules are not running. I have a
module defined as a PerlHandler for location "/" which inserts a bit of
javascript into each outgoing html doc, and another PerlAuthenHandler
for a directory they wanted protected. Neither of those runs anymore.
No error messages in the logs, either.
I configured it like this:
$ perl Makefile.PL `cat make_args`
--where make_args looks like this:
USE_APACI=1 \
EVERYTHING=1 \
DO_HTTPD=1 \
APACHE_SRC=../apache_1.3.23/src \
APACI_ARGS=--enable-module=proxy,--enable-module=rewrite,--enable-module=speling,--enable-module=so,--prefix=/usr/local/apache
Here is the revelant part of httpd.conf:
PerlRequire conf/startup.pl
PerlFreshRestart On
PerlModule Apache::AuthPwd
<Location />
SetHandler perl-script
PerlHandler Apache::putInJava
</Location>
<Location /howdy>
SetHandler perl-script
PerlHandler Apache::HelloWorld
</Location>
<Location /secret>
AuthName " -- Use your regular name in the User Name field -- "
AuthType Basic
PerlAuthenHandler Apache::AuthPwd
require valid-user
</Location>
(The /howdy location was thrown in at the last minute as a test -- it
didn't work.)
Here is httpd -l output:
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_speling.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_proxy.c
mod_expires.c
mod_so.c
mod_setenvif.c
mod_perl.c
And I wrote a little script to print the contents of Apache::MyConfig,
which says,
APACHE_HEADER_INSTALL: 1
APACHE_PREFIX:
APACHE_SRC: ../apache_1.3.23/src
APACI_ARGS:
--enable-module=proxy,--enable-module=rewrite,--enable-module=speling,--enable-module=so,--prefix=/usr/local/apache
APXS:
Apache_Src: ../apache_1.3.23/src
DO_HTTPD: 1
NO_HTTPD: 0
PERL_ACCESS: 1
PERL_AUTHEN: 1
PERL_AUTHZ: 1
PERL_CHILD_EXIT: 1
PERL_CHILD_INIT: 1
PERL_CLEANUP: 1
PERL_CONNECTION_API: 1
PERL_DEBUG:
PERL_DIRECTIVE_HANDLERS: 1
PERL_DISPATCH: 1
PERL_FILE_API: 1
PERL_FIXUP: 1
PERL_HANDLER: 1
PERL_HEADER_PARSER: 1
PERL_INIT: 1
PERL_LOG: 1
PERL_LOG_API: 1
PERL_METHOD_HANDLERS: 1
PERL_POST_READ_REQUEST: 1
PERL_RESTART: 1
PERL_SECTIONS: 1
PERL_SERVER_API: 1
PERL_SSI: 1
PERL_STACKED_HANDLERS: 1
PERL_STATIC_EXTS:
PERL_TABLE_API: 1
PERL_TRACE: 0
PERL_TRANS: 1
PERL_TYPE: 1
PERL_URI_API: 1
PERL_USELARGEFILES: 1
PERL_UTIL_API: 1
PREP_HTTPD: 0
SSL_BASE:
USE_APACI: 1
USE_APXS: 0
What am I doing wrong?
- Next message: Sisyphus: "Re: Win32::File"
- Previous message: Bill Karwin: "Re: DBI quote alternative"
- Next in thread: Sisyphus: "Re: mod_perl: modules not running?"
- Reply: Sisyphus: "Re: mod_perl: modules not running?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|