如何在CentOS 6.6中安装或启用mysqlnd [DirectAdmin]

时间:2015-09-04 05:08:23

标签: centos6 mysqlnd directadmin

如何在CentOS 6.6和php 5.5中安装或启用 mysqlnd

directadmin安装在服务器中, yum命令无效。

我像这样使用directAdmin CustomBuild。

--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \

但在 ./ build php n 之后没有任何事情发生。

请帮帮我。

1 个答案:

答案 0 :(得分:0)

请您尝试使用以下命令。

cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -fp configure/ap2/configure.php5 custom/ap2/configure.php5

Make changes to custom/ap2/configure.php5
Add the following lines

--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \

Then rebuild PHP via custombuild

./build php n