業界標準のCentOSで皆の大好きなPHPを皆の大好きなnginxで動かす。大前提としてnginxでPHPを動かすならば選択肢はFastCGIということになる。php-fpmというものがあるらしいが、できるだけ標準・準標準のRPMを使うことを考える。まず、CentOSの標準のPHPは--enable-fastcgiつきでコンパイルされているのでFastCGIで動かすにあたって特に問題はない。以下のコマンドで確認できる。 $ php -i | grep fastcgi nginxの設定なので、nginx側で次のような設定を行い、 server { listen 80; server_name goto.php.examle.com; location / { fastcgi_pass 127.0.0.1:8080; fastcgi_index index.php; fastcgi_param