ユーザ用ツール

サイト用ツール


centos:centos_nginx_php

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
centos:centos_nginx_php [2014/11/06 02:51] clownclowncentos:centos_nginx_php [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1
行 17: 行 17:
 <code> <code>
 # yum -y --enablerepo=remi install php php-mbstring php-mysql php-pear php-devel # yum -y --enablerepo=remi install php php-mbstring php-mysql php-pear php-devel
 +# vi /etc/php.ini /etc/php.ini.org
 +869c869
 +< date.timezone = "Asia/Tokyo"
 +---
 +> ;date.timezone =
 +1350c1350
 +< session.save_path = "/var/lib/php/session/"
 +---
 +> ;session.save_path = "/tmp"
 +# ll /var/lib/php/
 +合計 4
 +drwxrwx---. 2 root apache 4096 10月 16 17:24 2014 session
 +# chown -R root.nginx /var/lib/php/session
 +# ll /var/lib/php/
 +合計 4
 +drwxrwx---. 2 root nginx 4096 10月 16 17:24 2014 session
 </code> </code>
  
行 43: 行 59:
 # vi /etc/nginx/conf.d/default.conf # vi /etc/nginx/conf.d/default.conf
  
-<         root   /var/www; +9,10c9,10 
-<         index  index.php index.html index.htm;+<         root   /var/www/html
 +<         index  index.php;
 --- ---
 >         root   /usr/share/nginx/html; >         root   /usr/share/nginx/html;
行 50: 行 67:
 30,36c30,36 30,36c30,36
 <     location ~ \.php$ { <     location ~ \.php$ {
-<         root           /var/www;+<         root           /var/www/html;
 <         fastcgi_pass   127.0.0.1:9000; <         fastcgi_pass   127.0.0.1:9000;
 <         fastcgi_index  index.php; <         fastcgi_index  index.php;
-<         fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;+<         fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;
 <         include        fastcgi_params; <         include        fastcgi_params;
 <     } <     }
centos/centos_nginx_php.1415242277.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)