Changes between Version 5 and Version 6 of Packages/php5


Ignore:
Timestamp:
2012/04/28 19:58:03 (9 years ago)
Author:
tomop
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Packages/php5

    v5 v6  
    64641. 以下のパッケージをインストールする。 
    6565 * nginx 
    66  * php5-fpm 
    67 2. /etc/nginx/php_paramsを以下の内容で作成する。 
    68 {{{ 
    69 fastcgi_param GATEWAY_INTERFACE CGI/1.1; 
    70 fastcgi_param SERVER_SOFTWARE   nginx; 
    71  
    72 fastcgi_param QUERY_STRING      $query_string; 
    73 fastcgi_param REQUEST_METHOD    $request_method; 
    74 fastcgi_param CONTENT_TYPE      $content_type; 
    75 fastcgi_param CONTENT_LENGTH    $content_length; 
    76  
    77 fastcgi_split_path_info         ^(.+?\.php)(/.*)?$; 
    78 fastcgi_param PATH_INFO         $fastcgi_path_info; 
    79 fastcgi_param PATH_TRANSLATED   $document_root$fastcgi_path_info; 
    80 fastcgi_param SCRIPT_FILENAME   $document_root$fastcgi_script_name; 
    81 fastcgi_param SCRIPT_NAME       $fastcgi_script_name; 
    82 fastcgi_param REQUEST_URI       $request_uri; 
    83 fastcgi_param DOCUMENT_URI      $document_uri; 
    84 fastcgi_param DOCUMENT_ROOT     $document_root; 
    85 fastcgi_param SERVER_PROTOCOL   $server_protocol; 
    86  
    87 fastcgi_param REMOTE_ADDR       $remote_addr; 
    88 fastcgi_param REMOTE_PORT       $remote_port; 
    89 fastcgi_param SERVER_ADDR       $server_addr; 
    90 fastcgi_param SERVER_PORT       $server_port; 
    91 fastcgi_param SERVER_NAME       $server_name; 
    92  
    93 # PHP only, required if PHP was built with –enable-force-cgi-redirect 
    94 fastcgi_param REDIRECT_STATUS   200; 
    95  
    96 fastcgi_pass                    unix:/tmp/php-fpm.sock; 
    97 fastcgi_ignore_client_abort     on; 
    98 }}} 
     66 * php5-nginx 
    99671. nginx設定ファイルの必要な箇所(http, server, locationブロック)に以下の記述を追加する。 
    10068{{{