Re: Apache 2.0.47, mod_perl.c

2003-08-21 Thread John Francis Lee
Hello Stas,

I found and downloaded the rpm for mod_perl. Thanks.

When I try to install it :
[EMAIL PROTECTED] rpms]# rpm -Uvh mod_perl-1.99_09-6.i386.rpm
warning: mod_perl-1.99_09-6.i386.rpm: V3 DSA signature: NOKEY, key ID
897da07a
error: Failed dependencies:
httpd-mmn = 20020903 is needed by mod_perl-1.99_09-6
perl = 3:5.8.1 is needed by mod_perl-1.99_09-6
perl(Pod::Perldoc) is needed by mod_perl-1.99_09-6

I'm beginning to think something's not right here.

I have the existing apache rpm 2.0.40 installed on rh 8.0

Not finding an rpm for apache 2.0.47, I downloaded, compiled and
installed the source. 

Apache 2.0.47 resides in /usr/local/apache2/bin. 

My original Apache 2.0.40 resides in /usr/sbin.

I think that all the stuff I need for the new Apache should be in
/usr/local/apache2.

I think that these dependency problems have to do with the existing
Apache 2.0.40 installation. After all, the rpm database knows nothing of
my Apache 2.0.47 tarball installation.

I now have I apache that works, 2.0.40, and one that does not, 2.0.47.
I'm afraid If I continue, uninstalling existing components and
installing new ones that I will end up with two broken apaches.

Please advise.

On ., 2003-08-21 at 11:37, Stas Bekman wrote:
 John Francis Lee wrote:
  Hello,
  
  I've been having trouble running npi-cgi scripts under Apache 2.0.40.
  which came with rh 8.0, so am trying a more recent version of Apache.
  
  I downloaded the tarball for 2.0.47, compiled and installed. 
  
  I get 
  [EMAIL PROTECTED] httpd-2.0.47]#  /etc/rc.d/init.d/httpd start
  Starting httpd: httpd: 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]
  
  I followed up with the poster of a solution to this problem that I
  googled up, and he directed me here.
  
  I cannot rpm -e httpd without uninstalling a lot of other things as
  well, and I haven't found a 2.0.47 rpm either.
  
  What do you suggest I do to fix this problem?
  
  Another option given by the person who wrote the perl giving me problems
  was to install apache 1.3.28. Is this the recommended solution?
 
 Get the latest rpm, see:
 http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
 
 
 
 __
 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
-- 
John Francis Lee [EMAIL PROTECTED]



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



Apache installation not accepting perl-script Handler

2003-08-21 Thread Gareth Kirwan



I 
have a mod perl installation, but it won't accept a perl-script 
handler.
In a 
Location directive I set the handler to perl-script. It fails to execute the 
test file properly.
I set 
it to cgi-script and it executes the file fine ( though I get complaints about 
doing Apache-request aftter loading the Apache module )

I 
have perl-status running on the server, and it returns fine:
Embedded Perl version 
v5.8.0 for Apache/1.3.27 (Unix) mod_gzip/1.3.26.1a mod_perl/1.27 
mod_ssl/2.8.12 OpenSSL/0.9.6h 

The 
loaded modules section shows Apache and Apache::Request to be 
loaded.

Any 
ideas ?

Thanks


Gareth KirwanProgramming  Development,Thermeon Europe 
Ltd,[EMAIL PROTECTED] 
Tel: +44 (0) 1293 864 303Thermeon Europe e-Card: gbjk 


RE: Apache installation not accepting perl-script Handler

2003-08-21 Thread Gareth Kirwan



BTW - 
The script looks like this:

#!/usr/local/bin/perl -w

use 
strict;use Apache;

print 
"Content-Type: text/html";

my $r 
= Apache-request;

1;

and 
the error looks like this:

Can't locate object method "request" 
via package "Apache" at /u/virtual/devel.*.com/perl-bin/Inslink.pl line 
8.[Thu Aug 21 10:31:07 2003] [error] [client 192.168.234.85] Premature end 
of script headers: 
/u/virtual/devel.*.com/perl-bin/Inslink.pl

Notice it didn't fail on loading the Apache module, just on calling 
the request method.

Cheers

