PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache2 mit mod_auth_mysql



jano
01.03.08, 18:29
Hi

Mein mod_auth_mysql will irgendwie nicht, und nach drei Stunden erfolglosem gegoogle hab ich mich entschlossen das Problem hier zu posten.

Ich hab das Modul mittels:

/usr/sbin/apxs2 -cia -lmysqlclient mod_auth_mysql.c


integriert.
Ausgabe:


/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
mod_auth_mysql.c:144:40: warning: "/*" within comment
mod_auth_mysql.c:113: warning: 'version' defined but not used
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_auth_mysql.la -lmysqlclient -rpath /usr/lib64/apache2 -module -avoid-version mod_auth_mysql.lo
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' mod_auth_mysql.la /usr/lib64/apache2
/usr/lib64/apr-1/build/libtool --mode=install cp mod_auth_mysql.la /usr/lib64/apache2/
cp .libs/mod_auth_mysql.so /usr/lib64/apache2/mod_auth_mysql.so
cp .libs/mod_auth_mysql.lai /usr/lib64/apache2/mod_auth_mysql.la
cp .libs/mod_auth_mysql.a /usr/lib64/apache2/mod_auth_mysql.a
ranlib /usr/lib64/apache2/mod_auth_mysql.a
chmod 644 /usr/lib64/apache2/mod_auth_mysql.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib64/apache2
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib64/apache2

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib64/apache2/mod_auth_mysql.so
activating auth_mysql

Wenn ich nun den apache restarte erhalte ich folgende Fehlermeldung:


httpd2-prefork: Syntax error on line 116 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Can't locate API module structure `mysql_auth_module' in file /usr/lib64/apache2/mod_auth_mysql.so: /usr/lib64/apache2/mod_auth_mysql.so: undefined symbol: mysql_auth_module


Gruß

Jan

cane
01.03.08, 19:57
http://sourceforge.net/forum/forum.php?thread_id=880395&forum_id=99006

mfg
cane