Linux
PHP5.6
Apache2.2

Amazon Linux+Apache2.2+PHP5.6

More than 1 year has passed since last update.

コマンドだけです。

# sudo -s

$ cat /etc/system-release
Amazon Linux AMI release 2016.03

$ yum install httpd
$ yum install httpd-devel
$ httpd -v
Server version: Apache/2.2.31 (Unix)
Server built: Jul 19 2016 00:11:31

$ yum install gcc

$ yum install libxml2
$ yum install libxml2-devel

$ yum install openssl
$ yum install openssl-devel

$ cd /home/ebisol/
$ wget http://jp2.php.net/distributions/php-5.6.24.tar.bz2
$ cd /usr/local/src/
$ tar -jxf /home/ebisol/php-5.6.24.tar.bz2
$ cd php-5.6.24
$ ./configure --with-openssl --with-libxml-dir=/usr/bin --with-apxs2
$ make
$ make install
$ /usr/local/src/php-5.6.24/build/shtool install -c ext/phar/phar.phar /usr/local/bin
$ ln -s -f phar.phar /usr/local/bin/phar
$ vi /etc/httpd/conf/httpd.conf
ServerName IPアドレス:80

$ vi /etc/httpd/conf.d/php.conf
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php

$ /etc/init.d/httpd start