You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by steve larson <ex...@yahoo.com> on 2004/01/09 23:01:28 UTC

Modperl 2.0 Not finding correct *.conf

Hello,

-------------8<---------- Start Bug Report
------------8<----------
1. Problem Description:
 
It appears, it is still finding a 1.3 Apache install
somewhere, and is using this binary, as I have totally
renamed /etc/httpd and re-linked this to a directory
where the Apache 2.x exists: ie. /usr/local/apache2
Here are the particulars:

I am also working on RedHat 9 and have come across the
following technologies, am working on:
perl 5.8
mysql 4.x
DBD-2.9003
DBI-1.38
Apache 2.x
apr-0.9.5
apu
modperl 2.0
php 4.x
java 2.x
ssh

Apache Source Base = /tmp/cc/httpd-2.0.48
Apache Installed Binary for apxs =
/usr/local/apache2/apxs
/etc/httpd is a symbolic link to /usr/local/apache2

Contents of script named doit:
#!/bin/bash
cd /var/modperl-2.0
perl Makefile.PL MP_AP_PREFIX=/tmp/cc/httpd-2.0.48 \
 MP_APXS=/usr/local/apache2/bin/apxs MP_INST_APACHE2=1
MP_DEBUG=1

Execution of Script ./doit Produces:
[root@gwbush cc]# ./doit
Reading Makefile.PL args from @ARGV
   MP_AP_PREFIX = /tmp/cc/httpd-2.0.48
   MP_APXS = /usr/local/apache2/bin/apxs
   MP_INST_APACHE2 = 1
   MP_DEBUG = 1
