Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27

2002-12-30 Thread Frank Laczko Jr.
Hello all

I am having a problem getting mod_perl-1.99_07 and apache_1.3.27 installed.
I have looked through the docs and have not seen a solution, so if one
exists and I missed it, let me apologize in advance.

I am running the apache configure script  that uses apaci with options to
enable mod_so and several other modules, then running the perl Makefile.pl
script for mod_perl. This is the error I get:

$ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 USE_DSO=1
Reading Makefile.PL args from @ARGV
!!! Unable to determine server version, aborting.
!!! Please specify MP_APXS or MP_AP_PREFIX.

I have also tried :

$ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
Reading Makefile.PL args from @ARGV
!!! Unable to determine server version, aborting.
!!! Please specify MP_APXS or MP_AP_PREFIX

What am I missing? Anyone have any ideas?

Thanks in advance

Frank Laczko
[EMAIL PROTECTED]





sesion managing

2002-12-30 Thread koudjo ametepe
hi everbody , 
How do you do 

I developping an intranet project with perl and Mysql . 

I encounter a problem and still i haven't found a solution .The problem is 

previously i was using php/mysql ; with the function sesssion_xxx i was able to keep user id through all the pages and store it any time that the user save something in the database . 

Umfortunately i don't know how to do this with perl , i read some articles on the net about it but i get nothing. 

Please can you give me some ideas about the session managing in perl/mysql 

thanks 

koudjo 


MSN Messenger : discutez en direct avec vos amis ! Cliquez-ici 


Re: CGI programs on Darwin

2002-12-30 Thread domm
Hi!

On Mon, Dec 30, 2002 at 04:57:32AM -0200, Lucas Barros wrote:

 I'm having some problems to configure Apache 1.3 to run CGI programs, 
 my computer is a Macintosh running Mac OS X.

This list is for discussing mod_perl related issues. You problem seems to be
a plain CGI/Apache/OS X problem.

Please post your question to an appropriate mailing list. You can find
general Perl/CGI mailing lists here:
  http://lists.perl.org/


Please read this:
  http://perl.apache.org/maillist/modperl.html
and that:
  http://perl.apache.org/maillist/email-etiquette.html
before posting to the modperl mailing list.


-- 
#!/usr/bin/perl   http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}



RE: Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27

2002-12-30 Thread Beau E. Cox
No No No -

mod_perl-1.99 is really the pre-relase mod_perl 2.

You MUST use Apache 2 with mod_perl 2!

Aloha = Beau.

-Original Message-
From: Frank Laczko Jr. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 29, 2002 11:37 PM
To: [EMAIL PROTECTED]
Subject: Help! :) - Installation problem with mod_perl-1.99_07 and
apache_1.3.27


Hello all

I am having a problem getting mod_perl-1.99_07 and apache_1.3.27 installed.
I have looked through the docs and have not seen a solution, so if one
exists and I missed it, let me apologize in advance.

I am running the apache configure script  that uses apaci with options to
enable mod_so and several other modules, then running the perl Makefile.pl
script for mod_perl. This is the error I get:

$ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 USE_DSO=1
Reading Makefile.PL args from @ARGV
!!! Unable to determine server version, aborting.
!!! Please specify MP_APXS or MP_AP_PREFIX.

I have also tried :

$ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
Reading Makefile.PL args from @ARGV
!!! Unable to determine server version, aborting.
!!! Please specify MP_APXS or MP_AP_PREFIX

What am I missing? Anyone have any ideas?

Thanks in advance

Frank Laczko
[EMAIL PROTECTED]







RE: Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27

2002-12-30 Thread Radu IONESCU
This is what i've got trying the same thing:
httpd = 2.0.40 is needed by mod_perl-1.99_05-3
perl = 5.8.0 is needed by mod_perl-1.99_05-3
httpd-mmn = 20020628 is needed by mod_perl-1.99_05-3
libapr.so.0   is needed by mod_perl-1.99_05-3
libaprutil.so.0   is needed by mod_perl-1.99_05-3
libc.so.6(GLIBC_2.3)   is needed by mod_perl-1.99_05-3
Radu

-Original Message-
From: Beau E. Cox [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 13:59
To: Frank Laczko Jr.; [EMAIL PROTECTED]
Subject: RE: Help! :) - Installation problem with mod_perl-1.99_07 and
apache_1.3.27


