mod_perl is in .conf file, but how to verify it's loaded?

This is a discussion on mod_perl is in .conf file, but how to verify it's loaded? within the Apache Web Server forums, part of the Web Server and Related Forums category; I have installed mod_perl on my CentOS 4 machine. I can tell: [root@SP4659a ~]# perl -Mmod_perl -le 'print mod_perl->...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2007
bennett@peacefire.org
 
Posts: n/a
Default mod_perl is in .conf file, but how to verify it's loaded?

I have installed mod_perl on my CentOS 4 machine. I can tell:

[root@SP4659a ~]# perl -Mmod_perl -le 'print mod_perl->VERSION'
1.9916

I would *assume* that the Web server has loaded it, because the
install created the file
/etc/httpd/conf.d/perl.conf
and my main /etc/httpd/conf/httpd.conf file includes the line:
Include conf.d/*.conf

And I have restarted the server since installing mod_perl, and it
restarted with no errors.

But I'd like to verify directly, from within a Perl script or from
HTTP headers or something, that the Apache webserver has loaded
mod_perl correctly -- how do I do that?

One source:
http://www.debian-administration.org/articles/216
said that I could telnet to port 80 of the machine and get the "/"
page, and if mod_perl was installed, it would be mentioned in the http
headers. But I don't see it:

[root@SP4659a ~]# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET / HTTP/1.1
Host: localhost

HTTP/1.1 200 OK
Date: Fri, 23 Feb 2007 21:13:03 GMT
Server: Apache/2.0.52 (CentOS)
Last-Modified: Thu, 11 Jan 2007 00:13:05 GMT
ETag: "908001-65-a4a5a640"
Accept-Ranges: bytes
Content-Length: 101
Connection: close
Content-Type: text/html; charset=UTF-8

<html>
[etc.]

I have also installed a Perl script that prints the values of all
environment variables, and I don't see it there either:
http://www.amazonshield.com/cgi-bin/z1/nph-showall.cgi

How can I verify that it's loaded? Or does this mean it's not
actually loaded properly?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0