Did you uninstall the php rpm before you installed from source? You could still be using the old rpm. Are you sure you have mysql installed?
If you want to make this as simple as possible, uninstall the mandrake rpms for apache, php and mysql and then do the following: Download and install the latest mysql rpm from mysql.com then go to rpms.arvin.dk , he has put together a bunch of rpms that work splendidly together. At a minimum download and install the rpms for mm and apache, then go into the php directory and download and install the rpms for php, mod-php and php-mysql. Note, you can install rpms for many other php extensions and they will work fine too. Of course these rpms are made for redhat 7.1, but I am sure they will work fine on mandrake 8.0 since it is based on redhat 7.1. Good luck. Fred John Davin <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I'm trying to get PHP to work with MySQL. I have Apache 1.3.22 running on > Linux Mandrake 8... the apache was installed from the mandrake RPM. I > then installed PHP 4.1.1 from the RPM. The PHP parsing works fine but it > doesn't recognize mysql commands. When I do: > $linkid = mysql_connect("localhost", "root", "") or die($php_errormsg); > I get: > Fatal error: Call to undefined function: mysql_connect() ... > > So I figured that meant the rpm didn't come with mysql commands enabled. > So I downloaded the source code (php-4.1.1.tar.gz) and did: > ./configure --with-mysql --enable-track-vars > make > make install > > Then I did apachectl stop, apachetcl start. The PHP parsing is working > but I'm still getting the exact same error about not recognizing the mysql > command. > > Any ideas what's going on? > > -John > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]