Suggestions? 'pdo_mysql extension is not installed'

Nautic

Verified User
Joined
Jun 17, 2008
Messages
46
Hi, need some assistance with the following error:

Code:
PHP Fatal error:  Uncaught exception 'Zend_Db_Adapter_Exception' with message 'pdo_mysql extension is not installed'

I've edited: /usr/local/directadmin/custombuild/configure/ap2/configure.php5

added:
Code:
--enable-pdo=shared \
--with-pdo-mysql=shared \
--with-sqlite=shared \
--with-pdo-sqlite=shared \

then:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build php n

However still no success, any suggestions?
 
Is it CustomBuild 1.x? (/usr/local/directadmin/custombuild/build version) If yes, do you see PDO MySQL loaded in phpinfo()? It might be that you're running PHP as suPHP. Please check:
Code:
/usr/local/directadmin/custombuild/build used_configs
 
Hi Martynas,

Output of '/usr/local/directadmin/custombuild/build version':
Code:
1.2.41

Output of '/usr/local/directadmin/custombuild/build used_configs':
Code:
Apache configuration file: /usr/local/directadmin/custombuild/configure/ap2/configure.apache
PHP5 configuration file: /usr/local/directadmin/custombuild/configure/ap2/configure.php5

Inside of configure.php5 it doesn't contain any of the pdo_mysql information that was added previously. It removes it after the build.:
Code:
#!/bin/sh
./configure \
        --with-apxs2 \
        --with-curl=/usr/local/lib \
        --with-gd \
        --with-ttf \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr/local/mysql \
        --with-mysqli=/usr/local/mysql/bin/mysql_config \
        --with-pdo-mysql=/usr/local/mysql \
        --with-pcre-regex=/usr/local \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-xsl \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-exif \
        --enable-ftp \
        --enable-gd-native-ttf \
        --enable-magic-quotes \
        --enable-safe-mode \
        --enable-soap \
        --enable-sockets \
        --enable-mbstring \
        --enable-zip \
        --enable-wddx

From phpinfo:
Code:
'./configure' '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--with-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-pdo-mysql=/usr/local/mysql' '--with-pcre-regex=/usr/local' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-magic-quotes' '--enable-safe-mode' '--enable-soap' '--enable-sockets' '--enable-mbstring' '--enable-zip' '--enable-wddx'

From further down the phpinfo page:
28dAjHR.png
 
You should use the official method to customize configure.php5:
Code:
mkdir -p /usr/local/directadmin/custombuild/custom/ap2/
cp -p /usr/local/directadmin/custombuild/configure/ap2/configure.php5 /usr/local/directadmin/custombuild/custom/ap2/configure.php5

Edit /usr/local/directadmin/custombuild/custom/ap2/configure.php5 now, add your customizations and do "./build php n".
 
Hi Martynas,

It is using the new configure file as you suggested, with 'used_configs' this is what it reports:
Code:
PHP5 configuration file: /usr/local/directadmin/custombuild/custom/ap2/configure.php5

I rebuilt and unfortunately still the same result:
Code:
PHP Fatal error:  Uncaught exception 'Zend_Db_Adapter_Exception' with message 'pdo_mysql extension is not installed'
 
Back
Top