Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

modperl · Perl module for Apache

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 61368 - 61397 of 67621   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#61368 From: <xpnospam-modperl@...>
Date: Thu Oct 28, 2004 11:24 am
Subject: mod_perl 2 & Sessions
xpnospam-modperl@...
Send Email Send Email
 
Hi,
 
I have a question I'm sure some of you know the answer to.
 
I cannot find any explaination on how to use sessions with mod_perl 2. Can any of you send a little sample code?
 
I would like to be able to store information like the username and password in session variables to retrieve them on all the other pages of the website.
 
Thanks in advance!
 
Xav


Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. Téléchargez GRATUITEMENT ici !

#61369 From: "Philippe M. Chiasson" <gozer@...>
Date: Thu Oct 28, 2004 3:34 pm
Subject: Re: [mp2] Apache::PerlSections->dump gives no output at all.
gozer@...
Send Email Send Email
 
M.v.Buytene wrote:
> I'm quit puzzled here....
>
> I use mod_perl to perform some database lookups from my httpd.conf and
> build up all directives
> and create all vhost's.
> That part works ok, apache works with the vhosts like a charm....
> but.... always a but... :)

How exactly do you build and create all these vhosts ? Can you post
a sample of it?

> When i use the Apache::PerlSections->dump(); i only see
>
> 1;
> __END__

My best guess for now is that you forgot to set

$Apache::PerlSections::Save = 1;

in your <Perl> blocks. See
http://perl.apache.org/docs/2.0/api/Apache/PerlSections.html#C__Apache__PerlSect\
ions__Save_
for more info.

> when reloading/starting/stopping apache, and i wish to see my complete
> vhosts dumped.
>
> Am i completetly missing the point of Apache::PerlSections->dump, or am
> i doing something completly wrong?
>
> Using mod perl 1.99_17
>
> Martijn

--
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

#61370 From: Geoffrey Young <geoff@...>
Date: Thu Oct 28, 2004 3:53 pm
Subject: Re: mod_perl 2 & Sessions
geoff@...
Send Email Send Email
 
xpnospam-modperl@... wrote:
> Hi,
>
> I have a question I'm sure some of you know the answer to.
>
> I cannot find any explaination on how to use sessions with mod_perl 2.
> Can any of you send a little sample code?
>
> I would like to be able to store information like the username and
> password in session variables to retrieve them on all the other pages of
> the website.

maintaining state is not a native feature of mod_perl proper - you need to
use a layer on top of it if you want state to be magically maintained
throughout your application.  for example, Apache::Session is a popular
add-on for this kind of thing:

    http://search.cpan.org/dist/Apache-Session/

I'm sure others can point out additional tools as well.

HTH

--Geoff

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61371 From: "Marina Markus" <mary@...>
Date: Thu Oct 28, 2004 6:31 pm
Subject: problem with "note_basic_auth_failure"
mary@...
Send Email Send Email
 

Hello,

 

I am trying to implement authentication with my own mod_perl subroutine defined as PerlAuthenHandler (Apache 1.3.31 + mod_perl 1.29 + PHP 4.3.8 installed on RedHat 7.2), and encounter a strange problem that I hope someone has seen before.

 

As the first step, I want my subroutine to reject all authentication attempts.

For this, it  calls "note_basic_auth_failure" and then returns AUTH_REQUIRED.

It does not work – the authentication popup window appers, but closes after giving any username-password, and the page is displayed unrestrictedly (instead of requiring authentication again till it succeeds, as happens when using AuthUserFile instead).

 

The subroutine behaves as if the call to "note_basic_auth_failure" just does nothing; all other calls like " log_reason" etc work OK. No Perl errors appear in "error.log".

 

Settings in "httpd.conf" are:

 

 <Location /tester>

   PerlAuthenHandler My::Auth::authen_handler

   AuthType Basic

  AuthName Testings

  Require valid-user

 

 </Location>

 

The file "My/Auth.pm" is very simple (tries to reject any attempt):

 

package My::Auth;

use mod_perl ();

 

    sub authen_handler {

 

        my $r = shift;

        my $rip=$r->connection->remote_ip;

 

        # get user's authentication credentials

        my ($res, $sent_pw) = $r->get_basic_auth_pw;

       $r->note_basic_auth_failure;

       $r->log_reason("getting u-p error was".$res);

 

        return $res if $res != OK;

 

        my $user = $r->connection->user;

            #reject and ask again – does not work !!!

$r->note_basic_auth_failure;

            $r->log_reason("forbidding $user from $rip", $r->uri);

              return AUTH_REQUIRED;

    }

 

   1;

 

Hope someone will see wrong settings or errors in the code that I overlook.

Grareful for any hints,

 

Marina Markus

mary@...


#61372 From: Perrin Harkins <perrin@...>
Date: Thu Oct 28, 2004 6:31 pm
Subject: Re: mod_perl 2 & Sessions
perrin@...
Send Email Send Email
 
On Thu, 2004-10-28 at 11:53, Geoffrey Young wrote:
> I'm sure others can point out additional tools as well.

Apache::SessionManager is a good place for newbies to start with
sessions under mod_perl:
http://search.cpan.org/~enrys/Apache-SessionManager-1.02/

- Perrin


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61373 From: Perrin Harkins <perrin@...>
Date: Thu Oct 28, 2004 6:35 pm
Subject: Re: Apache::Session::Postgres
perrin@...
Send Email Send Email
 
On Wed, 2004-10-20 at 19:37, desarrollos@... wrote:
> but when i try to put a new object or something...
>
> my $something = new Object();
> $session{something} = $something;
>
> ... i have an error like this:
>
> [Wed Oct 20 18:21:55 2004] null:        (in cleanup) Can't store CODE items at
> ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_freeze.al) line
> 287, <FORM
> A> line 280, at /usr/share/perl5/Apache/Session/Serialize/Base64.pm line 22
>
> It seems that i can't update the database.

Did you figure it out already?  You can't put this object in because the
Storable module can't serialize it.  It's complaining that you have a
CODE ref in it.  That could be an anonymous sub, or a reference to a
named method.  You just need to give it objects that don't contain CODE
refs.

- Perrin


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61374 From: Geoffrey Young <geoff@...>
Date: Thu Oct 28, 2004 6:42 pm
Subject: Re: problem with "note_basic_auth_failure"
geoff@...
Send Email Send Email
 
>         # get user's authentication credentials
>         my ($res, $sent_pw) = $r->get_basic_auth_pw;
>        $r->note_basic_auth_failure;

do not call note_basic_auth_failure here.

> Hope someone will see wrong settings or errors in the code that I overlook.
> Grareful for any hints,

I think that the above fix ought to work, but if it doesn't you can just
steal an example from here:

   http://www.modperlcookbook.org/code/ch13/Cookbook/Authenticate.pm

and read the corresponding explanation here:

   http://www.modperlcookbook.org/chapters/ch13.pdf

