khanyawar Posted October 27, 2009 Share Posted October 27, 2009 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?? Quote Link to comment Share on other sites More sharing options...
trq Posted October 27, 2009 Share Posted October 27, 2009 Its more than likely meant to be --with-libdir=/lib64 though /lib64 is probably just a symlink to /lib (if its a true 64bit OS). Any particular reason your building from source anyway? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted November 5, 2009 Share Posted November 5, 2009 When you build something as a shared module, you'll have to load it in php.ini. Edit: Damn... now I posted to a (semi-)old topic again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.