UCT + PDO wicked

klasje

Verified User
Joined
Jan 5, 2008
Messages
55
Hello collegues,

Php 5 was running ok, with PDO sqlite enabled.
I also wanted to activate pdo_mysql in it, but that failed:


I did the following:
1) Change server timezone to Europe/Brussels
2) Installed ntp
=> server time is OK. (CET)

3) I wanted to activate PDO in php, so I changed /usr/local/directadmin/custombuild/configure/ap2/configure.php5 and added the following:
--enable-pdo=shared \
--with-pdo-mysql=shared,/usr/local/mysql \
--with-sqlite=shared \
--with-pdo-sqlite=shared \

4) I went to /usr/local/directadmin/custombuild/ and executed:
./build update
./build clean
./build php

I then waited till it was ready.
Afterwards, I have the following problems:

1) The mysql command NOW() gives me an hour that is 1 hour behind in the database. :-( This ****ed up our scripts.

2) PDO is now nowhere to be found anymore in phpinfo() and the class PDO can not be found anymore:
http://webscripters.be/test/test.php


Thank you all in advance!
 
Solved

1) Mysql problem solved by mysql reboot.
2) PDO problem soved by changing the extension_dir to the correct path and adding extension=pdo.so and extension=pdo_mysql.so to php.ini
 
Hi

i try to install pdo_mysql extension

but it doesnt work out for me.

Can someone help me

first i put

--enable-pdo=shared \
--with-pdo-mysql=shared \
--with-sqlite=shared \
--with-pdo-sqlite=shared

in configure.php_ap2

after that

./build update
./build clean
./build php_ap2 n

and then i get the follow error.

Thank you for using PHP.

/usr/local/directadmin/customapache/configure.php_ap2: line 32: --enable-pdo=shared: command not found

*** There was an error while trying to configure php. Check the configure.php file


can someone help me ?
 
yes but we have all the servers at customapache, i like to stay by customapache

if i try him by step 2 i get the following error.

gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory
make: *** [pdo_mysql.la] Error 1
ERROR: `make' failed
 
Last edited:
ok try it again


pecl install pdo_mysql does work no problems found
after that try to re compile php5 again but again the same error


Thank you for using PHP.

/usr/local/directadmin/customapache/configure.php_ap2: line 32: --enable-pdo=shared: command not found

*** There was an error while trying to configure php. Check the configure.php file

[root@server2 customapache]#
 
Back
Top