Debian 4.0 Etch apache-perl "File does not exist: ... /server-info"
debian-user:
I have a Debian 4.0 Etch virtual machine and have installed apache-perl. I
would like to be able to obtain server information by browsing to /server-info.
I believe I have uncommented the relevant lines in httpd.conf (and restarted
Apache):
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".your_domain.com" to match your domain to enable.
#
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0
Allow from 192.168.0.0/255.255.0.0
</Location>
When I browse to http://vmdeb40.holgerdanske.com/server-info, I get an HTTP 404
error (not found) page. /var/log/apache-perl/error.log says:
[Sun Aug 31 14:22:30 2008] [error] [client 192.168.0.10] File does not
exist: /home/dpchrist/apache.holgerdanske.com/www/server-info
My guess is that mod_info.c isn't loaded (or compiled in).
'locate mod_info' returns nothing.
http://www.debian.org/distrib/packages#search_contents makes me wonder if I need
to install apache-common?
/etc/apache-perl/modules.conf states:
# Autogenerated file - do not edit!
# This file is maintained by the apache-perl package.
# To update it, run the command:
# /usr/sbin/apache-modconf apache-perl
man apache-modconf states:
In order for apache-modconf to recognize a module, this needs to
have a correctly formatted .info file in /usr/lib/apache/1.3/
/usr/lib/apache/1.3 seems to have *.info files for many Apache modules:
# l /usr/lib/apache/1.3/*mod_info*
/usr/lib/apache/1.3/080mod_info.info
/usr/lib/apache/1.3/mod_info.so
Fumble around with apache-modconf. This incantation seems to do something:
# apache-modconf apache-perl enable mod_info
Replacing config file /etc/apache-perl/modules.conf with new version
Take a look:
# grep mod_info /etc/apache-perl/modules.conf
LoadModule info_module /usr/lib/apache/1.3/mod_info.so
Browse to /server-info. Nope.
Restart Apache:
# apache-perlctl graceful
/usr/sbin/apache-perlctl graceful: httpd gracefully restarted
and browse again:
Apache Server Information
Server Settings, mod_perl.c, mod_setenvif.c, mod_expires.c, mod_auth.c,
mod_access.c, mod_rewrite.c, mod_alias.c, mod_userdir.c, mod_cgi.c, mod_dir.c,
mod_autoindex.c, mod_info.c, mod_status.c, mod_negotiation.c, mod_mime.c,
mod_mime_magic.c, mod_log_config.c, mod_macro.c, mod_so.c, http_core.c
--------------------------------------------------------------------------------
Server Version: Apache/1.3.34 (Debian) mod_perl/1.29
Server Built: Jan 18 2008 19:19:05
API Version: 19990320:18
...
Much better! :-)
HTH,
David
Reply to: