LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   php-mysql error (https://www.linuxquestions.org/questions/linux-newbie-8/php-mysql-error-318351/)

jkmartha 04-29-2005 02:48 AM

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

jax8 04-29-2005 03:09 AM

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.

apsivam 04-29-2005 03:13 AM

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.

jkmartha 04-29-2005 04:37 AM

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= .

jkmartha 04-29-2005 04:40 AM

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.