|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
hi, how to compile these modules and work with apache and php? when i typed httpd -l it showed the server had built-in mod_so.c, but there wan't a line about mod_so in my httpd.conf file, or should I write anything in the conf file? whenever i tried, it still didn't work....plz help!!
|
|
#2
|
|||
|
|||
|
Start here -> http://www.devshed.com/Talk/Forums/Forum15/HTML/000137.html
>>when i typed httpd -l it showed the server had built-in mod_so.c As I said previously, if you see mod_so.c, then you already got mod_so. The mostly seen problem with auth_mysql module is the problem with libmysqlclient.so.6 Okay, let's begin.. 1) Verify where libmysqlclient.so.6 is. If you installed everything of mysql stuffs in /usr/local/mysql, then I believe it is in /usr/local/mysql/lib/mysql. My libmysqlcient.so.6 is in /usr/local/lib/mysql. Let's use /usr/local/lib/mysql as an example. 2) Make a symlink of it to libmysqlclient.so only if libmysqlclient.so is not there. ln -s /usr/local/lib/mysql/libmysqlclient.so.6 /usr/local/lib/mysql/libmysqlclient.so 3) Stop apache by running "/path/to/apachectl stop" (if it's running) 4) cp mod_auth_mysql-2.20.tar.gz /usr/local/src/ 5) cd /usr/local/src 6) tar -zxvf mod_auth* 7) cd mod_auth_mysql-2.20 8) ./configure --with-mysql=/usr/local --with-apxs=/usr/local/sbin/apxs (if yours is in /usr/local/mysql/lib/mysql, use --with-mysql=/usr/local/mysql instead) Also find out where 'apxs' is. 9) make 10) Do not install yet, examine your /usr/local/src/mod_auth_mysql-2.20/Makefile first. Check and see if you have such line: APXS_LDFLAGS = -L/usr/local/lib/mysql -lmysqlclient, if so, continue.. You can further examine your Makefile, you should see a line like this: INSATLL_IT = $(APXS) -i -a -n auth_mysql libauth_mysql.so The -a flag from "man 8 apxs" as follow: "This activates the module by automatically adding a correspoinding LoadModule line to Apache's httpd.conf configuration file, or by enabling it if it already exists." >.should I write anything in the conf file? The answer is no since the -a flag already done it for you. 11) make install If it still doesn't work, please be more specific. |
|
#3
|
|||
|
|||
|
Hi freebsd, thanks for your help.....
Which apxs did you mean? I have 2 apxs files, one is in /usr/sbin/ , the other one is inside apache directory, but I tried both in the ./configure, seemed both didn't work, when I used --with-apxs=/usr/local/apache/bin/apxs, after typed make, it said apxs error: "no DSO support for Apache avaiablr in your platform. MAke sure the apache module mod_so is compiled into your server binary /usr/local/apache/bin/httpd". when i used the one with --with-apxs=/usr/sbin/apxs, after make, it said "cp libauth_mysql.so: No such file or directory apxs:Break:Command failed with rc=65536 make:*** [install] Error1 weired eh.....so I'm totally lost...but I had all the things that you've mentioned..... |
|
#4
|
|||
|
|||
|
>>MAke sure the apache module mod_so is compiled into your server binary
/usr/local/apache/bin/httpd" Then you should reinstall Apache. You may follow the example at http://www.devshed.com/Talk/Forums/Forum15/HTML/000020.html (Step 4-7). >>when i used the one with --with-apxs=/usr/sbin/apxs Your apxs shouldn't be there UNLESS you are running Redhat and installed Apache's RPM. You definitely need to uninstall it "rpm -e apache". Also remove the apache you built in /usr/local/apache, simply remove everything. >>but there wan't a line about mod_so in my httpd.conf file Delete your httpd.conf as well. When you reinstall PHP, be sure not to follow Step 10 at http://www.devshed.com/Talk/Forums/Forum15/HTML/000020.html It should be cp php.ini-dist /usr/local/etc/php.ini instead. Please note that my example used DSO method which should be easier and better way. |
|
#5
|
|||
|
|||
|
I've seen this error posted by several people now and as of yet have not seen a solution.
--- :/usr/src/mod_auth_mysql-2.20# make /usr/local/apache/bin/apxs -i -a -n auth_mysql libauth_mysql.so cp libauth_mysql.so /usr/local/apache/libexec/libauth_mysql.so cp: libauth_mysql.so: No such file or directory apxs:Break: Command failed with rc=1 make: *** [install] Error 1 ---- Here is the Makefile: ---- # Generated automatically from Makefile.in by configure. CC = gcc AR = ar rc INSTALL_IT = $(APXS) -i -a -n auth_mysql libauth_mysql.so INCLUDE = -I. -I/usr/local/apache/include BINNAME = @BINNAME@ RANLIB = ranlib PROF_CFLAGS = CFLAGS_SHLIB = -fpic LDFLAGS_SHLIB = -shared -L/usr/local/lib LDFLAGS_SHLIB_EXPORT = -rdynamic CPPFLAGS = CFLAGS = -g -O2 -O2 $(CFLAGS_SHLIB) $(CPPFLAGS) $(INCLUDE) $(PROF_CFLAGS) LDFLAGS = $(LDFLAGS_SHLIB) $(LDFLAGS_SHLIB_EXPORT) REGCFLAGS = $(CFLAGS) APXS = /usr/local/apache/bin/apxs APXS_LDFLAGS = -L/usr/local/lib/mysql -lmysqlclient WARNING_LEVEL = @WARNING_LEVEL@ install: $(INSTALL_IT) @cat .install_notes ---- I don't know much about makefiles but I think clearly the Makefile is bad. It has no rule for actually "making" the module. It only has a rule for installing it and obviously since it has never been made in the first place it just gives an error... I tried manually hacking the Makefile with no succees... I really need this module working for a project that has to be finished very soon. Any help would be deeply apreciated. Thank you. |
|
#6
|
|||
|
|||
|
Where is mod_auth_mysql for apache 3.14
the old one no werky URL and I am too deep into this mod to get out!! Thanks, reload I was dismayed looking for signs of Life from mod_auth_mysql.... but the site is gone and no new patch ;( I am just a hacker so I put this file from apache/1.3.12/src/includes 'alloc.h' and put it here: /apche1.3.14/src/includes/ And all is well URL Good Luck! [This message has been edited by reload (edited December 13, 2000).] |
|
#7
|
|||
|
|||
|
I am getting the same problem from my Makefile...
Here is the result from 'make': /usr/sbin/apxs -i -a -n auth_mysql libauth_mysql.so cp libauth_mysql.so /usr/lib/apache/libauth_mysql.so cp: cannot stat `libauth_mysql.so': No such file or directory apxs:Break: Command failed with rc=65536 make: *** [install] Error 1 here is the Makefile: # Generated automatically from Makefile.in by configure. CC = gcc AR = ar rc INSTALL_IT = $(APXS) -i -a -n auth_mysql libauth_mysql.so INCLUDE = -I. -I/usr/include/apache BINNAME = @BINNAME@ RANLIB = ranlib PROF_CFLAGS = CFLAGS_SHLIB = -fPIC LDFLAGS_SHLIB = -shared -L/usr/local/lib LDFLAGS_SHLIB_EXPORT = -rdynamic CPPFLAGS = CFLAGS = -g -O2 -O2 $(CFLAGS_SHLIB) $(CPPFLAGS) $(INCLUDE) $(PROF_CFLAGS) LDFLAGS = $(LDFLAGS_SHLIB) $(LDFLAGS_SHLIB_EXPORT) REGCFLAGS = $(CFLAGS) APXS = /usr/sbin/apxs APXS_LDFLAGS = -L/usr/lib/mysql -lmysqlclient WARNING_LEVEL = @WARNING_LEVEL@ install: $(INSTALL_IT) @cat .install_notes Can someone shed some light on how to fix the Makefile, or at least tell me the compile string... Thanks KaBillions, Andy |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > mod_so and mod_auth_mysql again!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|