php-mysql error
redhat -9 . php-4.2.2. mysql - 4.1.11. php was already pre-installed while installing redhat . recently, i installed mysql . now, when i am accessing a php web page in a project, the message Fatal error: Call to undefined function: mysql_connect() is displayed in the browser. what next ? should i erase the old php using # rpm -e --nodeps php-x.x.x and install updated php version from source ?? pliz help asap. thanx
|
Now as I remember the database functionality must be installed with Apache (the web server).
Cant remember but I think it is a module that you can install. Insert the CD and go to the Webserver section and install mysql support for Apache. |
this is a usual error for all RedHat users. while upgraing MySQL you should install the MySQL-shared-3.23.58-1.i386.rpm instead of the latest one comes with MySQL 4.1 all other can be from 4.1 tree.
|
hi jax8,
thanx for ur reply. is it actually mysql support for php or mysql support for apache ??? i hope php should b installed alongwith mysql compilation. for ex- # ./configure --with-mysql= . |
hii
hi apsivam,
thanx for ur reply. actually i always prefer source ( tar.gz) instead of rpm. so, was n't the shared library in the source of mysql ??? |
All times are GMT -5. The time now is 02:27 AM. |