|
Posted by Ben Hopkins on August 30, 2004, 12:45 am
Please log in for more thread options
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?
|
| Similar Threads | Posted | | CGI.pm and ModPerl::Registry | December 21, 2007, 11:20 pm |
| modperl and apache handlers | December 28, 2004, 5:38 am |
| CPAN conflict issue - CGI.pm vs ModPerl::Registry | September 25, 2006, 12:42 pm |
| which perl version is mod_perl running?? | April 15, 2006, 5:48 am |
| Trying to get HTML::Mason running, stuff out-of-date? | October 6, 2004, 5:28 pm |
| Error in Perl Inline::C program running | November 3, 2005, 4:00 am |
| LWP Install Fails under WinXP SP2 running ActivePerl Build 810 | November 22, 2004, 1:20 pm |
| Running compiled Inline C perl scripts on more than one machine | February 9, 2006, 12:12 pm |
| Math::GMP Make Test error on Itanium running HP-UX 11.23 | February 17, 2006, 10:23 am |
| SOLVED: Running MCPAN behind an authenticating proxy server (kludge) | November 23, 2004, 1:05 pm |
|