[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: probem testing mod_perl post-install: mod_perl API works perfect,
From:       Christine Jamison <tech-help () nwmagic ! net>
Date:       2006-07-21 5:57:04
Message-ID: 44C06CB0.90104 () nwmagic ! net
[Download RAW message or body]

Sorry for the delay in replying - been a BITCH of a week!  Let's try 
responses in green:

Philip M. Gollucci wrote:

> > and mod_perl CGI:
> > 
> > 
> > > #!/usr/bin/perl
> > > print "Content-type: text/plain\r\n\r\n";
> > > print "mod_perl (1) rules!\n";
> > > 
> > > 
> Is that the path to the SAME perl you compiled mod_perl with.  Also, I didn't \
> notice it earlier, but you probably want mod_perl-1.29 instead of 1.25.
> (Perl Environment from Apache::Status will tell you)
> 
> 
Yes, it is the same Perl I compiled. Yes, I want mod_perl-1.29, but I 
want to get what I have WORKING, then I'll go thru the updates...

> PerlRequire    /usr/local/apache/perl/startup.pl
> PerlModule     Apache::Registry
> Alias          /perl/ /usr/local/apache/perl/
> <Location /perl/>
> SetHandler           perl-script
> PerlHandler          Apache::Registry
> Options              +ExecCGI
> Allow from all
> PerlSendHeader       On
> </Location>
> 
> Take everything out of your httpd.conf config relating to mod_perl and start with \
> the above. Then add in the /modperl/ location.  Then add in the mod_cgi \
> (/cgi-bin/). 
> 
Done.

> Double check and make sure you don't have mod_cgi competing for the /perl/ location \
> via a stray ScriptAlias or Location, etc...
> 
> 
There was a conflict, but it is now removed.

> Whats in the startup.pl ?
> 
> 
NOT MUCH!!

#/usr/bin/perl
#       startup.pl
1;

> Also, up your httpd's LogLevel to 'debug'
> 
> 
It already was.

> Paste your access_log, error_log after trying this.
> 
> 
Access.log:
192.168.2.202 - - [20/Jul/2006:22:45:08 -0700] "GET /perl/mod_perl1.pl 
HTTP/1.1"
200 -
192.168.2.202 - - [20/Jul/2006:22:45:31 -0700] "GET /perl/mod_perl3.pl 
HTTP/1.1"
200 -
192.168.2.202 - - [20/Jul/2006:22:45:39 -0700] "GET /perl/mod_perl1.pl 
HTTP/1.1"
200 -
192.168.2.202 - - [20/Jul/2006:22:45:43 -0700] "GET /perl/mod_perl2.pl 
HTTP/1.1"
200 50
192.168.2.202 - - [20/Jul/2006:22:45:46 -0700] "GET /perl/mod_perl3.pl 
HTTP/1.1"
200 -
192.168.2.202 - - [20/Jul/2006:22:45:47 -0700] "GET /perl/mod_perl3.pl 
HTTP/1.1"
200 -

Error.log:

[Thu Jul 20 22:45:20 2006] [notice] SIGHUP received.  Attempting to restart
[Thu Jul 20 22:45:20 2006] [info] mod_unique_id: using ip addr 68.166.55.106
[Thu Jul 20 22:45:21 2006] [notice] Apache/1.3.17 (Unix) mod_ssl/2.8.0 
OpenSSL/0
.9.6m PHP/4.3.10 mod_perl/1.25 configured -- resuming normal operations
[Thu Jul 20 22:45:21 2006] [info] Server built: Jul 14 2006 02:13:18

> [Sorry, I mis-read the first post I though mod_cgi was not working.]
> 
> 
<smile> No problem. I appreciate the help.

> ------------------------------------------------------------------------
> Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
> Consultant / http://p6m7g8.net/Resume/resume.shtml
> Senior Software Engineer - TicketMaster - http://ticketmaster.com
> 1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F
> 
> "In all that I've done wrong I know I must have done something right to
> deserve a hug every morning and butterfly kisses at night."
> 
> 
> 


[Attachment #3 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry for the delay in replying - been a BITCH of a week!&nbsp; Let's try
responses in <font color="#009900">green</font>:<br>
<br>
Philip M. Gollucci wrote:<br>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">and mod_perl CGI:
    </pre>
    <blockquote type="cite">
      <pre wrap="">#!/usr/bin/perl
print "Content-type: text/plain\r\n\r\n";
print "mod_perl (1) rules!\n";
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->Is that the path to the SAME perl you compiled mod_perl with.  \
Also, I didn't notice it earlier, but you probably want mod_perl-1.29 instead of \
1.25. (Perl Environment from Apache::Status will tell you)
  </pre>
</blockquote>
<font color="#009900">Yes, it is the same Perl I compiled. Yes, I want
mod_perl-1.29, but I want to get what I have WORKING, then I'll go thru
the updates...</font><br>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <pre wrap="">
PerlRequire    /usr/local/apache/perl/startup.pl
PerlModule     Apache::Registry
Alias          /perl/ /usr/local/apache/perl/
&lt;Location /perl/&gt;
  SetHandler           perl-script
  PerlHandler          Apache::Registry
  Options              +ExecCGI
  Allow from all
  PerlSendHeader       On
&lt;/Location&gt;

Take everything out of your httpd.conf config relating to mod_perl and start with the \
above. Then add in the /modperl/ location.  Then add in the mod_cgi (/cgi-bin/).
  </pre>
</blockquote>
<font color="#009900">Done.</font><br>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <pre wrap="">
Double check and make sure you don't have mod_cgi competing for the /perl/ location \
via a stray ScriptAlias or Location, etc...
  </pre>
</blockquote>
<font color="#009900">There was a conflict, but it is now removed.</font><br>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <pre wrap="">
Whats in the startup.pl ?
  </pre>
</blockquote>
<font color="#009900">NOT MUCH!!<br>
<br>
#/usr/bin/perl<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; startup.pl<br>
1;</font><br>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <pre wrap="">
Also, up your httpd's LogLevel to 'debug'
  </pre>
</blockquote>
<font color="#009900">It already was.</font><br>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <pre wrap="">
Paste your access_log, error_log after trying this.
  </pre>
</blockquote>
<font color="#009900">Access.log:<br>
192.168.2.202 - - [20/Jul/2006:22:45:08 -0700] "GET /perl/mod_perl1.pl
HTTP/1.1"<br>
200 -<br>
192.168.2.202 - - [20/Jul/2006:22:45:31 -0700] "GET /perl/mod_perl3.pl
HTTP/1.1"<br>
200 -<br>
192.168.2.202 - - [20/Jul/2006:22:45:39 -0700] "GET /perl/mod_perl1.pl
HTTP/1.1"<br>
200 -<br>
192.168.2.202 - - [20/Jul/2006:22:45:43 -0700] "GET /perl/mod_perl2.pl
HTTP/1.1"<br>
200 50<br>
192.168.2.202 - - [20/Jul/2006:22:45:46 -0700] "GET /perl/mod_perl3.pl
HTTP/1.1"<br>
200 -<br>
192.168.2.202 - - [20/Jul/2006:22:45:47 -0700] "GET /perl/mod_perl3.pl
HTTP/1.1"<br>
200 -<br>
<br>
Error.log:<br>
<br>
[Thu Jul 20 22:45:20 2006] [notice] SIGHUP received.&nbsp; Attempting to
restart<br>
[Thu Jul 20 22:45:20 2006] [info] mod_unique_id: using ip addr
68.166.55.106<br>
[Thu Jul 20 22:45:21 2006] [notice] Apache/1.3.17 (Unix) mod_ssl/2.8.0
OpenSSL/0<br>
.9.6m PHP/4.3.10 mod_perl/1.25 configured -- resuming normal operations<br>
[Thu Jul 20 22:45:21 2006] [info] Server built: Jul 14 2006 02:13:18<br>
</font>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <pre wrap="">
[Sorry, I mis-read the first post I though mod_cgi was not working.]
  </pre>
</blockquote>
<font color="#009900">&lt;smile&gt; No problem. I appreciate the help.</font><br>
<blockquote cite="mid44B9A590.4050804@p6m7g8.com" type="cite">
  <pre wrap="">
------------------------------------------------------------------------
Philip M. Gollucci (<a class="moz-txt-link-abbreviated" \
href="mailto:pgollucci@p6m7g8.com">pgollucci@p6m7g8.com</a>) 323.219.4708 Consultant \
/ <a class="moz-txt-link-freetext" \
href="http://p6m7g8.net/Resume/resume.shtml">http://p6m7g8.net/Resume/resume.shtml</a>
 Senior Software Engineer - TicketMaster - <a class="moz-txt-link-freetext" \
href="http://ticketmaster.com">http://ticketmaster.com</a> 1024D/A79997FA F357 0FDD \
2301 6296 690F  6A47 D55A 7172 A799 97F

"In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night."

  </pre>
</blockquote>
<br>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic