Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] Apache probs - Invalid command 'Alias', perhaps mis-spelled


Hi all

I just had to upgrade a apache on Debian as it was complaining that a module was missing an info file and without it it woulnt restart apache.
(it was Error: mod_auth_mysql.so does not have a corresponding .info file.)
This meant that I had to upgrade a few packages due to dependencies e.g. a newer mod_auth_mysql required a newer libapache-mod-perl. Now I have more probs.

Im running: apache-perl 1.3
	libapache-mod-perl
	libapache-mod-auth-mysql

Im getting this:

Syntax error on line 393 of /etc/apache/httpd2.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/bin/apache-perl-ctl2 start: httpd could not be started

I suspect I have a problem in the modules.conf file. Here is the full info:
(This is actually a second apache im running, the first I have not touched)

vs:/etc/apache-perl# apache-perl-ctl2 start
[Sun Jul  3 22:39:17 2005] [warn] module config_log_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module mime_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module negotiation_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module status_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module autoindex_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module dir_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module cgi_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module userdir_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module alias_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module rewrite_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module access_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module auth_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module expires_module is already loaded, skipping
[Sun Jul  3 22:39:17 2005] [warn] module setenvif_module is already loaded, skipping
Syntax error on line 393 of /etc/apache/httpd2.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/bin/apache-perl-ctl2 start: httpd could not be started

The alias is PERFECTLY VALID Alias /something /home/someone/somethingelse/html

and my modules.conf is this:

vs:/etc/apache-perl# cat modules.conf # 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
ClearModuleList
AddModule mod_so.c
AddModule mod_macro.c
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
AddModule mod_perl.c
vs:/etc/apache-perl# Googling shows probs like this with Apache2 but Im running apache-perVersion: 1.3.33-6
Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.