pdo install and recompile

TheMask

Verified User
Joined
Jan 20, 2011
Messages
96
hi

i want to recompile my php5.4 with pdo support
and i use this tutorial
http://forum.directadmin.com/showthread.php?t=28190

but when just recompile php i take
/usr/local/directadmin/custombuild/configure/suphp/configure.php5: line 38: --with-pdo-sqlite=shared: command not found

i delete this line and take another error
/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 38: --enable-pdo=shared: command not found

delete and again
/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 38: --with-pdo-mysql=shared: command not found

delete and again
/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 38: --with-pdo-sqlite=shared: command not found

how can i install pdo?
 
As far as I know it's installed by default when you use Custombuild 2.0 or are you still running Custombuild 1.x?

You shouldn't mess with these files either:
/usr/local/directadmin/custombuild/configure/suphp/configure.php5

If you want to change things, you should copy configure.php files to /usr/local/directadmin/custombuild/configure/custom/suphp (or ap2) directory and make the change there and recompile php afterwards.

Best is to make things original again first.
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build all d

Hopefully this will also rebuild your configure.php files. In custombuild 2 you should have it like this:
/usr/local/directadmin/custombuild/configure/ap2/configure.php53
/usr/local/directadmin/custombuild/configure/ap2/configure.php54
/usr/local/directadmin/custombuild/configure/ap2/configure.php55
etc.
Same in the fastcgi and ftp etc. directory's.

Now first check your configure.php54 for this line:
--with-pdo-mysql=mysqlnd \

If it's present in your configure.php54 you should not have to do anything, pdo_mysql is present (which is the default for Custombuild 2).
You can check this with a phpinfo.php file.
 
Hello,

The error "command not found" simply means that the \ character was not correctly added on the line before the one that you added.

The file '/usr/local/directadmin/custombuild/configure/ap2/configure.php5' seems to be from Custombuild 1.x.
 
Back
Top