MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Administrator on June 06, 2014, 06:23:10 PM

Title: How To Install mysqlnd On CentOS cPanel Server ?
Post by: Administrator on June 06, 2014, 06:23:10 PM
Dear Members,

This post will help you to install mysqlnd with PHP on a CentOS cPanel installed server. mysqlnd option is not available when you re compile PHP with easyapache.

Here is the tip & trick to compile it. You will need root privileges and SSH access to compile it.

Access your server via SSH and access the directory.

Quote
# cd /var/cpanel/easy/apache/rawopts

Create a file all_php5 OR edit if it already exists. Add the lines below & save the file.

Quote
--enable-mysqlnd
--with-mysqli=mysqlnd

Now, build PHP & mysqlnd will be compiled with PHP.

Quote
# /scripts/easyapache --build

Hope this helps technicians who wish to compile mysqlnd with PHP.