I originally asked this question on ServerFault and did not receive any answer, and I believe that this is related to programming, here goes ...
Some time ago, our large client switched to one hosting provider, which specified a software environment that would be compatible with all live servers.
Among other things, this includes Apache 2.2.8 and PHP 5.1.6.
We had an ubuntu 8.04 server for development, and these versions of Apache and PHP are not installed by default. So I had to compile them from the source. These versions have been working successfully for over a year.
We are starting to create a new site, and we want to use ZendFrameword, which requires PDO_MySQL.
I tried recompiling with the following ... (underline shows line continuation)
./configure --with-apxs2=/usr/local/apache2/bin/apxs _
--with-config-file-path=/user/local/apache2/conf/php.ini _
--with-curl=/usr/lib/ --with-mysql=shared --with-mysqli=shared _
--with-zlib --with-gd --with-jpeg-dir=/usr/local/lib/ _
--with-freetype-dir=/usr/lib/ --enable-soap --enable-pdo=shared _
--with-pdo-mysql=shared --with-sqlite=shared
...
make
...
make install
...
libtool --finish /sources/php-5.1.6/libs
That everything works fine, and when I return Apache, it shows me a new one. / configure in phpinfo ().
After that, MySQL stops working, the MYSQL section disappears, and msyql stops working.
Make, make install, libtool ... puts * .so files in
/ Usr / local / library / php / extensions / no debug-non-zts-20050922
The configuration I used earlier that included MySQL but not PDO was
./configure --with-apxs2=/usr/local/apache2/bin/apxs _
--with-config-file-path=/user/local/apache2/conf/php.ini _
--with-curl=/usr/lib/ --with-mysql --with-mysqli _
--with-zlib --with-gd --with-jpeg-dir=/usr/local/lib/ _
--with-freetype-dir=/usr/lib/ --enable-soap
I'm not a massive * nix person, can someone tell me where I am going wrong.
thanks