specifically, you will want to read recipe 13.3 to understand how the API
interacts with the HTTP authentication challenge/response cycle.

HTH

--Geoff

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61375 From: M.v.Buytene <martijn@...>
Date: Thu Oct 28, 2004 8:29 pm
Subject: Re: [mp2] Apache::PerlSections->dump gives no output at all.
martijn@...
Send Email Send Email
 
On 2004-10-28 17:34:23 +0200, "Philippe M. Chiasson"
<gozer@...> said:

>
> M.v.Buytene wrote:
>> I'm quit puzzled here....
>>
>> I use mod_perl to perform some database lookups from my httpd.conf and
>> build up all directives
>> and create all vhost's.
>> That part works ok, apache works with the vhosts like a charm....
>> but.... always a but... :)
>
> How exactly do you build and create all these vhosts ? Can you post
> a sample of it?

When my debugging works i will post a complete document.

>
>> When i use the Apache::PerlSections->dump(); i only see
>>
>> 1;
>> __END__
>
> My best guess for now is that you forgot to set
>
> $Apache::PerlSections::Save = 1;
>
> in your <Perl> blocks. See
>
http://perl.apache.org/docs/2.0/api/Apache/PerlSections.html#C__Apache__PerlSect\
ions__Save_
for
>
> for more info.

Still a no go.... it just gives me

1;
__END__

And there is not much to find at the documents you pointed me to.

Even when i use 'normal' style directives it gives the same.... with
normal style i mean :

         $Directory{"/usr/local/apache2/htdocs/test_case_2"} = {
         Options => 'FollowSymlinks',
         AllowOverride => 'All',
         Limit => {
          'GET PUT POST' => {
          require => 'valid-user',
          Order => 'allow,deny',
          Allow => 'from all',
              },
     },
};


>
>> when reloading/starting/stopping apache, and i wish to see my complete
>> vhosts dumped.
>>
>> Am i completetly missing the point of Apache::PerlSections->dump, or am
>> i doing something completly wrong?
>>
>> Using mod perl 1.99_17
>>
>> Martijn




--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61376 From: Michael <mpeters@...>
Date: Thu Oct 28, 2004 10:11 pm
Subject: Apache::Test problems
mpeters@...
Send Email Send Email
 
hello all,

I'm trying to get Apache::Test to work for a module I'm writing, but I'm
having difficulties.

All setup information is at the end...

I'm using Module::Build (0.26) and Apache::Test (1.14).

I've setup my Build.PL as indicated with the documentation with
Apache::TestMB.

I run
    perl Build.PL -httpd /usr/local/apache/bin/httpd
    ./Build
    ./Build test

and then the server never starts up and I get

Syntax error on line 24 of
/home/mpeters/development/modules/CGI-Application-Plugin-Apache/t/conf/httpd.con\
f:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration
[  error]
server has died with status 255 (t/logs/error_log wasn't created, start
the server in the debug mode)


It seems like it's thinks it's using a dynamic build and of course
LoadModule won't work. Am I doing something wrong ?

Thanks,


mod_perl & apache
=================

Static build
Apache/1.3.31 (Unix) mod_perl/1.29 configured


perl -V
=======

Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
    Platform:
      osname=linux, osvers=2.4.21-4.elsmp, archname=i386-linux-thread-multi
      uname='linux tweety.devel.redhat.com 2.4.21-4.elsmp #1 smp fri oct
3 17:52:56 edt 2003 i686 i686 i386 gnulinux '
      config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686
-Dversion=5.8.3 -Dmyhostname=localhost -Dperladmin=root@localhost
-Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr
-Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -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 -Dinc_version_list=5.8.2 5.8.1 5.8.0'
      hint=recommended, useposix=true, d_sigaction=define
      usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
      useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
      use64bitint=undef use64bitall=undef uselongdouble=undef
      usemymalloc=n, 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='-O2 -g -pipe -march=i386 -mcpu=i686',
      cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
      ccversion='', gccversion='3.3.3 20040412 (Red Hat Linux 3.3.3-7)',
gccosandvers=''
      intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
      d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
      ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
      alignbytes=4, prototype=define
    Linker and Libraries:
      ld='gcc', ldflags =' -L/usr/local/lib'
      libpth=/usr/local/lib /lib /usr/lib
      libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
      perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
      libc=/lib/libc-2.3.3.so, so=so, useshrplib=true, libperl=libperl.so
      gnulibc_version='2.3.3'
    Dynamic Linking:
      dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE'
      cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
    Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
    Built under linux
    Compiled at Apr 15 2004 13:09:17
    @INC:
      /usr/lib/perl5/5.8.3/i386-linux-thread-multi
      /usr/lib/perl5/5.8.3
      /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
      /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
      /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
      /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
      /usr/lib/perl5/site_perl/5.8.3
      /usr/lib/perl5/site_perl/5.8.2
      /usr/lib/perl5/site_perl/5.8.1
      /usr/lib/perl5/site_perl/5.8.0
      /usr/lib/perl5/site_perl
      /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
      /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
      /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
      /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
      /usr/lib/perl5/vendor_perl/5.8.3
      /usr/lib/perl5/vendor_perl/5.8.2
      /usr/lib/perl5/vendor_perl/5.8.1
      /usr/lib/perl5/vendor_perl/5.8.0
      /usr/lib/perl5/vendor_perl


--
Michael Peters
Developer
Plus Three, LP


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61377 From: Stas Bekman <stas@...>
Date: Thu Oct 28, 2004 11:12 pm
Subject: Re: Apache::Test problems
stas@...
Send Email Send Email
 
Michael wrote:
> hello all,
>
> I'm trying to get Apache::Test to work for a module I'm writing, but I'm
> having difficulties.
>
> All setup information is at the end...
>
> I'm using Module::Build (0.26) and Apache::Test (1.14).
>
> I've setup my Build.PL as indicated with the documentation with
> Apache::TestMB.
>
> I run
>   perl Build.PL -httpd /usr/local/apache/bin/httpd
>   ./Build
>   ./Build test
>
> and then the server never starts up and I get
>
> Syntax error on line 24 of
>
/home/mpeters/development/modules/CGI-Application-Plugin-Apache/t/conf/httpd.con\
f:
>
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
> not included in the server configuration
> [  error]
> server has died with status 255 (t/logs/error_log wasn't created, start
> the server in the debug mode)