No No No -

mod_perl-1.99 is really the pre-relase mod_perl 2.

You MUST use Apache 2 with mod_perl 2!

Aloha = Beau.

-Original Message-
From: Frank Laczko Jr. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 29, 2002 11:37 PM
To: [EMAIL PROTECTED]
Subject: Help! :) - Installation problem with mod_perl-1.99_07 and
apache_1.3.27


Hello all

I am having a problem getting mod_perl-1.99_07 and apache_1.3.27 installed.
I have looked through the docs and have not seen a solution, so if one
exists and I missed it, let me apologize in advance.

I am running the apache configure script  that uses apaci with options to
enable mod_so and several other modules, then running the perl Makefile.pl
script for mod_perl. This is the error I get:

$ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 USE_DSO=1
Reading Makefile.PL args from @ARGV
!!! Unable to determine server version, aborting.
!!! Please specify MP_APXS or MP_AP_PREFIX.

I have also tried :

$ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
Reading Makefile.PL args from @ARGV
!!! Unable to determine server version, aborting.
!!! Please specify MP_APXS or MP_AP_PREFIX

What am I missing? Anyone have any ideas?

Thanks in advance

Frank Laczko
[EMAIL PROTECTED]





-- 
virus checked - cciu unitbv




Re: Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27

2002-12-30 Thread The Doctor
On Mon, Dec 30, 2002 at 02:36:47AM -0700, Frank Laczko Jr. wrote:
 Hello all
 
 I am having a problem getting mod_perl-1.99_07 and apache_1.3.27 installed.
 I have looked through the docs and have not seen a solution, so if one
 exists and I missed it, let me apologize in advance.
 
 I am running the apache configure script  that uses apaci with options to
 enable mod_so and several other modules, then running the perl Makefile.pl
 script for mod_perl. This is the error I get:
 
 $ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 USE_DSO=1
 Reading Makefile.PL args from @ARGV
 !!! Unable to determine server version, aborting.
 !!! Please specify MP_APXS or MP_AP_PREFIX.
 
 I have also tried :
 
 $ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
 Reading Makefile.PL args from @ARGV
 !!! Unable to determine server version, aborting.
 !!! Please specify MP_APXS or MP_AP_PREFIX
 
 What am I missing? Anyone have any ideas?
 
 Thanks in advance
 
 Frank Laczko
 [EMAIL PROTECTED]
 
 
i
IS your httpd statically built or dynamically built??

-- 
Member - Liberal International  On 11 Sept 2001 the WORLD was violated.
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
Society MUST be saved! Extremists must dissolve.  
Merry Christmas 2002 and Happy 2003



Re: Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27

2002-12-30 Thread Frank Laczko Jr.
Danke for the responce - I just realized that and have now redone with the
correct sources

Silly me, I thought 1.99 would still be in the mod_perl1 release :)

Thanks

Frank
- Original Message -
From: Beau E. Cox [EMAIL PROTECTED]
To: Frank Laczko Jr. [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, December 30, 2002 4:59 AM
Subject: RE: Help! :) - Installation problem with mod_perl-1.99_07 and
apache_1.3.27


 No No No -

 mod_perl-1.99 is really the pre-relase mod_perl 2.

 You MUST use Apache 2 with mod_perl 2!

 Aloha = Beau.

 -Original Message-
 From: Frank Laczko Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 29, 2002 11:37 PM
 To: [EMAIL PROTECTED]
 Subject: Help! :) - Installation problem with mod_perl-1.99_07 and
 apache_1.3.27


 Hello all

 I am having a problem getting mod_perl-1.99_07 and apache_1.3.27
installed.
 I have looked through the docs and have not seen a solution, so if one
 exists and I missed it, let me apologize in advance.

 I am running the apache configure script  that uses apaci with options to
 enable mod_so and several other modules, then running the perl Makefile.pl
 script for mod_perl. This is the error I get:

 $ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 USE_DSO=1
 Reading Makefile.PL args from @ARGV
 !!! Unable to determine server version, aborting.
 !!! Please specify MP_APXS or MP_AP_PREFIX.

 I have also tried :

 $ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1
 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
 Reading Makefile.PL args from @ARGV
 !!! Unable to determine server version, aborting.
 !!! Please specify MP_APXS or MP_AP_PREFIX

 What am I missing? Anyone have any ideas?

 Thanks in advance

 Frank Laczko
 [EMAIL PROTECTED]











