RE: [linux-392] Mod_auth_mysql

From: user 4.
Sent on: Monday, December 15, 2008 4:23 PM

I got the mod_auth_mysql module loaded an apache restarted.

I don’t know if it’s going to actually work, but it’s taken me since 10a.m. to get this far.

 


From: [address removed] [mailto:[address removed]] On Behalf Of Michele
Sent: Monday, December 15, 2008 3:49 PM
To: [address removed]
Subject: RE: [linux-392] Mod_auth_mysql

 

Since, I haven’t heard back.  I’m guessing this is not an approach.

I went back to trying to create the module via apxs.

It looks good when I run it.

apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lm -lz mod_auth_mysql.c

/usr/sbin/httpd/usr/local/src/httpd-2.2.8/srclib/apr/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/src/httpd-2.2.8/include  -I/usr/local/src/httpd-2.2.8/srclib/apr/include   -I/usr/local/src/httpd-2.2.8/srclib/apr-util/include -I/usr/local/src/httpd-2.2.8/srclib/apr-util/xml/expat/lib -I/usr/local/src/httpd-2.2.8/os/unix -I/usr/include/mysql  -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo

/usr/local/src/httpd-2.2.8/srclib/apr/libtool --silent --mode=link gcc -o mod_auth_mysql.la  -L/usr/lib/mysql -lm -lz -rpath /usr/local/src/httpd-2.2.8/modules -module -avoid-version    mod_auth_mysql.lo

I added a loadmodule line the httpd.conf file.

However, when I run ./apachectl restart, I get:

apachectl: Configuration syntax error, will not run "restart":

httpd: Syntax error on line 199 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_auth_mysql.so into server: /etc/httpd/modules/mod_auth_mysql.so: undefined symbol: mysql_select_db

Can anyone see where I’m linking incorrectly to the mysql library?  I’m thinking mysql_select_db should have been in that library.


From: [address removed] [mailto:[address removed]] On Behalf Of Michele
Sent: Monday, December 15, 2008 1:02 PM
To: [address removed]
Subject: RE: [linux-392] Mod_auth_mysql

 

I’m running redhat apache v. 2.2.8 Linux.

My hosting provider doesn’t provide the source code.

I found all the apr modules I needed were in the http source srclib directory.

Because my environment is not setup correctly because I’m not actually installing apache but simply trying to create a mod_auth_mysql module, I thought I could put mod_auth_mysql in the aaa directory, modify the makefiles to include mysql and compile.

This worked sortof.  I’ve successful compiled mod_auth_mysql in the httpd directory.  However, I have an .o file, not a .so file.  Does anyone know the difference between a .o and .so file?  I’d like to somehow use this .o file to include as the module, but I don’t know how to get the end product.

 


From: [address removed] [mailto:[address removed]] On Behalf Of William mantly
Sent: Monday, December 15, 2008 11:00 AM
To: [address removed]
Subject: Re: [linux-392] Mod_auth_mysql

 

What OS are you running?

On Mon, Dec 15, 2008 at 10:44 AM, Michele <[address removed]> wrote:

I'm trying to install mod_auth_mysql.

 

My hosting provider does not have the apache source code on my server.

 

I downloaded httpd 2.2.8 and apr 1.3.2.

 

I'm not sure if that's the right apr.

 

However, apxs is complaining that apr.h and apr_tables.h does not exist.

 

Does anyone know what other libraries I need to compile mod_auth_mysql.

 

Michele





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Michele ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Michele, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA






--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by William mantly ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about William mantly, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Michele ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Michele, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Michele ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Michele, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy