php-mysql package

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
benski
Posts: 1
Joined: Thu Sep 02, 2004 9:03 pm

php-mysql package

Post by benski »

Hi All,

New member here, just trying to get around the mysql_connect() problem. I assumed that by compiling php from source --with-mysql, I'd get the proper mysql.so shared object created, but that didn't happen. I did so some searching and faq reading, but I'm having a hard time finding this rpm, or source - which would be nice, but not necessary.

A little info:

Redhat 9 2.4.20-8smp #1 SMP

Apache 1.3.31 [from source --enable-module=so]
PHP 5.0.1 [from source --with-mysql --with-snmp --with-apxs=/usr/local/apache/bin/apxs]

MySQL-devel-3.23.56-1
MySQL-3.23.56-1
MySQL-shared-3.23.56-1
MySQL-client-3.23.56-1

rrdtool-1.0.42
net-snmp-5.0.8
cacti-0.8.5a

Test php page comes up no problem.
config.php is edited with the right db username/password, and can be accessed at the command line.

Any info is appreciated.

Thanks,
-Ben
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

The rpms you are looking for can be found here:
ftp://fr.rpmfind.net/linux/redhat/updat ... 2.i386.rpm
ftp://ftp.redhat.com/pub/redhat/linux/u ... .2.src.rpm

I am not sure however how does it work with self compiled PHP 5. You will have more luck with original PHP rpm coming with your RH distribution.

- Piotr
Guest

Post by Guest »

Make sure you have the cgi php built too, and that its php.ini has the correct extension loaded.
Hip
Posts: 18
Joined: Wed Sep 01, 2004 5:21 am
Location: Switzerland

Post by Hip »

Hi,

> PHP 5.0.1 [from source --with-mysql --with-snmp --with-apxs=/usr/local/apache/bin/apxs]

And if you try to include the full path to mysql, does it work better ? Ex (from the php dir) :

Code: Select all

./configure --with-mysql=/usr/local/mysql --with-snmp --with-apxs=/usr/local/apache/bin/apxs
Of course adjust the path to mysql (if you have installed the rpm, this would probably be /usr).

Hip
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest