Part 4: Install PHP

1) Get the latest PHP:
Check: http://us3.php.net/downloads.php

cd
wget http://us3.php.net/get/php-5.3.27.tar.gz/from/this/mirror
tar zxvf php-*.tar.gz

2) Install:

cd
cd php-*
./configure --with-apxs2=/usr/bin/apxs --with-mysql --with-libdir=lib64
make && make install

3) Copy the default production config to the production location:

cp php.ini-production /usr/local/lib/php.ini
Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: