Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old August 14th, 2000, 04:44 AM
romanka romanka is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Canada
Posts: 16 romanka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!!


Reply With Quote
  #2  
Old August 14th, 2000, 06:50 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #3  
Old August 14th, 2000, 10:04 PM
romanka romanka is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Canada
Posts: 16 romanka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.....

Reply With Quote
  #4  
Old August 14th, 2000, 10:32 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>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.


Reply With Quote
  #5  
Old November 11th, 2000, 03:43 AM
Wangster8 Wangster8 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 Wangster8 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old November 11th, 2000, 09:33 AM
reload reload is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 reload User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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).]

Reply With Quote
  #7  
Old December 13th, 2000, 03:46 PM
adelgado adelgado is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 1 adelgado User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > mod_so and mod_auth_mysql again!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway