- To: slug@xxxxxxxxxxx
- Subject: [SLUG] Apache probs - Invalid command 'Alias', perhaps mis-spelled
- From: Michael Lake <Mike.Lake@xxxxxxxxxx>
- Date: Mon, 04 Jul 2005 14:08:56 +1000
- Organization: UTS
- User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1
Hi all
Mike wrote...
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.
..... snipped the rest ....
The problem was many and varied. For a start a Debian upgrade some time ago
had added the following lines to my httpd conf file:
# Please keep this LoadModule: line here, it is needed for installation.
Include /etc/apache-perl/modules.conf
Include /etc/apache/modules.conf
Mistake!: I'm running apache-perl and not apache and it was including two module.conf
files which were slightly different. Thats why I was getting errors like
"module config_log_module is already loaded, skipping"
I commented out the include for /etc/apache/modules.conf and restarted apache-perl.
I also needed to manually add "LoadModule auth_mysql_module /usr/lib/apache/1.3/mod_auth_mysql.so"
to the modules.conf file cause for some reason "/usr/sbin/apache-modconf apache-perl" updated
modules.conf but didn't add the required line.
Then I just got the errors about:
Invalid command 'AuthMySQLCryptedPasswords', perhaps mis-spelled .....
I had had this for 4 years in httpd.conf:
AuthType Basic
AuthMySQLCryptedPasswords On
AuthMySQLHost
AuthMySQLUser
AuthMySQLUserTable
AuthMySQLNameField
AuthMySQLPasswordField
But now it seems the interface has changed. Even Crypt has changed to Encrypted!
I found in /usr/lib/apache/1.3/500mod_auth_mysql.info the list of valid directives.
I then renamed each one above to the ones below one by one until apache-perl-ctl configtest
didn't complain anymore:
AuthType Basic
AuthMySQL_Encrypted_Passwords On
AuthMySQL_Host
AuthMySQL_User
AuthMySQL_Password_Table
AuthMySQL_UserName_Field
AuthMySQL_Password_Field
And bingo apache-perl then started fine.
I really need a course in Debian System Administration.
Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments. If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.