You probably need to post Apache-Test questions to the right list, which
is httpd-test (http://httpd.apache.org/test/) and in particular none of us
uses Apache::TestMB yet, so you need to ask David Wheeler (find David on
CPAN) who is this sub-module's author. I'm not sure if he is listening here.

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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61378 From: "CN" <cnliou9@...>
Date: Fri Oct 29, 2004 4:19 am
Subject: Fail to configure mod_perl and build apache
cnliou9@...
Send Email Send Email
 
Hi!

Because "perl Makefile.PL" did not find LWP::UserAgent and
HTML::HeadParser in my Debian box, I did "apt-get install
libapache-mod-perl". Then I did "dpkg -P libapache-mod-perl" to remove
that package. Since then "perl Makefile.PL" seems to have trouble as it
complains "cat: ../apache_1.3.32/src/Makefile.config: No such file or
directory":
==================
host1:/usr/src/mod_perl-1.29# perl Makefile.PL
Configure mod_perl with ../apache_1.3.32/src ? [y] y
Shall I build httpd in ../apache_1.3.32/src for you? [y] n
(cd ../apache_1.3.32/src && ./Configure -file
Configuration)PerlDispatchHandler.........disabled (enable with
PERL_DISPATCH=1)
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..disabled (enable with
PERL_POST_READ_REQUEST=1)
PerlTransHandler............disabled (enable with PERL_TRANS=1)
PerlHeaderParserHandler.....disabled (enable with PERL_HEADER_PARSER=1)
PerlAccessHandler...........disabled (enable with PERL_ACCESS=1)
PerlAuthenHandler...........disabled (enable with PERL_AUTHEN=1)
PerlAuthzHandler............disabled (enable with PERL_AUTHZ=1)
PerlTypeHandler.............disabled (enable with PERL_TYPE=1)
PerlFixupHandler............disabled (enable with PERL_FIXUP=1)
PerlHandler.................enabled
PerlLogHandler..............disabled (enable with PERL_LOG=1)
PerlInitHandler.............disabled (enable with PERL_INIT=1)
PerlCleanupHandler..........disabled (enable with PERL_CLEANUP=1)
PerlRestartHandler..........disabled (enable with PERL_RESTART=1)
PerlStackedHandlers.........disabled (enable with
PERL_STACKED_HANDLERS=1)
PerlMethodHandlers..........disabled (enable with
PERL_METHOD_HANDLERS=1)
PerlDirectiveHandlers.......disabled (enable with
PERL_DIRECTIVE_HANDLERS=1)
PerlTableApi................disabled (enable with PERL_TABLE_API=1)
PerlLogApi..................disabled (enable with PERL_LOG_API=1)
PerlUriApi..................disabled (enable with PERL_URI_API=1)
PerlUtilApi.................disabled (enable with PERL_UTIL_API=1)
PerlFileApi.................disabled (enable with PERL_FILE_API=1)
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................disabled (enable with PERL_SECTIONS=1)

PerlSSI.....................disabled (enable with PERL_SSI=1)

cat: ../apache_1.3.32/src/Makefile.config: No such file or directory
Will run tests as User: 'nobody' Group: 'root'
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl
==================
I ignore it, and try to build apache:

./configure --with-layout=Apache \
--disable-rule=EXPAT \
--activate-module=src/modules/perl/libperl.a --disable-shared=perl
host1:/usr/src/apache_1.3.32# make
[snip]
===> src/modules/perl
gcc -I. -I../../include -I../../include/regex -I../../include/../
-DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci`
-I`/usr/bin/perl -MConfig -e 'print $Config{archlibexp}'`/CORE
`/usr/bin/perl '-MApache::ExtUtils=%Config' -e 'print $Config{ccflags}'`
-DNO_PERL_DISPATCH   -DNO_PERL_POST_READ_REQUEST -DNO_PERL_TRANS
-DNO_PERL_HEADER_PARSER -DNO_PERL_ACCESS -DNO_PERL_AUTHEN
-DNO_PERL_AUTHZ -DNO_PERL_TYPE  -DNO_PERL_FIXUP  -DNO_PERL_LOG
-DNO_PERL_INIT -DNO_PERL_CLEANUP -DNO_PERL_RESTART
-DNO_PERL_STACKED_HANDLERS -DNO_PERL_SECTIONS -DNO_PERL_METHOD_HANDLERS
-DNO_PERL_SSI -DNO_PERL_DIRECTIVE_HANDLERS  -DMOD_PERL_VERSION=\"1.29\"
      -c -o mod_perl_opmask.o mod_perl_opmask.c
/bin/sh: ../apaci: No such file or directory
In file included from ../../include/httpd.h:29,
                  from apache_inc.h:120,
                  from mod_perl.h:162,
                  from mod_perl_opmask.c:1:
../../include/ap_config.h:73: os.h: No such file or directory
make[4]: *** [mod_perl_opmask.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/src/apache_1.3.32/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.32'
make: *** [build] Error 2

I notice that apaci resides in /usr/src/apache_1.3.32/src/ rather than
/usr/src/apache_1.3.32/src/modules/.

Before doing "apt-get install libapache-mod-perl" and "dpkg -P
libapache-mod-perl", I did not have this "cat:
../apache_1.3.32/src/Makefile.config: No such file or directory"
problem, but the linker complained a huge number of unknown symbols in
libperl.a.

Helps are much appreciated!

Regards,
CN

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61379 From: "Jean-Paul COGNET" <jean-paul.cognet@...>
Date: Fri Oct 29, 2004 3:17 pm
Subject: Re: pb setting NLS_LANG with mod_perl 1.99_14et DBD::Oracle
jean-paul.cognet@...
Send Email Send Email
 
I upgrade with the new version of Apache 2.0 (httpd-2.0.52) and mod_perl
1.99_17 and the behaviour is exactly the same.

If  I set NLS_LANG I obtain this logs just before connect
ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
NLS_LANG=french_france.WE8ISO8859P1
I cannot connect and have this log in Apache
DBI connect('TOPDEV5','automate',...) failed: ORA-00604: error occurred at
recursive SQL level 1
ORA-01756: quoted string not properly terminated (DBD ERROR:
OCISessionBegin) at /var/www/perl/automate1.pl line 1126

If  I do not set NLS_LANG I obtain this logs just before connect
ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
NLS_LANG=
and then I can connect but "été" becomes "ete"

Many Thanks for yoyr help.

----- Original Message -----
From: "Stas Bekman" <stas@...>
To: "Jean-Paul COGNET" <jean-paul.cognet@...>
Cc: <modperl@...>
Sent: Thursday, October 28, 2004 12:58 AM
Subject: Re: pb setting NLS_LANG with mod_perl 1.99_14et DBD::Oracle


> Jean-Paul COGNET wrote:
> > A problem with mod_perl 1.99 et DBD::Oracle.
> >
> > I cannot set the value of NLS_LANG
> >
> > If I set it to any value different from '' then I cannot connect, having
this log in Apache :
> > [Tue Oct 26 12:48:30 2004] [notice] Apache/2.0.47 (Fedora) configured --
resuming normal operations
> > DBI connect('TOPDEV5','automate',...) failed: ORA-00604: error occurred
at recursive SQL level 1
> > ORA-01756: quoted string not properly terminated (DBD ERROR:
OCISessionBegin) at /var/www/perl/automate1.pl line 1119
> >
> > If I don't set NLS_LANG it works fine, but of course I have no accent
("été" becomes "ete")
> >
> > It works fine if I don't use mod_perl
> > I use $ENV{NLS_LANG}='french_france.WE8ISO8859P1' just before the
connect and I have accent ("été" stays "été")
>
> What do you get when you print that value from a modperl script? Does it
> show the right setting?
>
> Any difference if you use Env::C (from CPAN) to set it (it doesn't do any
> locking, but you shouldn't have a problem, if you are using a prefork mpm.
>
> In any case, before you continue trying, please first upgrade to 1.99_17
> so we are on the same line.
>
>
> --
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@... http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61380 From: Stas Bekman <stas@...>
Date: Fri Oct 29, 2004 4:21 pm
Subject: Re: pb setting NLS_LANG with mod_perl 1.99_14et DBD::Oracle
stas@...
Send Email Send Email
 
Jean-Paul COGNET wrote:
> I upgrade with the new version of Apache 2.0 (httpd-2.0.52) and mod_perl
> 1.99_17 and the behaviour is exactly the same.

OK

> If  I set NLS_LANG I obtain this logs just before connect
> ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
> NLS_LANG=french_france.WE8ISO8859P1
> I cannot connect and have this log in Apache
> DBI connect('TOPDEV5','automate',...) failed: ORA-00604: error occurred at
> recursive SQL level 1
> ORA-01756: quoted string not properly terminated (DBD ERROR:
> OCISessionBegin) at /var/www/perl/automate1.pl line 1126
>
> If  I do not set NLS_LANG I obtain this logs just before connect
> ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
> NLS_LANG=
> and then I can connect but "été" becomes "ete"

Please reread my reply again, besides upgrading I've asked you:

  > What do you get when you print that value from a modperl script? Does it
  > show the right setting?

Is that what you mean by 'I obtain this logs'?

And this:

  > Any difference if you use Env::C (from CPAN) to set it (it doesn't do any
  > locking, but you shouldn't have a problem, if you are using a prefork mpm.

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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61381 From: Torsten Förtsch <torsten.foertsch@...>
Date: Fri Oct 29, 2004 5:37 pm
Subject: $0 ?
torsten.foertsch@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

perl allows to modify $0. Then top, ps & co would display the new process
title. Can the process title of a mod_perl modified apache be set this way?

Torsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBgn/iwicyCTir8T4RAuNAAJ48CXRTdtlMTQx5V+Yk0KvbtNTGMgCgt7Vm
01eeEfHkoK7EE1ydENCkStE=
=xt8c
-----END PGP SIGNATURE-----

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61382 From: Stas Bekman <stas@...>
Date: Fri Oct 29, 2004 6:17 pm
Subject: Re: $0 ?
stas@...
Send Email Send Email
 
Torsten Förtsch wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> perl allows to modify $0. Then top, ps & co would display the new process
> title. Can the process title of a mod_perl modified apache be set this way?

What is it that you are trying to do? Change $0 and affect the way it's
seen from the outside?

Take a look at this commit, which might be of some relevance:
http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2

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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61383 From: Stas Bekman <stas@...>
Date: Fri Oct 29, 2004 6:19 pm
Subject: Re: Fail to configure mod_perl and build apache
stas@...
Send Email Send Email
 
CN wrote:
> Hi!
>
> Because "perl Makefile.PL" did not find LWP::UserAgent and
> HTML::HeadParser in my Debian box, I did "apt-get install
> libapache-mod-perl". Then I did "dpkg -P libapache-mod-perl" to remove
> that package. Since then "perl Makefile.PL" seems to have trouble as it
> complains "cat: ../apache_1.3.32/src/Makefile.config: No such file or
> directory":

Unless someone on Debian can help you with the specific of those packages,
I'd suggest that you download the source and build everything by yourself
as explained here:
http://perl.apache.org/docs/1.0/guide/getwet.html#Installing_mod_perl_for_Unix_P\
latforms
http://perl.apache.org/docs/1.0/guide/install.html

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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61384 From: Torsten Förtsch <torsten.foertsch@...>
Date: Fri Oct 29, 2004 6:40 pm
Subject: Re: $0 ?
torsten.foertsch@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 29 October 2004 20:17, Stas Bekman wrote:
> > perl allows to modify $0. Then top, ps & co would display the new process
> > title. Can the process title of a mod_perl modified apache be set this
> > way?
>
> What is it that you are trying to do? Change $0 and affect the way it's
> seen from the outside?

yes. I have some requests with postprocessing. I want to know, what processes
are affected.

> Take a look at this commit, which might be of some relevance:
> http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2

But I see, it is not supported.

Torsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBgo61wicyCTir8T4RAqNVAJ9f7rCz1kSAjS4daSrx9Zu9cCK2vQCfe1Sq
8BCBhMs04T0344g1qMjjjSg=
=8Dm9
-----END PGP SIGNATURE-----

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61385 From: Stas Bekman <stas@...>
Date: Fri Oct 29, 2004 8:13 pm
Subject: Re: $0 ?
stas@...
Send Email Send Email
 
Torsten Förtsch wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Friday 29 October 2004 20:17, Stas Bekman wrote:
>
>>>perl allows to modify $0. Then top, ps & co would display the new process
>>>title. Can the process title of a mod_perl modified apache be set this
>>>way?
>>
>>What is it that you are trying to do? Change $0 and affect the way it's
>>seen from the outside?
>
>
> yes. I have some requests with postprocessing. I want to know, what processes
> are affected.
>
>
>>Take a look at this commit, which might be of some relevance:
>>http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2
>
>
> But I see, it is not supported.

Due to internal Apache corruptions, no.


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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61386 From: Pratik <pratiknaik@...>
Date: Fri Oct 29, 2004 8:21 pm
Subject: Re: $0 ?
pratiknaik@...
Send Email Send Email
 
I don't know about mp2. But in mp1, I tried to assign some value to $0
in PerlChildInitHandler, and it gave segmentation fault. I haven't
looked into it in details. I'd like to know if this is a known issue
or not.

-Pratik


On Fri, 29 Oct 2004 16:13:19 -0400, Stas Bekman <stas@...> wrote:
> Torsten Förtsch wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Friday 29 October 2004 20:17, Stas Bekman wrote:
> >
> >>>perl allows to modify $0. Then top, ps & co would display the new process
> >>>title. Can the process title of a mod_perl modified apache be set this
> >>>way?
> >>
> >>What is it that you are trying to do? Change $0 and affect the way it's
> >>seen from the outside?
> >
> >
> > yes. I have some requests with postprocessing. I want to know, what
processes
> > are affected.
> >
> >
> >>Take a look at this commit, which might be of some relevance:
> >>http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2
> >
> >
> > But I see, it is not supported.
>
> Due to internal Apache corruptions, no.
>
>
>
>
> --
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@... http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>
>

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61387 From: Craig Moynes <craig.moynes@...>
Date: Fri Oct 29, 2004 10:53 pm
Subject: Re: Can't locate ../Functions/db.pl in @INC
craig.moynes@...
Send Email Send Email
 
I'll give this a shot, seeing as no one seemed to have answered:

In your pl files you can try including something like:
use lib qw(directory containing module directories);

Example:
use lib qw(/usr/local/apache2/perl);

In my config I have
PerlRequire /usr/local/apache2/perl/startup.pl
which contains:
use lib qw(/usr/local/apache2/perl);
1;

Not sure if this will work with your version of apache.

Cheers,
    Craig

On Tue, 26 Oct 2004 23:25:49 -0700 (PDT), mahboobeh soleimani
<mah_soleimani@...> wrote:
> Hi every body.
>
> I have a apache 1.3.31 and mod_perl 1.28 and used
>
> <Files *.pl>
>
>         SetHandler perl-script
>         PerlHandler Apache::PerlRun
>         PerlSendHeader On
> </Files>
>
> in http.conf
>
> but when i enter:
>
> perl /root/prelude/piwi/test/index.pl
>
> i can see this error :
>
> Can't locate ../Functions/db.pl in @INC (@INC
> contains:
> /usr/lib/perl5/5.8.1/i38sr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.vendor_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/d-multi
> /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl /usr/lib/perrl5/5.8.1 .) at
> /root/prelude/piwi/test/index.pl line 3.
>
> also i can not view my index.pl by Mozilla
>
> could you please guide me?
>
> regards.
>
> M.S.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>
>


--
Primer:
    Shane Carruth: It's about some engineers that are trying to build a
device that "degrades" gravity. They find out it has unexplainable
properties. Hilarity ensues.

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61388 From: David Nicol <davidnicol@...>
Date: Sat Oct 30, 2004 12:21 am
Subject: Re: $0 ?
davidnicol@...
Send Email Send Email
 
maybe you could call setproctitle(3) directly, somehow?


On Fri, 29 Oct 2004 19:37:33 +0200, Torsten Förtsch
<torsten.foertsch@...> wrote:
> modify $0.

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61389 From: Eric Lenio <modperl@...>
Date: Sat Oct 30, 2004 4:30 pm
Subject: mp2: PerlTransHandler/proxying with question mark in URL
modperl@...
Send Email Send Email
 
In my apache config file I'm using a PerlTransHandler call to do URL rewriting.
Basically I want to map all URL's beginning with

   http://testhost.lenio.net

to internally to go to:

   http://localhost:8080

This works perfectly except when I introduce a URL with a question
mark like this:

   http://testhost.lenio.net?argument1=some_value

The proxy seems to try to escape the question mark to be %3F, but that's where
I'm getting lost.  Thoughts?  Here's the actual PerlTransHandler:


use Apache::RequestRec ();
use Apache::Const -compile => qw(DECLINED :common);
sub handler {
   my $r = shift;
   my $hostname = $r->hostname;
   my $real_url = $r->unparsed_uri;
   if ($hostname =~ m{^testhost\.}i) {
     $r->proxyreq(1);
     $r->uri($real_url);
     $r->filename(sprintf "proxy:http://localhost:8080%s",$real_url);
     $r->handler('proxy-server');
     return Apache::OK;
   }
   return Apache::DECLINED;
}
1;

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61390 From: Stas Bekman <stas@...>
Date: Sun Oct 31, 2004 12:21 am
Subject: Re: mp2: PerlTransHandler/proxying with question mark in URL
stas@...
Send Email Send Email
 
Eric Lenio wrote:
> In my apache config file I'm using a PerlTransHandler call to do URL
rewriting.
> Basically I want to map all URL's beginning with
>
>   http://testhost.lenio.net
>
> to internally to go to:
>
>   http://localhost:8080
>
> This works perfectly except when I introduce a URL with a question
> mark like this:
>
>   http://testhost.lenio.net?argument1=some_value
>
> The proxy seems to try to escape the question mark to be %3F, but that's where
> I'm getting lost.  Thoughts?  Here's the actual PerlTransHandler:

shouldn't there be a slash after the domain name?
http://testhost.lenio.net/?argument1=some_value

I wonder if that's a valid URL at all:
http://testhost.lenio.net?argument1=some_value

> use Apache::RequestRec ();
> use Apache::Const -compile => qw(DECLINED :common);
> sub handler {
>   my $r = shift;
>   my $hostname = $r->hostname;
>   my $real_url = $r->unparsed_uri;
>   if ($hostname =~ m{^testhost\.}i) {
>     $r->proxyreq(1);
>     $r->uri($real_url);
>     $r->filename(sprintf "proxy:http://localhost:8080%s",$real_url);
>     $r->handler('proxy-server');
>     return Apache::OK;
>   }
>   return Apache::DECLINED;
> }
> 1;

Why don't you just rewrite the URLs with ProxyPass?
http://perl.apache.org/docs/1.0/guide/scenario.html#toc_Concepts_and_Configurati\
on_Directives

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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61391 From: Torsten Förtsch <torsten.foertsch@...>
Date: Sun Oct 31, 2004 5:38 pm
Subject: Apache::Test with and without mod_ssl
torsten.foertsch@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I need to write a TEST.PL that starts an apache with mod_ssl loaded and run
the tests and then starts an apache without mod_ssl loaded and runs the tests
again.

How can I do that?

How can the actual test determine which case (with or without mod_ssl) is
currently running?

Here is my TEST.PL so far.

#!perl

use strict;
use warnings FATAL => 'all';

use lib qw(lib);

use Apache::TestRunPerl ();

Apache::TestRunPerl->new->run(@ARGV);

package My::TestRun;
use base 'Apache::TestRun';
use Apache::TestConfig;

__PACKAGE__->new->run(@ARGV);

sub pre_configure {
   my $I = shift;
   Apache::TestConfig::autoconfig_skip_module_add('mod_ssl.c');

   $I->SUPER::pre_configure();
}

It runs the tests twice but the httpd.conf is not recreated for the second
case. If I only run the second case mod_ssl is not loaded as expected.

What should I call to recreate the configuration for the second case?

Torsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBhSMEwicyCTir8T4RAuqtAKC9HxBG9c8n5fkQcCdMV1aAc3/08ACgnVUj
7x46Sv/rkaor/9mlweaF6MU=
=zvtl
-----END PGP SIGNATURE-----

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61392 From: Stas Bekman <stas@...>
Date: Sun Oct 31, 2004 5:55 pm
Subject: Re: Apache::Test with and without mod_ssl
stas@...
Send Email Send Email
 
Torsten Förtsch wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I need to write a TEST.PL that starts an apache with mod_ssl loaded and run
> the tests and then starts an apache without mod_ssl loaded and runs the tests
> again.

% cat Apache-Test/README
...
###################
# Got a question? #
###################

Post it to the test-dev <at> httpd.apache.org list. The list is
moderated, so unless you are subscribed to it it may take some time
for your post to make it to the list.

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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61393 From: Stuart Scharf <ss@...>
Date: Sun Oct 31, 2004 7:14 pm
Subject: Content-Length: 0
ss@...
Send Email Send Email
 
I am trying to compile mod_perl on SuSE 9.0
with:
apache_1.3.33
mod_perl-1.29
mod_ssl-2.8.22-1.3.33
php-4.3.9

It all works except when I inclue mod_perl my header has the tag:
Content-Length: 0
instead of the real length.

(Also I seem be be unable to run "make test" as I get a Syntax error about the
Action line in the httpd.conf file)

Stuart Scharf
ss at kashrut.com


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61394 From: Nick Phillips <Nick.Phillips@...>
Date: Sun Oct 31, 2004 7:33 pm
Subject: Re: Fail to configure mod_perl and build apache
Nick.Phillips@...
Send Email Send Email
 
On 30/10/2004, at 7:19 AM, Stas Bekman wrote:

> CN wrote:
>> Hi!
>>
>> Because "perl Makefile.PL" did not find LWP::UserAgent and
>> HTML::HeadParser in my Debian box, I did "apt-get install
>> libapache-mod-perl". Then I did "dpkg -P libapache-mod-perl" to remove
>> that package. Since then "perl Makefile.PL" seems to have trouble as
>> it
>> complains "cat: ../apache_1.3.32/src/Makefile.config: No such file or
>> directory":
>
> Unless someone on Debian can help you with the specific of those
> packages,

Well, I'll try...

> I'd suggest that you download the source and build everything by
> yourself
> as explained here:

...because this always seems to lead to a world of pain, in the end (as
the
next time you try to install a package that depends on one of the ones
you've
built yourself, you have to resort to twisting the packaging system's
arm).

First suggestion: use aptitude, not apt-get. aptitude shows you the
packages
that are recommended by the package you are installing, as well as those
upon which it absolutely depends.

Second suggestion: CPAN packages in debian are named consistently. If
you
have a CPAN package called Foo::Bar, the debian package of it will be
called
libfoo-bar-perl. There are a few confusing ones, such as LWP. Try
libwww-perl.

Third suggestion: Even if you want to rebuild a package which is in
Debian,
start off with the Debian package sources ("apt-get source foo"). That
way,
you end up with a packaged version of the thing, and any idiosyncracies
needed to build it on Debian.



Cheers,


Nick


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61395 From: Steven <ufo@...>
Date: Sun Oct 31, 2004 9:12 pm
Subject: Bug? Make test fails on configure_httpd/configure_apxs
ufo@...
Send Email Send Email
 
Dear mailing list,

When following instructions for mod_perl 2.0 on the website:

> make
blah... no warnings or errors
> make test
Just enters and leaves a few directories first
....
make[1]: Leaving directory
`/home/ufo/downloads/apache2/modules/mod_perl-1.99_17/xs'
/usr/local/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl
/home/ufo/downloads/apache2/modules/mod_perl-1.99_17/t/TEST -bugreport
-verbose=0
something is wrong, mod_perl 2.0 build should have supplied all the needed
information to run the tests. Please post lib/Apache/BuildConfig.pm along
with the bug report at
/home/ufo/downloads/apache2/modules/mod_perl-1.99_17/Apache-Test/lib/Apache/Test\
Config.pm
line 349.
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 2

Following is t/REPORT:

#!/usr/local/bin/perl
# WARNING: this file is generated, do not edit
# 01: Apache-Test/lib/Apache/TestConfig.pm:898
# 02: Apache-Test/lib/Apache/TestConfig.pm:988
# 03: Apache-Test/lib/Apache/TestReport.pm:45
# 04: Makefile.PL:283
# 05: Makefile.PL:52

BEGIN { eval { require blib && blib->import; } }


use strict;
use warnings FATAL => 'all';

use lib qw(
     /home/ufo/downloads/apache2/modules/mod_perl-1.99_17/lib
     /home/ufo/downloads/apache2/modules/mod_perl-1.99_17/Apache-Test/lib
     /home/ufo/downloads/apache2/modules/mod_perl-1.99_17/t/lib
);


use ModPerl::TestReport;
ModPerl::TestReport->new(@ARGV)->run;

<end>

TestConfig.pm is huge so following is only the direct context of the
error-producing line in
/home/ufo/downloads/apache2/modules/mod_perl-1.99_17/Apache-Test/lib/Apache/Test\
Config.pm
:

sub httpd_config {
     my $self = shift;

     $self->configure_apxs;
     $self->configure_httpd;

     my $vars = $self->{vars};
     unless ($vars->{httpd} or $vars->{apxs}) {

         # mod_perl 2.0 build always knows the right httpd location
         # (and optionally apxs)
         if (IS_MOD_PERL_2_BUILD) {
             # XXX: at the moment not sure what could go wrong, but it
             # shouldn't enter interactive config, which doesn't work
             # with mod_perl 2.0 build (by design)
             die "something is wrong, mod_perl 2.0 build should have " .
                 "supplied all the needed information to run the tests. " .
                 "Please post lib/Apache/BuildConfig.pm along with the " .
                 "bug report";
         }

         if ($ENV{APACHE_TEST_NO_STICKY_PREFERENCES}) {
             error "You specified APACHE_TEST_NO_STICKY_PREFERENCES=1 " .
                 "in which case you must explicitly specify -httpd " .
                 "and/or -apxs options";
             Apache::TestRun::exit_perl(0);
         }

         $self->clean(1);
         # this method restarts the whole program via exec
         # so it never returns
         $self->custom_config_first_time($self->{vars});
     }

     # if we have gotten that far we know at least about the location
     # of httpd and or apxs, so let's save it if we haven't saved any
     # custom configs yet
     unless (custom_config_exists()) {
         $self->custom_config_save($self->{vars});
     }

     $self->inherit_config; #see TestConfigParse.pm
     $self->configure_httpd_eapi; #must come after inherit_config

     $self->default_module(cgi    => [qw(mod_cgi mod_cgid)]);
     $self->default_module(thread => [qw(worker threaded)]);
     $self->default_module(ssl    => [qw(mod_ssl)]);
     $self->default_module(access => [qw(mod_access mod_authz_host)]);
     $self->default_module(auth   => [qw(mod_auth mod_auth_basic)]);
     $self->default_module(php    => [qw(sapi_apache2 mod_php4 mod_php5)]);

     $self->{server}->post_config;

     $self;
}

sub configure_apxs {
     my $self = shift;

     $self->{APXS} = $self->default_apxs;

     return unless $self->{APXS};

     $self->{APXS} =~ s{/}{\\}g if WIN32;

     my $vars = $self->{vars};

     $vars->{bindir}   ||= $self->apxs('BINDIR', 1);
     $vars->{sbindir}  ||= $self->apxs('SBINDIR');
     $vars->{target}   ||= $self->apxs('TARGET');
     $vars->{conf_dir} ||= $self->apxs('SYSCONFDIR');

     if ($vars->{conf_dir}) {
         $vars->{httpd_conf} ||= catfile $vars->{conf_dir}, 'httpd.conf';
     }
}

sub configure_httpd {
     my $self = shift;
     my $vars = $self->{vars};

     debug "configuring httpd";

     $vars->{target} ||= (WIN32 ? 'Apache.EXE' : 'httpd');

     unless ($vars->{httpd}) {
         #sbindir should be bin/ with the default layout
         #but its eaiser to workaround apxs than fix apxs
         for my $dir (map { $vars->{$_} } qw(sbindir bindir)) {
             next unless defined $dir;
             my $httpd = catfile $dir, $vars->{target};
             next unless -x $httpd;
             $vars->{httpd} = $httpd;
             last;
         }

         $vars->{httpd} ||= $self->default_httpd;
     }

     if ($vars->{httpd}) {
         my @chunks = splitdir $vars->{httpd};
         #handle both $prefix/bin/httpd and $prefix/Apache.exe
         for (1,2) {
             pop @chunks;
             last unless @chunks;
             $self->{httpd_basedir} = catfile @chunks;
             last if -d "$self->{httpd_basedir}/bin";
         }
     }

     #cleanup httpd droppings
     my $sem = catfile $vars->{t_logs}, 'apache_runtime_status.sem';
     unless (-e $sem) {
         $self->clean_add_file($sem);
     }
}


<end>

Following is lib/Apache/BuildConfig.pm :

#
# /*
#  * *********** WARNING **************
#  * This file generated by Apache::Build/0.01
#  * Any changes made here will be lost
#  * ***********************************
#  * 01: lib/ModPerl/Code.pm:702
#  * 02: lib/Apache/Build.pm:810
#  * 03: lib/Apache/Build.pm:827
#  * 04: Makefile.PL:326
#  * 05: Makefile.PL:92
#  */
#
package Apache::BuildConfig;

use Apache::Build ();

sub new {
     bless( {
                  'MODPERL_AR' => 'ar',
                  'MODPERL_OBJ_EXT' => '.o',
                  'ap_includedir' =>
'/home/ufo/downloads/apache2/httpd-2.0.52/include',
                  'MODPERL_O_FILES' => 'mod_perl.o modperl_interp.o
modperl_tipool.o modperl_log.o modperl_config.o modperl_cmd.o
modperl_options.o modperl_callback.o modperl_handler.o modperl_gtop.o
modperl_util.o modperl_io.o modperl_io_apache.o modperl_filter.o
modperl_bucket.o modperl_mgv.o modperl_pcw.o modperl_global.o modperl_env.o
modperl_cgi.o modperl_perl.o modperl_perl_global.o modperl_perl_pp.o
modperl_sys.o modperl_module.o modperl_svptr_table.o modperl_const.o
modperl_constants.o modperl_apache_compat.o modperl_error.o modperl_debug.o
modperl_common_util.o modperl_common_log.o modperl_hooks.o
modperl_directives.o modperl_flags.o modperl_xsinit.o modperl_exports.o',
                  'MP_USE_DSO' => 1,
                  'MODPERL_O_PIC_FILES' => 'mod_perl.lo modperl_interp.lo
modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo
modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo
modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_filter.lo
modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo
modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo
modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo
modperl_const.lo modperl_constants.lo modperl_apache_compat.lo
modperl_error.lo modperl_debug.lo modperl_common_util.lo
modperl_common_log.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo
modperl_xsinit.lo modperl_exports.lo',
                  'MODPERL_AP_INCLUDEDIR' => '',
                  'MODPERL_RM' => 'rm',
                  'file_ldopts' => 'src/modules/perl/ldopts',
                  'MODPERL_CPPRUN' => 'cc -E',
                  'cwd' =>
'/home/ufo/downloads/apache2/modules/mod_perl-1.99_17',
                  'MODPERL_RANLIB' => ':',
                  'MP_GENERATE_XS' => 1,
                  'MODPERL_ARCHLIBEXP' =>
'/usr/local/lib/perl5/5.8.3/i686-linux',
                  'MODPERL_LIB_DSO' => 'mod_perl.so',
                  'MODPERL_XSUBPP' => '$(MODPERL_PERLPATH)
$(MODPERL_PRIVLIBEXP)/ExtUtils/xsubpp -typemap
$(MODPERL_PRIVLIBEXP)/ExtUtils/typemap -typemap
/home/ufo/downloads/apache2/modules/mod_perl-1.99_17/lib/typemap',
                  'MODPERL_PRIVLIBEXP' => '/usr/local/lib/perl5/5.8.3',
                  'MODPERL_LIB_STATIC' => 'mod_perl.a',
                  'MODPERL_RM_F' => 'rm -f',
                  'MODPERL_MAKEFILE' => 'Makefile',
                  'MODPERL_CCOPTS' => ' -fno-strict-aliasing
-I/usr/local/include -I/usr/local/lib/perl5/5.8.3/i686-linux/CORE -DMOD_PERL
-DMP_COMPAT_1X',
                  'MODPERL_LDDLFLAGS' => '-shared -L/usr/local/lib',
                  'MODPERL_INC' =>
'-I/home/ufo/downloads/apache2/modules/mod_perl-1.99_17/src/modules/perl
-I/home/ufo/downloads/apache2/modules/mod_perl-1.99_17/xs
-I/home/ufo/downloads/apache2/httpd-2.0.52/include
-I/home/ufo/downloads/apache2/httpd-2.0.52/srclib/apr/include
-I/home/ufo/downloads/apache2/httpd-2.0.52/srclib/apr-util/include
-I/home/ufo/downloads/apache2/httpd-2.0.52/os/unix',
                  'file_build_config' => 'lib/Apache/BuildConfig.pm',
                  'XS' => {},
                  'httpd_version' => {

'/home/ufo/downloads/apache2/httpd-2.0.52/include' => '2.0.52'
                                     },
                  'MP_COMPAT_1X' => 1,
                  'apr_config' => {
                                    'HAS_FORK' => '1',
                                    'HAS_THREADS' => '1',
                                    'HAS_MMAP' => '1',
                                    'HAS_RANDOM' => '1',
                                    'HAS_DSO' => '1',
                                    'HAS_SENDFILE' => '1',
                                    'HAS_LARGE_FILES' => '0',
                                    'HAS_INLINE' => '1'
                                  },
                  'MODPERL_LIBNAME' => 'mod_perl',
                  'apr_config_path' =>
'/home/ufo/downloads/apache2/httpd-2.0.52/srclib/apr/apr-config',
                  'MODPERL_LIB_EXT' => '.a',
                  'MODPERL_C_FILES' => 'mod_perl.c modperl_interp.c
modperl_tipool.c modperl_log.c modperl_config.c modperl_cmd.c
modperl_options.c modperl_callback.c modperl_handler.c modperl_gtop.c
modperl_util.c modperl_io.c modperl_io_apache.c modperl_filter.c
modperl_bucket.c modperl_mgv.c modperl_pcw.c modperl_global.c modperl_env.c
modperl_cgi.c modperl_perl.c modperl_perl_global.c modperl_perl_pp.c
modperl_sys.c modperl_module.c modperl_svptr_table.c modperl_const.c
modperl_constants.c modperl_apache_compat.c modperl_error.c modperl_debug.c
modperl_common_util.c modperl_common_log.c modperl_hooks.c
modperl_directives.c modperl_flags.c modperl_xsinit.c modperl_exports.c',
                  'MP_LIBNAME' => 'mod_perl',
                  'MODPERL_H_FILES' => 'mod_perl.h modperl_interp.h
modperl_tipool.h modperl_log.h modperl_config.h modperl_cmd.h
modperl_options.h modperl_callback.h modperl_handler.h modperl_gtop.h
modperl_util.h modperl_io.h modperl_io_apache.h modperl_filter.h
modperl_bucket.h modperl_mgv.h modperl_pcw.h modperl_global.h modperl_env.h
modperl_cgi.h modperl_perl.h modperl_perl_global.h modperl_perl_pp.h
modperl_sys.h modperl_module.h modperl_svptr_table.h modperl_const.h
modperl_constants.h modperl_apache_compat.h modperl_error.h modperl_debug.h
modperl_common_util.h modperl_common_log.h modperl_perl_unembed.h
modperl_types.h modperl_time.h modperl_apache_includes.h
modperl_perl_includes.h modperl_apr_includes.h modperl_apr_compat.h
modperl_common_includes.h modperl_common_types.h modperl_hooks.h
modperl_directives.h modperl_flags.h modperl_trace.h modperl_largefiles.h',
                  'MODPERL_TEST_F' => 'test -f',
                  'MP_APR_LIB' => 'aprext',
                  'dir' => '/home/ufo/downloads/apache2/httpd-2.0.52',
                  'MODPERL_MV' => 'mv',
                  'MODPERL_LDOPTS' => '-rdynamic  -L/usr/local/lib
/usr/local/lib/perl5/5.8.3/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.3/i686-linux/CORE -lperl -lnsl -ldl -lm -lcrypt
-lutil -lc',
                  'MODPERL_CP' => 'cp',
                  'file_makefile' => 'src/modules/perl/Makefile',
                  'MODPERL_LIB_SHARED' => 'mod_perl.so',
                  'MODPERL_PERLPATH' => '/usr/local/bin/perl',
                  'MODPERL_CC' => 'cc',
                  'MODPERL_CCCDLFLAGS' => '-fpic',
                  'apr_includedir' =>
'/home/ufo/downloads/apache2/httpd-2.0.52/srclib/apr/include',
                  'MODPERL_AP_LIBEXECDIR' => '',
                  'MODPERL_DLEXT' => 'so',
                  'httpd_is_source_tree' => '1',
                  'MODPERL_OPTIMIZE' => '-O3',
                  'MODPERL_LIB' => 'mod_perl.so',
                  'MODPERL_LIBPERL' =>
'/usr/local/lib/perl5/5.8.3/i686-linux/CORE/libperl.a',
                  'MODPERL_AP_LIBS' => '',
                  'MODPERL_LD' => 'cc',
                  'VERSION' => '1.99_17'
                }, 'Apache::Build' );
}

1;

<end>

Apache 2.0.52 configured as:

./configure --prefix=/usr/apache2 \
	 --enable-so \
	 --enable-cgi \
	 --enable-info \
	 --enable-rewrite \
	 --enable-speling \
	 --enable-usertrack \
	 --enable-deflate \
	 --enable-ssl \
	 --enable-mime-magic

perl 5.8.3, standard configuration

> perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
   Platform:
     osname=linux, osvers=2.6.8.1, archname=i686-linux
     uname='linux steven 2.6.8.1 #1 thu oct 21 15:16:38 cest 2004 i686 unknown
'
     config_args='-de'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
     optimize='-O3',
     cppflags='-fno-strict-aliasing -I/usr/local/include'
     ccversion='', gccversion='3.4.2', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -ldl -lm -lcrypt -lutil -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
     libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.2.5'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: USE_LARGE_FILES
   Built under linux
   Compiled at Oct 29 2004 23:53:26
   @INC:
     /usr/local/lib/perl5/5.8.3/i686-linux
     /usr/local/lib/perl5/5.8.3
     /usr/local/lib/perl5/site_perl/5.8.3/i686-linux
     /usr/local/lib/perl5/site_perl/5.8.3
     /usr/local/lib/perl5/site_perl
     .

Using GCC version 3.4.2.

I've tried a few things (including setting %vars manually to fool the test),
but I can't figure out where the problem is.

Hope this rings a bell somewhere,
Steven.

--
Mijn openbare cryptografische sleutel / My public cryptographic key:
http://steven.lepelaar.homeunix.org/public_key.asc


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61396 From: Stas Bekman <stas@...>
Date: Sun Oct 31, 2004 9:18 pm
Subject: Re: Bug? Make test fails on configure_httpd/configure_apxs
stas@...
Send Email Send Email
 
Steven wrote:
[...]
> Following is t/REPORT:
>
> #!/usr/local/bin/perl
> # WARNING: this file is generated, do not edit
> # 01: Apache-Test/lib/Apache/TestConfig.pm:898
> # 02: Apache-Test/lib/Apache/TestConfig.pm:988
> # 03: Apache-Test/lib/Apache/TestReport.pm:45
> # 04: Makefile.PL:283
> # 05: Makefile.PL:52
[...]

Steven, can you please tell me where did you see the suggestion to post
here the script t/REPORT and not the output of its execution? If it wasn't
clear in the help document, please suggest how to improve the wording.

In any case please run t/REPORT and post its output and then we will look
at the whole thing.

Thanks.


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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

#61397 From: Stas Bekman <stas@...>
Date: Sun Oct 31, 2004 9:19 pm
Subject: [ANNOUNCE] Apache-VMonitor-2.01
stas@...
Send Email Send Email
 
The uploaded file

      Apache-VMonitor-2.01.tar.gz

has entered CPAN as

    file: $CPAN/authors/id/S/ST/STAS/Apache-VMonitor-2.01.tar.gz
    size: 22393 bytes
     md5: 431e474afc1b212ad1fdc34bed0a22dd

Changes since 2.00:

- sync API changes with mp1.99_15

- in the single process mode view sort 'Memory Maps' and 'Loaded Libs
    Sizes' by filename

- drop 5.005 support. It's too much of a hassle. version 0.08 is
    available for those who are stuck with 5.005.


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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Messages 61368 - 61397 of 67621   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help