From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i686) Description of problem: Apache / PHP 4.0 is installed without MySQL support. ie the spec file %config has--without_mysql option How reproducible: Always Steps to Reproduce: 1. install Red Hat 7.1, including Apache and MySQL 2. install php-based pages in html directories 3. use broswer to access pages, failure on first call to mysql (usually something like mysl_pconnect() ) Actual Results: cannot find command mysql_pconnect() Expected Results: PHP page with Mysql should have run ok Additional info: to fix it..... rpm -e php-4.0.4pl1-9 Then get the source rpm and INSTALL it, NOT --rebuild rpm -Uvh php-4.0.4pl1-9 Then edit the spec file In the %build section change --without-mysql to --with-mysql Once this modification is made then build the binary rpm as follows: rpm -bb ...... Then install the rpm rpm -ivh ..... restart Apache
Did you install the php-mysql-4.0.4pl1-9.i386.rpm package? This should have given you the mysql support for PHP without compiling it directly into PHP.
I have the same problem and I have install the php-mysql package. I guess explicitly stating --without-mysql is disabling mysql support. Just try calling phpinfo() and you'll see there is no mysql support
I rebuilt the package with --with-mysql=shared instead of --without-mysql and everything is fine now.
What's happening with this bug? Will a fixed package be uploaded soon?
standard RH 7.1 installation with apache, php and mysql. /etc/php.ini changed: extension=mysql.so (; removed) restart httpd: /var/log/httpd/error_log reports: PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/php4/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 reason :/usr/lib/php4/mysql.so missing File is not in the packages mentioned above. How do I get mysql to run with PHP?
My problem is solved. I forgot to install the php-mysql package which contains mysql.so. PHP info still reports --without-mysql, but everything is working.