Modules Executed Twice

2002-12-30 Thread David Wheeler
Hi All,

I'm developing a new module for mod_perl 1.27, and I'm noticing that  
some code is getting executed twice when the Apache server starts up.

Here's a simple example. Say I have two modules in separate files:

package DoubleTest;
use strict;
my $seen;
sub test_seen {
$seen++;
warn Seen: $seen\n
}
1;

package TestSeen;
use strict;
use DoubleTest;
DoubleTest::test_seen();
1;

Then I have an httpd.conf with these two lines:

PerlModule DoubleTest
PerlModule TestSeen

When I start up Apache, I see Seen: 1 print to the terminal, and then  
I see Seen: 2 in the error log. For some reason, TestSeen is getting  
executed twice!

I did a quick search on perl.apache.org, and found this item:

   
http://perl.apache.org/docs/1.0/guide/ 
config.html#Apache_Restarts_Twice_On_Start

However, this seems to indicate that, first, modules will be executed  
twice on restart but not on start, and second, that it doesn't affect  
PerlModule directives. What I'm seeing above doesn't seem to bear this  
out.

Thanks to that item in the guide, I did figure out how to circumvent  
the problem by checking $Apache::Server::Starting in  
DoubleTest::test_seen():

sub test_seen {
return if $Apache::Server::Starting;
$seen++;
warn Seen: $seen\n
}

So I'm fine with this workaround, but not sure why it's necessary. I  
could also change TestSeen.pm to only call test_seen() in a BEGIN block  
or something (since the modules seems to be compiled only once, but run  
twice), but since the module I'm actually writing is the equivalent of  
DoubleTest with TestSeen as the client, I'd rather not impose that on  
the users of my module.

Explanations and other suggested approaches to handling this problem  
will be most welcome.

TIA,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]



Re: Modules Executed Twice

2002-12-30 Thread Stas Bekman
David Wheeler wrote:

Hi All,

I'm developing a new module for mod_perl 1.27, and I'm noticing that  
some code is getting executed twice when the Apache server starts up.

It was supposed to be fixed in 1.25_01:

=item 1.25_01 - July 6, 2001
...
fix double-loading bug of Perl{Require,Module}s at startup time

Here is the diff:

Index: Apache/Apache.pm
===
RCS file: /home/cvs/modperl/Apache/Apache.pm,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- Apache/Apache.pm29 Jan 2001 16:07:08 -  1.62
+++ Apache/Apache.pm26 Apr 2001 05:30:45 -  1.63
@@ -30,7 +30,10 @@

 sub httpd_conf {
 shift;
-push @Apache::ReadConfig::PerlConfig,
+no strict 'refs';
+#use a symbolic reference so %Apache::ReadConfig::
+#is empty at compile time
+push @{Apache::ReadConfig::PerlConfig},
   map $_\n, @_;
 }

[...]

sub test_seen {
return if $Apache::Server::Starting;
$seen++;
warn Seen: $seen\n
}


Indeed, that's the workaround that was added originaly to cure the above 
problem. Perhaps you can play with httpd_conf and see why it doesn't 
work for you. I know that several people have reported that they still 
had this problem since 1.26 was released.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: Modules Executed Twice

2002-12-30 Thread David Wheeler
On Monday, December 30, 2002, at 02:45  PM, Stas Bekman wrote:


David Wheeler wrote:

Hi All,
I'm developing a new module for mod_perl 1.27, and I'm noticing that  
some code is getting executed twice when the Apache server starts up.

It was supposed to be fixed in 1.25_01:

=item 1.25_01 - July 6, 2001
...
fix double-loading bug of Perl{Require,Module}s at startup time


Hrm, interesting. I wonder what the problem is?


Indeed, that's the workaround that was added originaly to cure the 
above problem. Perhaps you can play with httpd_conf and see why it 
doesn't work for you. I know that several people have reported that 
they still had this problem since 1.26 was released.

I have a better workaround, now. I found that I could make the problem 
go away by reversing the order in which the modules are loaded in 
httpd.conf:

PerlModule TestSeen
PerlModule DoubleTest

