450days since
12 Rabi-ul-Awal

Recent site activity

Blog‎ > ‎

UBUNTU 12.04 Server, PHP 5.4.6 and plugin myslqnd_ms, qc Installation

posted Sep 6, 2012, 2:00 AM by Arfan Cheema   [ updated Sep 9, 2012, 11:19 PM ]
UBUNTU 12.04

install Ubuntu 12.04 server

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade


PHP 5.4.6

sudo apt-get install libxml2-dev libbz2-dev libcurl4-gnutls-dev libpng12-dev libjpeg62-dev libxpm-dev libfreetype6-dev libt1-dev libmcrypt-dev libmhash-dev libxslt1-dev

wget http://pk1.php.net/distributions/php-5.4.6.tar.gz

tar -xzvf php-5.4.6.tar.gz

cd php-5.4.6

./configure --enable-fpm --enable-soap --enable-calendar --enable-ftp --enable-libxml --enable-mbstring --enable-sockets --enable-zend-multibyte --enable-zip --with-zlib --with-mcrypt --enable-pdo --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-gd

make test

make install


run below commands after installation
/opt/php-5.4.6/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar


mysqlnd plugin

To Install mysqlnd_ms

# pecl install mysqlnd_ms

add below line in php.ini near Dynamic Extensions
vi /etc/php5/apache2/php.ini
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension = mysqlnd_ms.so

To Check Installation
# pecl info mysqlnd_ms

To Install mysqlnd_qc
#pecl install mysqlnd_qc-1.1.1

add below line in php.ini near Dynamic Extensions
vi /etc/php5/apache2/php.ini
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=mysqlnd_qc.so

To Check Installation
# pecl info mysqlnd_qc


Install phpmyadmin on UBUNTU 12
sudo apt-get install phpmyadmin

follow the steps to configure phpmyadmin
Comments