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
php-mysql package
Moderators: Developers, Moderators
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
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
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) :
Of course adjust the path to mysql (if you have installed the rpm, this would probably be /usr).
Hip
> 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
Hip
Who is online
Users browsing this forum: No registered users and 1 guest