[Lxr-dev] [ lxr-Bugs-3427606 ] .htaccess-apache2 doesn't work under Apache2.2
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2012-01-23 16:16:59
|
Bugs item #3427606, was opened at 2011-10-23 13:04 Message generated for change (Comment added) made by ajlittoz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3427606&group_id=27350 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Browsing Group: current cvs >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: sjs205 (sjs205) Assigned to: Nobody/Anonymous (nobody) Summary: .htaccess-apache2 doesn't work under Apache2.2 Initial Comment: The same as bug ID: 2783472: sudo tail /var/log/apache2/error.log -n 1 [Sun Oct 23 20:48:17 2011] [error] [client 86.147.245.75] failed to resolve handler `ModPerl::RegistryPrefork': This package can't be used under threaded MPMs at /usr/lib/perl5/ModPerl/RegistryPrefork.pm line 12.\nCompilation failed in require at (eval 3) line 3.\n $ apache2 -V Server version: Apache/2.2.14 (Ubuntu) Server built: Sep 1 2011 09:52:34 Server's Module Magic Number: 20051115:23 Server loaded: APR 1.3.8, APR-Util 1.3.9 Compiled using: APR 1.3.8, APR-Util 1.3.9 Architecture: 64-bit Server MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="" -D SUEXEC_BIN="/usr/lib/apache2/suexec" -D DEFAULT_PIDLOG="/var/run/apache2.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" $ perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi $ uname -a Linux DevBox 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux If any further information is required then please ask. ---------------------------------------------------------------------- >Comment By: Andre-Littoz (ajlittoz) Date: 2012-01-23 08:16 Message: Implemented in CVS for next 0.11 release slightly differently. Thanks to scripts to automate installation, OS absolute forms will now always be used in @INC (file apache2-require.pl) Automatic detection of Prefork/Worker is done in web server configuration files. ---------------------------------------------------------------------- Comment By: Andre-Littoz (ajlittoz) Date: 2012-01-18 04:28 Message: Detlef Vollmann has found the solution to this problem. If shell command > apachectl -V # command name may be apache or apache2 reports ... Server MPM: Prefork ... you are not concerned with the problem. If it reports ... Server MPM: Worker ... follow the steps below. 1. in file .htaccess-apache2, replace the line PerlHandler ModPerl::RegistryPrefork by PerlHandler ModPerl::Registry 2. in file apache2-require.pl, change all relative paths to absolute form, e.g. , "." , "./lib" to , "/whatever/you/installed/lxr" # usually /usr/local/share/lxr , "/whatever/you/installed/lxr/lib/" # usually /usr/local/share/lxr/lib 3. in the configuration file for the web server (recommended name lxrweb.conf), replace the line PerlRequire /whatever/you/installed/lxr/apache2-require.pl # usually /usr/local/share/lxr/apache2-require.pl by PerlPostConfigRequire /whatever/you/installed/lxr/apache2-require.pl You may also want to activate the Perl security tests with PerlSwitches -T You're done Note: the maintainer does not use MPM Worker and has not tested the fix. Please report if it does not work This will be put soon in the manual and the web site. ---------------------------------------------------------------------- Comment By: Andre-Littoz (ajlittoz) Date: 2011-10-24 01:08 Message: Hello, This problem seems to be related to the interaction between Perl and Apache. The main difference with my configuration is "Server MPM: Prefork" in mine. Try with the Perl guys and tell me about it. Meanwhile, I keep this bug open. Regards, ajl ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3427606&group_id=27350 |