phpインストールメモ
php5.4を入れようとソースから持ってきたものの、apxsがないがためハマったメモ。
yum install httpd httpd-devel <-これやらないとapxsが入らない
の上で、php5.4ソースの展開先
./configure --with-apxs2=/usr/sbin/apxs --with-mysql
php.ini内設定変更。
mysql.default_socket = /tmp/mysql.sock
nginx+phpの場合はenable-fpmも有効にする。
./configure --with-apxs2=/usr/sbin/apxs --with-mysql --enable-fpm
後の設定はググってみてください。