G

  -Original Message-From: Gareth Kirwan 
  [mailto:[EMAIL PROTECTED]Sent: 21 August 2003 
  10:23To: [EMAIL PROTECTED]Subject: Apache 
  installation not accepting perl-script Handler
  I 
  have a mod perl installation, but it won't accept a perl-script 
  handler.
  In 
  a Location directive I set the handler to perl-script. It fails to execute the 
  test file properly.
  I 
  set it to cgi-script and it executes the file fine ( though I get complaints 
  about doing Apache-request aftter loading the Apache module 
  )
  
  I 
  have perl-status running on the server, and it returns 
  fine:
  Embedded Perl version 
  v5.8.0 for Apache/1.3.27 (Unix) mod_gzip/1.3.26.1a mod_perl/1.27 
  mod_ssl/2.8.12 OpenSSL/0.9.6h 
  
  The 
  loaded modules section shows Apache and Apache::Request to be 
  loaded.
  
  Any 
  ideas ?
  
  Thanks
  
  
  Gareth KirwanProgramming  Development,Thermeon Europe 
  Ltd,[EMAIL PROTECTED] 
  Tel: +44 (0) 1293 864 303Thermeon Europe e-Card: gbjk 


RE: Apache installation not accepting perl-script Handler

2003-08-21 Thread Gareth Kirwan
I'm not using Apache 2.0

I'm using Apache 1.3.

It seems that the url you posted:
http://perl.apache.org/docs/2.0/user/porting/porting.html#Using_C_ModPerl__M
ethodLookup__to_Discover_Which_mod_perl_2_0_Modules_Need_to_Be_Loaded
Relates specifically to Apache 2.0 and mod_perl 2 ?

Thanks

G

 -Original Message-
 From: Stas Bekman [mailto:[EMAIL PROTECTED]
 Sent: 21 August 2003 18:19
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Apache installation not accepting perl-script Handler


 When reporting problems, please *always* follow the guidelines:
 http://use.perl.org/bugs/

  BTW - The script looks like this:
 
  #!/usr/local/bin/perl -w
 
  use strict;
  use Apache;
 
  print Content-Type: text/html;

 that has to be:

 print Content-Type: text/html\n\n;

  my $r = Apache-request;
 
  1;
 
  and the error looks like this:
 
  Can't locate object method request via package Apache at
  /u/virtual/devel.*.com/perl-
  bin/Inslink.pl line 8.
  [Thu Aug 21 10:31:07 2003] [error] [client 192.168.234.85]
 Premature end
  of script headers: /u/virtu
  al/devel.*.com/perl-bin/Inslink.pl

 You need to load
 use Apache::RequestUtil ();

 See:
 http://perl.apache.org/docs/2.0/user/porting/porting.html#Usin
 g_C_ModPerl__MethodLookup__to_Discover_Which_mod_perl_2_0_Modu
 les_Need_to_Be_Loaded

  Notice it didn't fail  on loading the Apache module, just
 on calling the
  request method.
 
  Cheers
 
  G
 
  -Original Message-
  *From:* Gareth Kirwan [mailto:[EMAIL PROTECTED]
  *Sent:* 21 August 2003 10:23
  *To:* [EMAIL PROTECTED]
  *Subject:* Apache installation not accepting perl-script Handler
 
  I have a mod perl installation, but it won't accept a
 perl-script
  handler.
  In a Location directive I set the handler to
 perl-script. It fails
  to execute the test file properly.
  I set it to cgi-script and it executes the file fine (
 though I get
  complaints about doing Apache-request aftter loading the Apache
  module )
 
  I have perl-status running on the server, and it returns fine:
  Embedded Perl version *v5.8.0* for *Apache/1.3.27 (Unix)
  mod_gzip/1.3.26.1a mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.6h*
  **
  The loaded modules section shows Apache and
 Apache::Request to be
  loaded.
 
  Any ideas ?
 
  Thanks
 
  Gareth Kirwan
  Programming  Development,
  Thermeon Europe Ltd,
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  Tel: +44 (0) 1293 864 303
  Thermeon Europe e-Card: gbjk
  http://www.thermeoneurope.com/e-Card/?uid=gbjk


 --


 __
 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





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



Re: Apache installation not accepting perl-script Handler

2003-08-21 Thread Stas Bekman
When reporting problems, please *always* follow the guidelines:
http://use.perl.org/bugs/
BTW - The script looks like this:
 
#!/usr/local/bin/perl -w
 
use strict;
use Apache;
 
print Content-Type: text/html;
that has to be:

print Content-Type: text/html\n\n;

my $r = Apache-request;
 
1;
 
and the error looks like this:
 
Can't locate object method request via package Apache at 
/u/virtual/devel.*.com/perl-
bin/Inslink.pl line 8.
[Thu Aug 21 10:31:07 2003] [error] [client 192.168.234.85] Premature end 
of script headers: /u/virtu
al/devel.*.com/perl-bin/Inslink.pl
You need to load
use Apache::RequestUtil ();
See:
http://perl.apache.org/docs/2.0/user/porting/porting.html#Using_C_ModPerl__MethodLookup__to_Discover_Which_mod_perl_2_0_Modules_Need_to_Be_Loaded
Notice it didn't fail  on loading the Apache module, just on calling the 
request method.
 
Cheers
 
G

-Original Message-
*From:* Gareth Kirwan [mailto:[EMAIL PROTECTED]
*Sent:* 21 August 2003 10:23
*To:* [EMAIL PROTECTED]
*Subject:* Apache installation not accepting perl-script Handler
I have a mod perl installation, but it won't accept a perl-script
handler.
In a Location directive I set the handler to perl-script. It fails
to execute the test file properly.
I set it to cgi-script and it executes the file fine ( though I get
complaints about doing Apache-request aftter loading the Apache
module )
 
I have perl-status running on the server, and it returns fine:
Embedded Perl version *v5.8.0* for *Apache/1.3.27 (Unix)
mod_gzip/1.3.26.1a mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.6h*
** 
The loaded modules section shows Apache and Apache::Request to be
loaded.
 
Any ideas ?
 
Thanks
 
Gareth Kirwan
Programming  Development,
Thermeon Europe Ltd,
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Tel: +44 (0) 1293 864 303
Thermeon Europe e-Card: gbjk
http://www.thermeoneurope.com/e-Card/?uid=gbjk


--

__
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


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


Re: Apache 2.0.47, mod_perl.c

2003-08-21 Thread Perrin Harkins
On Thu, 2003-08-21 at 03:38, John Francis Lee wrote:
 I have the existing apache rpm 2.0.40 installed on rh 8.0
 
 Not finding an rpm for apache 2.0.47, I downloaded, compiled and
 installed the source.

What are you trying to do?  Are you trying to get mod_perl working?  You
mentioned CGI scripts before.  If you're not trying to run mod_perl, the
mod_perl RPMs are not going to help you much.

- Perrin


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



RE: Apache installation not accepting perl-script Handler

2003-08-21 Thread Gareth Kirwan
Works a treat Stas, thank you very much.

Ironically I've been using mod perl for a long time, but I've never known
that it had to have a PerlHandler of Apache::Registry...
Mainly because the module discription states that the module is used for
running existing mod_cgi scripts under mod_perl.

I normally use mod_perl through Mason... which does the funky magic all on
it's own.

Cheers

G

 -Original Message-
 From: Stas Bekman [mailto:[EMAIL PROTECTED]
 Sent: 21 August 2003 21:39
 To: [EMAIL PROTECTED]; mod_perl Mailing List
 Subject: Re: Apache installation not accepting perl-script Handler


 [all modperl threads must be kept on the list unless
 requested otherwise]

 Gareth Kirwan wrote:
  My original e-mail had the error as it appeared in the error log.
 
  Can't locate object method request via package Apache at
  /u/virtual/devel.*.com/perl-
  bin/Inslink.pl line 8.
  [Thu Aug 21 10:31:07 2003] [error] [client 192.168.234.85]
 Premature end of
  script headers: /u/virtu
  al/devel.*.com/perl-bin/Inslink.pl

 That's an error from mod_cgi, not mod_perl.

  A perl-status on the server using Apache:Status returns to
 prove that
  mod_perl is working, as I also posted in my first email.
 
  The relevant config looks like:
 
  VirtualHost ... 
 
   Location /perl-bin/
 SetHandler perl-script
 Options +ExecCGI
   /Location
 
  /VirtualHost

 Sure, you have a broken config. Have you read the documentation?
 You miss the PerlHandler and PerlSendHeader directives

 http://perl.apache.org/docs/1.0/guide/getwet.html#Configuring_
 and_Starting_the_mod_perl_Server


 __
 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



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





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



Re: pod files

2003-08-21 Thread Philippe M. Chiasson
On Fri, 2003-08-08 at 09:48, Stas Bekman wrote:
 ColinB wrote:
  A relatively trivial point, but I notice that the pod files
  
  cgi_to_mod_perl.pod
  mod_perl.pod
  mod_perl_tuning.pod
 
 these files are a history and they don't really exist any longer, other than 
 in the distibution (should probably be removed, Philippe?).

Last modified on : 2000/11/25 by stas himself ;-)

If you say they should be forcibly deprecated, no problem.

A quick grep showed that those documents are still refered to:

cgi_to_mod_perl.pod:
 INSTALL.win32
 SUPPORT

mod_perl.pod:
 faq/mod_perl_cgi.pod
 faq/mod_perl_faq.pod


But if this info has all moved to perl.apache.org, I don't see why I
can't remove those, and update the documentation referring to.

If nobody objects, I'll be changing it tomorrow.

Gozer out.

  which were supplied with mod_perl 1 are missing from mod_perl 2
  (perhaps because they need re-writing?)
 
 They were integrated into the docs at perl.apache.org about 3-4 years ago.
 
  Is it indended to include these in the final mod_perl 2 release?
 
 mod_perl 2.0 comes with its own docs in the docs/ dir.
 
 __
 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
 
 


signature.asc
Description: This is a digitally signed message part


Re: Apache 2.0, mod_perl filter question

2003-08-21 Thread Stas Bekman
Ilia Rassadzin wrote:
Hello mod_perl,

I have some problems with filtering HTTPS traffic.
I modified for my needs FilterSnoop module from Stas
Bekman filter tutorial. It perfectly sees HTTP data,
but not HTTPS.
Does anyone have any suggestions(ideas) about how to
implement a filter which will see HTTPS?
Thanks in advance
I need more input from you. Are you trying to filter an encrypted data stream?

mod_perl connection filters, happen after the incoming data has been decrypted 
and the outgoing data hasn't been yet encrypted.

__
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


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