Hi,
I have just installed RedHat 7 with support to PHP4 and MySQL.
phpinfo() reports the following at the 'configure command' entry:
'./configure' '--target=i386-redhat-linux' '--prefix=/usr'
'--with-config-file-path=/etc' '--disable-debug' '--enable-pic'
'--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
'--disable-static' '--with-exec-dir=/usr/bin' '--with-regex=system'
'--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png'
'--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp'
'--without-mysql' '--with-xml'
Although it shows option '--without-mysql' at the 'MySQL' section it reports
that MySQL is enabled, and indeed we can connect to our MySQL database
normally.
We need though to have access to MySQL through ODBC and would like to
configure PHP to run with 'unixODBC' compiled. I can see that ODBC support
is currently not built in, because invoking function odbc_connect() I
receive the following message:
Fatal error: Call to undefined function: odbc_connect() in
/var/www/html/odbc.php on line 6
RedHat reports that the RPM package for unixODBC is installed, but how do I
make it to be built with PHP? And why does the compile options show that
MySQL support was not built in and in fact it is? Is this because of the way
RPMs function? That is, I believe I should really not rebuild PHP with
commands './configure', 'make' and 'make install' but instead work with the
RPM RedHat system.
Any hints for a Linux RedHat newbie?
TIA,
Paulo