LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache ADVX & PHP w/ MySQL (https://www.linuxquestions.org/questions/linux-software-2/apache-advx-and-php-w-mysql-257621/)

MonServeur 11-21-2004 12:40 PM

Apache ADVX & PHP w/ MySQL
 
I just installed Mandrake 10.1 Community, it went just fine.
Except that when connecting to my site I get this :
Fatal error: Call to undefined function: mysql_connect() in /home/jean-michel/www/html/mymtm/install.php on line 26

I browsed thru available docs that says that Apache ADVX is Apache w/ PHP & MySQL. Except that MySQL is statically integrated in Apache & not using DSO.

I installed MySQL-Administrator and it looks like MySQL is up and well

How do I get PHP to recognise MySQL ?

I am a newbie and don't feel like recompiling with different options

btmiller 11-21-2004 01:46 PM

Did you install Apache and PHP from source or via RPM? If the latter, you'll need to install the php-mysql RPM, but iof the former, you'll need to recompile PHP with MySQL support.

MonServeur 11-21-2004 01:54 PM

It has been installed during the Mandrake 10.1 distrib installation. So I believe that it is an RPM. More precisely the RPM for Apache ADVX that is an integrated Apache with PHP and MySQL.
See http://www.advx.org/

I feel extremely nervous at the idea of having to reinstall it ! I have a very limited knowledge of Linux

MonServeur 11-21-2004 03:11 PM

Ok I just found the answer, thru whats displayed by phpinfo :
Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME

So I downloaded & installed php-mysql*.rpm

And this problem IS SOLVED ! ! !

Thanks anyway to all for trying to help.


All times are GMT -5. The time now is 05:16 AM.