Tuesday, March 5, 2013

Compile PHP with mysql extension

1. Download PHP at http://php.net/releases/index.php

2. Compile
./configure --enable-mbstring --with-mysql=yes --with-mcrypt=yes --with-libdir=lib64 --with-mysql-sock=/var/lib/mysql/mysql.sock --with-apxs2=/usr/sbin/apxs --prefix=/usr
make
make install

No comments: