← Back to team overview

sslug-teknik team mailing list archive

mod_auth_mysql

 

jeg har problemer med at få mod_auth_mysql til at virke med apache 1.3.20. Håber der er en
der kan hjælpe mig, da jeg efterhånden er ved at løbe tør for ider

Jeg har prøvet at lave det hvor jeg bruger apxs til at lave et module
(arpx -i -a -c mod_auth_mysql.c -I/usr/local/include/mysql L/usr/local/lib/mysql -lmysqlclient)

og sørger for at LoadModule mysql_auth_module  libexec/mod_auth_mysql.so er i httpd.conf
men så snart jeg tilføjer 'Auth_MySQL_Info hostname user xxxx' kommer apachectrl med den her fejl

Syntax error on line 208 of /etc/httpd/httpd.conf:
Invalid command 'Auth_MySQL_Info', perhaps mis-spelled or defined by a module not included in the server
 configuration
/usr/local/bin/apachectl restart: httpd could not be started

jeg har også prøvet at kompile det static ind i httpd med
(./configure --prefix=/usr/local --sysconfdir=/etc/httpd --logfiledir=/var/log/httpd --htdocsdir=/home/httpd --activate-module=mod_auth_mysql.c --enable-module=so)

der er ingen problemer med at 'make' og 'make install' , og der kommer også infomation om
compiling and activating mod_auth_mysql.c

og det her er output fra httpd -l
httpd -l
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  mod_auth_mysql.c

men så snart jeg adder Auth_MySQL_Info hostname user xxx skrive apachectrl igen

Syntax error on line 208 of /etc/httpd/httpd.conf:
Invalid command 'Auth_MySQL_Info', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/bin/apachectl restart: httpd could not be started

og ved static compiling fjerner jeg LoadModule mysql_auth_module  libexec/mod_auth_mysql.so fra
httpd.conf

er der en der kan se ud fra det her hvad jeg gør galt ? det skal lige siges at jeg bruger
mod_auth_mysql-2.20.tar.gz

/Per Jørgensen
pej@xxxxxxxxx



Follow ups