ok, just a follow up on my current state of despiration:
I tried
yum install php-mysql
after php was installed (mysql was already running on this machine) and I didn't notice at the time but it required mysql 4.1.20 to be installed over the top(?) of mysql 4.0.20.
Code:
I will do the following:
[update: php 5.0.4-13.rhel3.art.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: php-mysql 5.0.4-13.rhel3.art.i386]
[deps: php-pear 5.0.4-13.rhel3.art.i386]
[deps: php-ldap 5.0.4-13.rhel3.art.i386]
[deps: mysql 4.1.20-1.art.rhel3.art.i386]
[deps: php-imap 5.0.4-13.rhel3.art.i386]
Is this ok [y/N]: y
Downloading Packages
......
.....
This caused some problems as I later discovered that "service mysql restart" produced a "unrecognized service" error and mysql was no longer operating.
I quickly reinstalled mysql from the 3 rpms I had on the server (Mysql client, Mysql server, and MySQL-shared-compat all of version 4.0.20-0.i386.rpm)
This got mysql back running.
So to get php so it has mysql support, I've been told I need to do "yum install php-mysql" but when I check it says that mysql is not on the list of installed packages and again attempts to install ver 4.1.20:
Code:
[B]# yum info php-mysql[/B]
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 3ES - Atomic PSA-Compatible RPMS
Server: Red Hat Linux 3ES - i386 - Base
Server: Atomic Rocket Turtle - 3ES - SW-Soft PSA 7.5 RPMS
Server: Red Hat Linux 3ES - Updates
Finding updated packages
Downloading needed headers
Looking in Available Packages:
Name : php-mysql
Arch : i386
Version: 5.0.4
Release: 13.rhel3.art
Size : 376.59 kB
Group : Development/Languages
Repo : Atomic Rocket Turtle - 3ES - Atomic PSA-Compatible RPMS
Summary: A module for PHP applications that use MySQL databases.
Description:
The php-mysql package contains a dynamic shared object that will add
MySQL database support to PHP. MySQL is an object-relational database
management system. PHP is an HTML-embeddable scripting language. If
you need MySQL support for PHP applications, you will need to install
this package and the php or mod_php package.
Looking in Installed Packages:
[B]# yum info mysql[/B]
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 3ES - Atomic PSA-Compatible RPMS
Server: Red Hat Linux 3ES - i386 - Base
Server: Atomic Rocket Turtle - 3ES - SW-Soft PSA 7.5 RPMS
Server: Red Hat Linux 3ES - Updates
Finding updated packages
Downloading needed headers
Looking in Available Packages:
Name : mysql
Arch : i386
Version: 4.1.20
Release: 1.art.rhel3.art
Size : 6.95 MB
Group : Applications/Databases
Repo : Atomic Rocket Turtle - 3ES - Atomic PSA-Compatible RPMS
Summary: MySQL client programs and shared library.
Description:
MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
client/server implementation consisting of a server daemon (mysqld)
and many different client programs and libraries. This package
contains the MySQL client programs, the client shared library, and
generic MySQL files.
Looking in Installed Packages:
#
So it appears that yum isn't detecting mysql (???) so it always attempts to install it.
If I decide to install the 4.1.20 version of mysql, this happens:
Code:
[B]# yum install php-mysql[/B]
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 3ES - Atomic PSA-Compatible RPMS
Server: Red Hat Linux 3ES - i386 - Base
Server: Atomic Rocket Turtle - 3ES - SW-Soft PSA 7.5 RPMS
Server: Red Hat Linux 3ES - Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
.Dependencies resolved
I will do the following:
[install: php-mysql 5.0.4-13.rhel3.art.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: mysql 4.1.20-1.art.rhel3.art.i386]
Is this ok [y/N]: y
Downloading Packages
Getting php-mysql-5.0.4-13.rhel3.art.i386.rpm
php-mysql-5.0.4-13.rhel3. 100% |=========================| 151 kB 00:00
Getting mysql-4.1.20-1.art.rhel3.art.i386.rpm
mysql-4.1.20-1.art.rhel3. 100% |=========================| 3.3 MB 00:03
Running test transaction:
Test transaction complete, Success!
mysql 100 % done 1/4
php-mysql 100 % done 2/4
Erasing: MySQL-server 3/4
Erasing: MySQL-client 4/4
Installed: php-mysql 5.0.4-13.rhel3.art.i386
Dep Installed: mysql 4.1.20-1.art.rhel3.art.i386
Transaction(s) Complete
[B]# service mysql restart
mysql: unrecognized service[/B]
Now php stands at version 5, compiled with no mysql, gd, or all sorts of other basic things. I removed the php-mysql package that yum installed and built mysql with some trusty 4.0.20 rpms. This got mysql working at least.
I have read that some people enabled mysql support by changing their php.ini file. Apparently in the mysql section they enter or uncomment the line
My mysql section of the php.ini file only says this (took out comments)
Code:
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.trace_mode = Off
Not much interesting. In fact, I see no mension of *.so extension files anywhere in php.ini
Code:
# locate mysql.so
/usr/lib/php/modules/mysql.so
If I try to be sneeky and add this to my php.ini file then restart apache, nothing changes. phpinfo() doesn't show that mysql.so is a loaded module under apache2handler or 'Additional Modules'.
Help!
?
!