custombuild pdo_mysql

justinw78

New member
Joined
Feb 20, 2017
Messages
2
Hello all

Here an maybe for you easy question?

How can i compile pdo_mysql? with directbuild?

I have php 7 and mysql 5.6

I hope anyone can help me?

greetings justin
 
Edit the /usr/local/directadmin/custombuild/configure/ap2/configure.php70 file :

nano /usr/local/directadmin/custombuild/configure/ap2/configure.php70

....
--enable-mbstring \
--enable-soap \
....

Add:

--with-pdo-mysql=mysqlnd

at the end of the file. Do not forget to add '\' at the end of next to last line of the file.

Save the file.

Run:

cd /usr/local/directadmin/custombuild
./build php n

Once finished, check if PDO support is enabled:

#php -i | grep -i "PDO support"

You should receive an output like this:

PDO support => enabled
 
Instead of modify the file:
/usr/local/directadmin/custombuild/configure/ap2/configure.php70
I would suggest you to copy it in
/usr/local/directadmin/custombuild/custom/ap2/configure.php70

And than modify it, that will prevent CB updates to overwrite your changes ;)

Best regards
 
Back
Top