Re: [PHP4BETA] GET MYSQL RECOGNIZED

From: Date: Wed, 26 Apr 2000 15:35:08 +0000
Subject: Re: [PHP4BETA] GET MYSQL RECOGNIZED
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14096@lists.php.net to get a copy of this message
Try this, it's what finally worked for me. PHP4.0RC1 FreeBSD 3.2 Release ./configure' '--with-thread-safe-client' '--with-gd=/usr/local/lib/gd1.3' '--with-apxs=/usr/local/apache/bin/apxs Make sure you compile and completly install Apache with the so module working before you attempt to get PHP running. This will put a working Apache directory at /usr/local/apache' (generally) and your apxs script will be at '/usr/local/apache/bin/apxs' which is where it needs to be. As for MySQL support try pointing directly at the location of your MySQL client libs, not at your MySQL installation. This has worked for me but I'm using FreeBSD not RedHat. FreeBSD drops the client libs in /usr/local/lib/mysql/libmysqlclient.* and this is where I point to in my configure line, when I use it. I don't know about where RedHat puts libs, other than RedHat is mentioned quite often (on all maillists I have) as arranging libs in places other than most unixes/linuxes. With PHP4.0RC1 I didn't need to add this to configure, PHP added MySQL by default and it worked perfectly. I just did this last week on three new servers and it worked fine. DAve. Velanche Stewart wrote: > > Hello: > > Thanks for all of those who have submitted thier suggestions. Alas, I'm > still not able to get MySQL recognized as an extension when I use the > phpinfo() function. > > I tried several suggestions. > > 1. Tried "./configure --option1 ...-optionn | grep -i mysql". That helped me > to recognize that MySQL wasn't in the right place. I have ran the configure > for MySQL again, adding "--prefix=/usr/local/mysql" to it. But still no > change. > > 2. I tried compiling with the --with-apxs extension, even gone so far as to > add a path when it didn't work. Ultlimately, it would tell me that apxs may > be broken. I went to apxs and tweaked with it as per instructions to see the > FAQ in 4.11 section. I've made the changes as it had asked, but still it > would not recognize the script as anything less than broken via ./configure. > > 3. The last config I've attempted was the following... > > .configure --with-apache=/usr/local/src/apache/apache_1.3.12 > --with-mysql=/usr/local/mysql > > As I've stated, it's still not giving me MySQL in the extensions section. > > I could really use some advice as to how to go about this. I am using Redhat > 6.2 and MySQL 3.22.32. Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 daveg@rblc.com Web Site www.rblc.com

« previous php.version4 (#14096) next »