Jump to content

MySQL not working with PHP5.2.11 on 64Bit Linux


Recommended Posts

I have used the following configuration for php

 

/configure --with-apxs2=/usr/local/apache/bin/apxs --with-libdir=lib64

--with-mysql=shared --prefix=/usr/local/apache/php

--with-config-file-path=/usr/local/apache/php

--with-config-file-scan-dir=/usr --with-zlib --with-gdbm --with-gettext

--with-xml --with-regex=system --enable-ftp --enable-inline-optimization

--enable-magic-quotes --enable-mbstring --enable-mm=shared

--enable-safe-mode --enable-track-vars --enable-trans-sid

--enable-wddx=shared --enable-xml --with-dom

 

When calling MySQL functions from php file, getting the following

error;

 

Fatal error: Call to undefined function mysql_connect() in

/usr/local/apache/htdocs/as/dbconnect.php on line 17

 

I found on php website that for 64 bit OS we can enable mySQL by --with-libdir=lib64

--with-mysql=shared in the config statement. Why am i still getting this issue??

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.