Configuring Apache/2.0.48 mod_perl/1.99_13-dev
Perl/v5.8.0
*** file /etc/httpd/conf.d/*.conf does not exist
    generating script t/TEST
Writing Makefile for Apache::Test
    generating script t/TEST
Writing Makefile for ModPerl::Registry
Writing Makefile for APR::Base64
Writing Makefile for APR::Brigade
Writing Makefile for APR::Bucket
Writing Makefile for APR::Date
Writing Makefile for APR::Finfo
Writing Makefile for APR::NetLib
Writing Makefile for APR::OS
Writing Makefile for APR::Pool
Writing Makefile for APR::SockAddr
Writing Makefile for APR::Socket
Writing Makefile for APR::String
Writing Makefile for APR::Table
Writing Makefile for APR::ThreadMutex
Writing Makefile for APR::URI
Writing Makefile for APR::UUID
Writing Makefile for APR::Util
Writing Makefile for APR
Writing Makefile for Apache::Access
Writing Makefile for Apache::CmdParms
Writing Makefile for Apache::Command
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Directive
Writing Makefile for Apache::Filter
Writing Makefile for Apache::FilterRec
Writing Makefile for Apache::HookRun
Writing Makefile for Apache::Log
Writing Makefile for Apache::MPM
Writing Makefile for Apache::Module
Writing Makefile for Apache::Process
Writing Makefile for Apache::RequestIO
Writing Makefile for Apache::RequestRec
Writing Makefile for Apache::RequestUtil
Writing Makefile for Apache::Response
Writing Makefile for Apache::Server
Writing Makefile for Apache::ServerUtil
Writing Makefile for Apache::SubProcess
Writing Makefile for Apache::SubRequest
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for Apache
Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR::PerlIO
Writing Makefile for APR
Writing Makefile for Apache::Const
Writing Makefile for Apache
Writing Makefile for ModPerl::Const
Writing Makefile for ModPerl
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl
*** mod_perl dso library will be built as mod_perl.so
*** mod_perl static library will be built as
mod_perl.a
*** You'll need to add the following to httpd.conf:
***  LoadModule perl_module modules/mod_perl.so
 
*** Apache Perl modules will be installed relative to
Apache2/
*** Don't forget to:
*** - configure 'PerlModule Apache2' in httpd.conf
*** - or 'use Apache2 ();' in a startup script
*** file /etc/httpd/conf.d/*.conf does not exist
[root@gwbush cc]#

At least I think I am this far ....
 
2. Used Components and their Configuration:
 
*** mod_perl version 1.9913
 
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS         => /usr/local/apache2/bin/apxs
  MP_AP_PREFIX    => /tmp/cc/httpd-2.0.48
  MP_COMPAT_1X    => 1
  MP_DEBUG        => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_TRACE        => 1
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1

*** /usr/local/apache2/bin/ps -V
Server version: Apache/2.0.48
Server built:   Dec  4 2003 20:41:23
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
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_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/ps.conf"

*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion
0) configuration:
  Platform:
    osname=linux, osvers=2.4.21-1.1931.2.382.entsmp,
archname=i386-linux-thread-multi
    uname='linux str'
    config_args='-des -Doptimize=-O2 -g -pipe
-march=i386 -mcpu=i686 -Dmyhostname=localhost
-Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat,
Inc. -Dinstallprefix=/usr -Dprefix=/usr
-Darchname=i386-linux -Dvendorprefix=/usr
-Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.0
-Duseshrplib -Dusethreads -Duseithreads
-Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db
-Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm
-Duseperlio -Dinstallusrbinperl -Ubincompat5005
-Uversiononly -Dpager=/usr/bin/less -isr'
    hint=recommended, useposix=true,
d_sigaction=define
    usethreads=define use5005threads=undef'
 useithreads=define usemultiplicity=
    useperlio= d_sfio=undef uselargefiles=define
usesocks=undef
    use64bitint=undef use64bitall=un uselongdouble=
    usemymalloc=, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='',
    cppflags='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.2.2 20030222 (Red Hat
Linux 3.2.2-5)', gccosandvers=''
gccversion='3.2.2 200302'
    intsize=r, longsize=r, ptrsize=5, doublesize=8,
byteorder=1234
    d_longlong=define, longlongsize=8,
d_longdbl=define, longdblsize=12
    ivtype='long'
k', ivsize=4'
ivtype='l, nvtype='double'
o_nonbl', nvsize=, Off_t='', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc'
l', ldflags =' -L/u'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc
-lcrypt -lutil
    perllibs=
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=true,
libperl=libper
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so', d_dlsymun=undef,
ccdlflags='-rdynamic -Wl,-rp
ath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
    cccdlflags='-fPIC'
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5',
lddlflags='s Unicode/Normalize
XS/A'
 
 
Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY
USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        MAINT18379
  Built under linux
  Compiled at Aug 13 2003 11:47:58
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
   
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
   
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    .
 
*** Packages of interest status:
 
Apache::Request: -
CGI            : -
LWP            : 5.65
mod_perl       : 1.9907
 
 
3. This is the core dump trace: (if you get a core
dump):
 
  [CORE TRACE COMES HERE]
 
This report was generated by t/REPORT on Fri Jan  9
21:03:06 2004 GMT.
 
-------------8<---------- End Bug Report
--------------8<----------


 I require your expertise in building modperl 2.0
, I have hit a snag.

Here are the particulars:

I am also working on RedHat 9 and have come across the
following technologies, am working on:
perl 5.8
mysql 4.x
DBD-2.9003
DBI-1.38
Apache 2.x
apr-0.9.5
apu
modperl 2.0
php 4.x
java 2.x
ssh

Attempting to create a small e-commerce site.

Apache Source Base = /tmp/cc/httpd-2.0.48
Apache Installed Binary for apxs =
/usr/local/apache2/apxs
/etc/httpd is a symbolic link to /usr/local/apache2

Contents of script named doit:
#!/bin/bash
cd /var/modperl-2.0
perl Makefile.PL MP_AP_PREFIX=/tmp/cc/httpd-2.0.48 \
 MP_APXS=/usr/local/apache2/bin/apxs MP_INST_APACHE2=1
MP_DEBUG=1

Execution of Script ./doit Produces:
[root@gwbush cc]# ./doit
Reading Makefile.PL args from @ARGV
   MP_AP_PREFIX = /tmp/cc/httpd-2.0.48
   MP_APXS = /usr/local/apache2/bin/apxs
   MP_INST_APACHE2 = 1
   MP_DEBUG = 1
Configuring Apache/2.0.48 mod_perl/1.99_13-dev
Perl/v5.8.0
*** file /etc/httpd/conf.d/*.conf does not exist
    generating script t/TEST
Writing Makefile for Apache::Test
    generating script t/TEST
Writing Makefile for ModPerl::Registry
Writing Makefile for APR::Base64
Writing Makefile for APR::Brigade
Writing Makefile for APR::Bucket
Writing Makefile for APR::Date
Writing Makefile for APR::Finfo
Writing Makefile for APR::NetLib
Writing Makefile for APR::OS
Writing Makefile for APR::Pool
Writing Makefile for APR::SockAddr
Writing Makefile for APR::Socket
Writing Makefile for APR::String
Writing Makefile for APR::Table
Writing Makefile for APR::ThreadMutex
Writing Makefile for APR::URI
Writing Makefile for APR::UUID
Writing Makefile for APR::Util
Writing Makefile for APR
Writing Makefile for Apache::Access
Writing Makefile for Apache::CmdParms
Writing Makefile for Apache::Command
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Directive
Writing Makefile for Apache::Filter
Writing Makefile for Apache::FilterRec
Writing Makefile for Apache::HookRun
Writing Makefile for Apache::Log
Writing Makefile for Apache::MPM
Writing Makefile for Apache::Module
Writing Makefile for Apache::Process
Writing Makefile for Apache::RequestIO
Writing Makefile for Apache::RequestRec
Writing Makefile for Apache::RequestUtil
Writing Makefile for Apache::Response
Writing Makefile for Apache::Server
Writing Makefile for Apache::ServerUtil
Writing Makefile for Apache::SubProcess
Writing Makefile for Apache::SubRequest
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for Apache
Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR::PerlIO
Writing Makefile for APR
Writing Makefile for Apache::Const
Writing Makefile for Apache
Writing Makefile for ModPerl::Const
Writing Makefile for ModPerl
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl
*** mod_perl dso library will be built as mod_perl.so
*** mod_perl static library will be built as
mod_perl.a
*** You'll need to add the following to httpd.conf:
***  LoadModule perl_module modules/mod_perl.so
 
*** Apache Perl modules will be installed relative to
Apache2/
*** Don't forget to:
*** - configure 'PerlModule Apache2' in httpd.conf
*** - or 'use Apache2 ();' in a startup script
*** file /etc/httpd/conf.d/*.conf does not exist
[root@gwbush cc]#

[root@gwbush perl]#
[root@gwbush perl]#cat /etc/init.d/httpd2
#!/bin/bash
#
# Startup script for the Apache 2.X Web Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  It
is used to serve \
#              HTML files and CGI.
# processname: ps
# pidfile: /usr/local/apache2/logs/httpd.pid
# config: /usr/local/apache2/conf/httpd.conf
 
# Source function library.
. /etc/rc.d/init.d/functions
 
if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi
 
# This will prevent initlog from swallowing up a
pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""
 
# Set HTTPD=/usr/sbin/httpd.worker in
/etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that
some modules may not# work correctly with a
thread-based MPM; notably PHP will refuse to start.
 
# Path to the apachectl script, server binary, and
short-form for messages.
apachectl=/usr/local/apache2/bin/apachectl
httpd=/usr/local/apache2/bin/ps
prog=ps
pidfile=/usr/local/apache2/logs/httpd.pid
RETVAL=0
 
# check for 1.3 configuration
check13 () {
        CONFFILE=/usr/local/apache2/conf/httpd.conf
       
GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
       
GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
        GONE="${GONE}AccessConfig|ResourceConfig)"
        if grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE;
then
                echo
                echo 1>&2 " Apache 1.3 configuration
directives found"
                echo 1>&2 " please read
/usr/share/doc/httpd-2.0.40/migration.html"
                failure "Apache 1.3 config directives
test"
                echo
                exit 1
        fi
}
 
 
# The semantics of these two functions differ from the
way apachectl does# things -- attempting to start
while running is a failure, and shutdown
# when not running is also a failure.  So we just do
it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        check13 || exit 1
        daemon $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch
/var/lock/subsys/httpd
        return $RETVAL
}
stop() {
        echo -n $"Stopping $prog: "
        killproc $httpd
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f
/var/lock/subsys/httpd $pidfile
}
reload() {
        echo -n $"Reloading $prog: "
        check13 || exit 1
        killproc $httpd -HUP
        RETVAL=$?
        echo
}
 
# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        status $httpd
        RETVAL=$?
        ;;
  restart)
        stop
        start
        ;;
  condrestart)
        if [ -f $pidfile ] ; then
                stop
                start
        fi
        ;;
  reload)
        reload
        ;;
  graceful|help|configtest|fullstatus)
        $apachectl $@
        RETVAL=$?
        ;;
  *)
        echo $"Usage: $prog
{start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}"
        exit 1
esac
 
exit $RETVAL


RESULTS IN:
===========
>From the ModPerl Tree
=====================
[root@gwbush perl]# /etc/init.d/httpd2 start
Starting ps: ps: module "mod_perl.c" is not compatible
with this version
of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.
                                                      
    [FAILED]
[root@gwbush cc]#

>From the Source Tree
=====================
[root@gwbush cc]# /etc/init.d/httpd2 start
Starting ps: ps: module "mod_perl.c" is not compatible
with this version of Apache (found 20020628, need
20020903).
Please contact the vendor for the correct version.


It appears, it is still finding a 1.3 Apache install
somewhere, and is using this binary, as I have totally
renamed /etc/httpd and re-linked this to a directory
where the Apache 2.x exists: ie. /usr/local/apache2

At least I think I am this far ....


Please assist, as I require direction.
Sincerely,
Stephen Larson
expedite_now@yahoo.com




__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Modperl 2.0 Not finding correct *.conf

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> steve larson wrote:
> 
>> Hello,
>>  make test produced error, looking for
>> /etc/httpd/*.conf 
> 
> 
> it's a warning, not an error. It'd have died if it was an error. I can 
> see where the problem is, I'll fix that soonish. It's unrelated to the 
> problem preventing you from running the test suite.

Please try this patch:

Index: lib/Apache/TestConfigParse.pm
===================================================================
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigParse.pm,v
retrieving revision 1.41
diff -u -r1.41 TestConfigParse.pm
--- lib/Apache/TestConfigParse.pm       9 Dec 2003 14:53:58 -0000       1.41
+++ lib/Apache/TestConfigParse.pm       11 Jan 2004 21:59:59 -0000
@@ -9,7 +9,7 @@
  use Apache::TestTrace;

  use File::Spec::Functions qw(rel2abs splitdir file_name_is_absolute);
-use File::Basename qw(basename);
+use File::Basename qw(dirname basename);

  sub strip_quotes {
      local $_ = shift || $_;
@@ -43,7 +43,8 @@
      $self->$where($directive => $val);
  }

-#resolve relative files like Apache->server_root_relative
+# resolve relative files like Apache->server_root_relative
+# this function doesn't test whether the resolved file exists
  sub server_file_rel2abs {
      my($self, $file, $base) = @_;

@@ -87,14 +88,20 @@
              # return early, skipping file test below
              return $file;
          }
-
      }

-    if (-e $result) {
-        debug "$file successfully resolved to existing file $result";
+    my $dir = dirname $result;
+    # $file might not exist (e.g. if it's a glob pattern like
+    # "conf/*.conf" but what we care about here is to check whether
+    # the base dir was successfully resolved. we don't check whether
+    # the file exists at all. it's the responsibility of the caller to
+    # do this check
+    if (defined $dir && -e $dir && -d _) {
+        debug "$file successfully resolved to $result";
      }
      else {
-        warning "file $result does not exist";
+        $dir ||= '';
+        warning "dir '$dir' does not exist (while resolving '$file')";

          # old behavior was to return the resolved but non-existent
          # file.  preserve that behavior and return $result anyway.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Modperl 2.0 Not finding correct *.conf

Posted by Stas Bekman <st...@stason.org>.
steve larson wrote:
> Hello,
>  make test produced error, looking for
> /etc/httpd/*.conf 

it's a warning, not an error. It'd have died if it was an error. I can see 
where the problem is, I'll fix that soonish. It's unrelated to the problem 
preventing you from running the test suite.

> and also let us know that the
> version of modperl.c was not compatible.
> Was directed to run the following three commands, here
> they are with output(Apologize if I have given too
> much info, or not followed standard(new on this list):

[...]

> [root@gwbush modperl-2.0]# t/TEST -conf
> *** setting ulimit to allow core files
> ulimit -c unlimited; t/TEST -conf
> *** file /etc/httpd/conf.d/*.conf does not exist
> *** cleaning out current configuration
> *** reconfiguration done
> [root@gwbush modperl-2.0]#
> [root@gwbush modperl-2.0]# echo edit t/conf/httpd.conf
> and remove any references to php
> edit t/conf/httpd.conf and remove any references to
> php
> [root@gwbush modperl-2.0]# vi t/conf/httpd.conf
> [root@gwbush modperl-2.0]#
> [root@gwbush modperl-2.0]# echo Commented out all PHP
> References
> Commented out all PHP References
> [root@gwbush modperl-2.0]#
> [root@gwbush modperl-2.0]# t/TEST
[...]
> waiting 180 seconds for server to start: .ps: module
> "mod_python.c" is not compatible with this version of
> Apache (found 20020628, need 20020903).
> Please contact the vendor for the correct version.

Can you please do:

% grep mod_python t/conf/httpd.conf

and post the result here?

BTW, what's 'ps' below:

 > /usr/local/apache2/bin/ps -d /var/modperl-2.0/t -f
 > /var/modperl-2.0/t/conf/httpd.conf -DAPACHE2
 > -DPERL_USEITHREADS
 > using Apache/2.0.48 (worker MPM)

is that how you called your httpd executable?

Where is your apache 1.3 installed?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Modperl 2.0 Not finding correct *.conf

Posted by steve larson <ex...@yahoo.com>.
Hello,
 make test produced error, looking for
/etc/httpd/*.conf and also let us know that the
version of modperl.c was not compatible.
Was directed to run the following three commands, here
they are with output(Apologize if I have given too
much info, or not followed standard(new on this list):

[root@gwbush modperl-2.0]# t/TEST -conf
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -conf
*** file /etc/httpd/conf.d/*.conf does not exist
*** cleaning out current configuration
*** reconfiguration done
[root@gwbush modperl-2.0]#
[root@gwbush modperl-2.0]# echo edit t/conf/httpd.conf
and remove any references to php
edit t/conf/httpd.conf and remove any references to
php
[root@gwbush modperl-2.0]# vi t/conf/httpd.conf
[root@gwbush modperl-2.0]#
[root@gwbush modperl-2.0]# echo Commented out all PHP
References
Commented out all PHP References
[root@gwbush modperl-2.0]#
[root@gwbush modperl-2.0]# t/TEST
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST
*** root mode: changing the files ownership to
'nobody' (99:99)
*** testing whether 'nobody' is able to -rwx
/var/modperl-2.0/t
/usr/bin/perl -Mlib=/var/modperl-2.0/Apache-Test/lib
-MApache::TestRun -e 'eval {
Apache::TestRun::run_root_fs_test(99, 99,
q[/var/modperl-2.0/t]) }';
 
 
*** result: OK
/usr/local/apache2/bin/ps -d /var/modperl-2.0/t -f
/var/modperl-2.0/t/conf/httpd.conf -DAPACHE2
-DPERL_USEITHREADS
using Apache/2.0.48 (worker MPM)
 
waiting 180 seconds for server to start: .ps: module
"mod_python.c" is not compatible with this version of
Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.
!!!
server has died with status 255 (t/logs/error_log
wasn't created, start the server in the debug mode)
[root@gwbush modperl-2.0]#

Thanks kindly for a quick response,
Steve Larson
mailto:expedite_now@yahoo.com




--- Stas Bekman <st...@stason.org> wrote:
> steve larson wrote:
> > Hello,
> > 
> > -------------8<---------- Start Bug Report
> > ------------8<----------
> > 1. Problem Description:
> >  
> > It appears, it is still finding a 1.3 Apache
> install
> > somewhere, and is using this binary, as I have
> totally
> > renamed /etc/httpd and re-linked this to a
> directory
> > where the Apache 2.x exists: ie.
> /usr/local/apache2
> > Here are the particulars:
> [...]
> > Contents of script named doit:
> > #!/bin/bash
> > cd /var/modperl-2.0
> > perl Makefile.PL MP_AP_PREFIX=/tmp/cc/httpd-2.0.48
> \
> >  MP_APXS=/usr/local/apache2/bin/apxs
> MP_INST_APACHE2=1
> > MP_DEBUG=1
> > 
> > Execution of Script ./doit Produces:
> > [root@gwbush cc]# ./doit
> > Reading Makefile.PL args from @ARGV
> >    MP_AP_PREFIX = /tmp/cc/httpd-2.0.48
> >    MP_APXS = /usr/local/apache2/bin/apxs
> >    MP_INST_APACHE2 = 1
> >    MP_DEBUG = 1
> > Configuring Apache/2.0.48 mod_perl/1.99_13-dev
> > Perl/v5.8.0
> > *** file /etc/httpd/conf.d/*.conf does not exist
> >     generating script t/TEST
> > Writing Makefile for Apache::Test
> >     generating script t/TEST
> > Writing Makefile for ModPerl::Registry
> 
> [...]
> > Writing Makefile for mod_perl
> > *** mod_perl dso library will be built as
> mod_perl.so
> > *** mod_perl static library will be built as
> > mod_perl.a
> > *** You'll need to add the following to
> httpd.conf:
> > ***  LoadModule perl_module modules/mod_perl.so
> >  
> > *** Apache Perl modules will be installed relative
> to
> > Apache2/
> > *** Don't forget to:
> > *** - configure 'PerlModule Apache2' in httpd.conf
> > *** - or 'use Apache2 ();' in a startup script
> > *** file /etc/httpd/conf.d/*.conf does not exist
> 
> You need to run now:
> 
> make && make test && make install
> 
> just like with any perl CPAN module.
> 
>
__________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another
> mod_perl Hacker
> http://stason.org/     mod_perl Guide --->
> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org
> http://apacheweek.com
> http://modperlbook.org http://apache.org  
> http://ticketmaster.com
> 
> 
> -- 
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info:
> http://perl.apache.org/maillist/modperl.html
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Modperl 2.0 Not finding correct *.conf

Posted by Stas Bekman <st...@stason.org>.
steve larson wrote:
> Hello,
> 
> -------------8<---------- Start Bug Report
> ------------8<----------
> 1. Problem Description:
>  
> It appears, it is still finding a 1.3 Apache install
> somewhere, and is using this binary, as I have totally
> renamed /etc/httpd and re-linked this to a directory
> where the Apache 2.x exists: ie. /usr/local/apache2
> Here are the particulars:
[...]
> Contents of script named doit:
> #!/bin/bash
> cd /var/modperl-2.0
> perl Makefile.PL MP_AP_PREFIX=/tmp/cc/httpd-2.0.48 \
>  MP_APXS=/usr/local/apache2/bin/apxs MP_INST_APACHE2=1
> MP_DEBUG=1
> 
> Execution of Script ./doit Produces:
> [root@gwbush cc]# ./doit
> Reading Makefile.PL args from @ARGV
>    MP_AP_PREFIX = /tmp/cc/httpd-2.0.48
>    MP_APXS = /usr/local/apache2/bin/apxs
>    MP_INST_APACHE2 = 1
>    MP_DEBUG = 1
> Configuring Apache/2.0.48 mod_perl/1.99_13-dev
> Perl/v5.8.0
> *** file /etc/httpd/conf.d/*.conf does not exist
>     generating script t/TEST
> Writing Makefile for Apache::Test
>     generating script t/TEST
> Writing Makefile for ModPerl::Registry

[...]
> Writing Makefile for mod_perl
> *** mod_perl dso library will be built as mod_perl.so
> *** mod_perl static library will be built as
> mod_perl.a
> *** You'll need to add the following to httpd.conf:
> ***  LoadModule perl_module modules/mod_perl.so
>  
> *** Apache Perl modules will be installed relative to
> Apache2/
> *** Don't forget to:
> *** - configure 'PerlModule Apache2' in httpd.conf
> *** - or 'use Apache2 ();' in a startup script
> *** file /etc/httpd/conf.d/*.conf does not exist

You need to run now:

make && make test && make install

just like with any perl CPAN module.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html