Not exactly sure why that makes a difference, though.

Is httpd_conf() documented somewhere? I can't see what's supposed to be 
passed to it.

Thanks,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]



Re: Modules Executed Twice

2002-12-30 Thread Stas Bekman
David Wheeler wrote:

On Monday, December 30, 2002, at 02:45  PM, Stas Bekman wrote:


David Wheeler wrote:


Hi All,
I'm developing a new module for mod_perl 1.27, and I'm noticing that  
some code is getting executed twice when the Apache server starts up.


It was supposed to be fixed in 1.25_01:

=item 1.25_01 - July 6, 2001
...
fix double-loading bug of Perl{Require,Module}s at startup time



Hrm, interesting. I wonder what the problem is?


Indeed, that's the workaround that was added originaly to cure the 
above problem. Perhaps you can play with httpd_conf and see why it 
doesn't work for you. I know that several people have reported that 
they still had this problem since 1.26 was released.


I have a better workaround, now. I found that I could make the problem 
go away by reversing the order in which the modules are loaded in 
httpd.conf:

PerlModule TestSeen
PerlModule DoubleTest

Not exactly sure why that makes a difference, though.

Because $seen wasn't reset yet on reload.


Is httpd_conf() documented somewhere? I can't see what's supposed to be 
passed to it.

It's an internal thing. You can add debug prints and Carp::cluck, to see 
who calls it with what args. Hopefully someone will be able to track the 
problem down and finally cure it for good.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



RE: Modules Executed Twice

2002-12-30 Thread Hann, Brian
Is anyone getting duplicates (i.e. 2 of the same email) of this thread?  It just 
started happening today.

Brian

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 5:06 PM
To: David Wheeler
Cc: [EMAIL PROTECTED]
Subject: Re: Modules Executed Twice


David Wheeler wrote:
 On Monday, December 30, 2002, at 02:45  PM, Stas Bekman wrote:
 
 David Wheeler wrote:

 Hi All,
 I'm developing a new module for mod_perl 1.27, and I'm noticing that  
 some code is getting executed twice when the Apache server starts up.


 It was supposed to be fixed in 1.25_01:

 =item 1.25_01 - July 6, 2001
 ...
 fix double-loading bug of Perl{Require,Module}s at startup time
 
 
 Hrm, interesting. I wonder what the problem is?
 
 Indeed, that's the workaround that was added originaly to cure the 
 above problem. Perhaps you can play with httpd_conf and see why it 
 doesn't work for you. I know that several people have reported that 
 they still had this problem since 1.26 was released.
 
 
 I have a better workaround, now. I found that I could make the problem 
 go away by reversing the order in which the modules are loaded in 
 httpd.conf:
 
 PerlModule TestSeen
 PerlModule DoubleTest
 
 Not exactly sure why that makes a difference, though.

Because $seen wasn't reset yet on reload.

 Is httpd_conf() documented somewhere? I can't see what's supposed to be 
 passed to it.

It's an internal thing. You can add debug prints and Carp::cluck, to see 
who calls it with what args. Hopefully someone will be able to track the 
problem down and finally cure it for good.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: Modules Executed Twice

2002-12-30 Thread Stas Bekman
Hann, Brian wrote:

Is anyone getting duplicates (i.e. 2 of the same email) of this thread?  It just started happening today.


I can't tell, since I never receive dups because of the procmail rule:

:0 Wh: msgid.lock
| formail -D 8192 saved/msgid.cache

hint, hint ;)

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: Modules Executed Twice

2002-12-30 Thread Perrin Harkins
 Explanations and other suggested approaches to handling this problem
 will be most welcome.

My suggestion in the past has been to PerlRequire a startup.pl that does a
use on your modules, instead of pulling them in with PerlModule.
Of course, if you turn PerlFreshRestart on then this is the intended
behavior.
- Perrin





Re: Modules Executed Twice

2002-12-30 Thread David Wheeler
On Monday, December 30, 2002, at 04:09  PM, Perrin Harkins wrote:


My suggestion in the past has been to PerlRequire a startup.pl that 
does a
use on your modules, instead of pulling them in with PerlModule.
Of course, if you turn PerlFreshRestart on then this is the intended
behavior.

That's exactly what I do, too. But I want to give users the flexibility 
to do both.

Thanks,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]