www.1×1.jpの環境をApache+mod_phpな環境から、nginx+php-fpmな環境へ移行しました。
さくらVPSのCentOS5.5環境にnginx+php-fpmをyumでインストールして、CakePHPとWordPressを動かす設定を行いました。
このエントリでは導入ということで、インストールから、とりあえず動作するところまでをご紹介します。
0. 構成
nginx+php-fpm環境にCakePHPとWordPressをインストールします。
それぞれ以下のURLでアクセスできるようにします。
http://www.1×1.jp/ -> CakePHP
http://www.1×1.jp/blog/ -> WordPress
1. インストール
nginxとphp-fpmだとソースからインストールするパターンが多いですが、ここではyumでインストールします。
1-1. remiリポジトリを登録
centosリポジトリにはnginx、php-fpmが含まれていないので、epel / remiリポジトリを登録します。
$ sudo wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm $ sudo wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm $ sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
1-2. yumでインストール
nginxとphp-fpmをyumでインストールします。–enablerepo=remi で1-1で登録したremiリポジトリを指定することを忘れないようにしましょう。
他にphp-mbstringやphp-cliなんかもいれてますが、このあたりはお好みで。
$ sudo yum -y install nginx php-cli php-fpm php-mbstring --enablerepo=remi
2011/05/16現在インストールされるバージョンは以下です。
$ /usr/sbin/nginx -V nginx version: nginx/0.8.54 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50) TLS SNI support disabled configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-file-aio --with-mail_ssl_module --with-ipv6 --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
$ /usr/sbin/php-fpm -v PHP 5.3.6 (fpm-fcgi) (built: Apr 15 2011 18:13:37) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
2. nginxの設定
nginxの設定を行います。yumでインストールすると設定ファイルは /etc/nginx 以下に配置されます。/etc/nginx/nginx.confがメインの設定ファイルになっているのでこれを編集します。
Apacheの設定を知っていれば何となく理解できるかと思いますが、リクエストURIがlocationディレクティブにマッチすれば該当ブロックの設定が適用されます。
2-1. バージョン情報の出力をoff
HTTPレスポンスヘッダやエラーページでnginxのバージョン情報を出力しないようにします。
server_tokens off;
2-2. gzipをon
gzipをonにします。
gzip on;
2-3. /blogをWordPressに
/blogというURLに対してWordPress用の設定を行っています。
内容はなんとなく分かるかと思いますが、前半のブロックでApacheでいうmod_rewriteのような設定を行っています。これにより存在しないディレクトリ、ファイルへのアクセスがあった場合は/blog/index.php?q=PATHへURLをリライトします。
後半のブロックがphp-fpm(FastCGI)の設定です。^/blog/.+\.php$にマッチするリクエストであれば、php-fpmへリクエストを送信します。
# wordpress location /blog { alias /path/to/wordpress; index index.php; if (!-e $request_filename) { rewrite ^/blog(.+)$ /blog/index.php?q=$1 last; break; } } location ~ ^/blog/.+\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^/blog(.+\.php)(.*)$; fastcgi_param SCRIPT_FILENAME /path/to/wordpress$fastcgi_script_name; fastcgi_intercept_errors on; include fastcgi_params; }
2-4. /blog以外のURLはCakePHPに
/blog以外のURLに対してCakePHP用の設定を行っています。
2-3と同じく、前半のブロックでURLリライトの設定を行っています。存在しないディレクトリ、ファイルへのアクセスがあった場合は/index.php?url=PATHへURLをリライトします。
後半のブロックでは、\.php$にマッチするリクエストであれば、php-fpmへリクエストを送信します。
# cakephp location / { root /path/to/cakephp/app/webroot; index index.php index.html index.htm; if (!-e $request_filename) { rewrite ^(.+)$ /index.php?url=$1 last; break; } } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /path/to/cakephp/app/webroot$fastcgi_script_name; fastcgi_intercept_errors on; include fastcgi_params; }
2-5. .htaccess / .git / .svnはアクセス禁止に
.htaccess / .git / .svnはアクセスできないようにしています。
location ~ (\.ht|\.git|\.svn) { deny all; }
2-6. /etc/nginx/nginx.conf
変更した /etc/nginx/nginx.conf は以下です。
####################################################################### # # This is the main Nginx configuration file. # # More information about the configuration options is available on # * the English wiki - http://wiki.nginx.org/Main # * the Russian documentation - http://sysoev.ru/nginx/ # ####################################################################### #---------------------------------------------------------------------- # Main Module - directives that cover basic functionality # # http://wiki.nginx.org/NginxHttpMainModule # #---------------------------------------------------------------------- user nginx; worker_processes 1; error_log /var/log/nginx/error.log; #error_log /var/log/nginx/error.log notice; #error_log /var/log/nginx/error.log info; pid /var/run/nginx.pid; #---------------------------------------------------------------------- # Events Module # # http://wiki.nginx.org/NginxHttpEventsModule # #---------------------------------------------------------------------- events { worker_connections 1024; } #---------------------------------------------------------------------- # HTTP Core Module # # http://wiki.nginx.org/NginxHttpCoreModule # #---------------------------------------------------------------------- http { include /etc/nginx/mime.types; default_type application/octet-stream; server_tokens off; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip on; server { listen 80; server_name _; #charset koi8-r; #access_log logs/host.access.log main; # wordpress location /blog { alias /path/to/wordpress; index index.php; if (!-e $request_filename) { rewrite ^/blog(.+)$ /blog/index.php?q=$1 last; break; } } location ~ ^/blog/.+\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^/blog(.+\.php)(.*)$; fastcgi_param SCRIPT_FILENAME /path/to/wordpress$fastcgi_script_name; fastcgi_intercept_errors on; include fastcgi_params; } # cakephp location / { root /path/to/cakephp/app/webroot; index index.php index.html index.htm; if (!-e $request_filename) { rewrite ^(.+)$ /index.php?url=$1 last; break; } } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /path/to/cakephp/app/webroot$fastcgi_script_name; fastcgi_intercept_errors on; include fastcgi_params; } location ~ (\.ht|\.git|\.svn) { deny all; } } # Load config files from the /etc/nginx/conf.d directory include /etc/nginx/conf.d/*.conf; }
3. php-fpmの設定
次にphp-fpmを設定します。 yumでインストールすると設定ファイルが/etc/php-fpm.confと/etc/php-fpm.d/www.confに配置されます。
php-fpm.confはとりあえずデフォルトのままで、www.confを編集します。変更するのは4箇所です。
3-1. 実行ユーザ
php-fpmの実行ユーザをnginxと同一にしておきます。
user = nginx
3-2. 実行グループ
実行ユーザと同じく実行グループもnginxと同一にしておきます。
group = nginx
3-3. プロセス生成方法
php-fpmの実行プロセス生成方法を指定します。動的にプロセス数を増減するならdynamicを、設定したプロセス数に固定するならstaticを指定します。
ここでは利用するリソースが把握しやすいstaticにします。
pm = static
3-4. 生成するプロセス数
生成するphp-fpmプロセス数を指定します。ここでは10プロセスを生成します。
他にpm.start_servers / pm.min_spare_servers/ pm.max_spare_serversといったプロセス数に関する設定がありますが、pm=staticの場合は影響ありません。
pm.max_children = 10
3-5. expose_phpをoffに
HTTPレスポンスヘッダに含まれるPHPバージョン情報を出力しないようにexpose_phpをoffにしています。
このようにPHP関連の設定はwww.confで記述することもできます。(もちろんphp.iniで設定しても良いです。)
php_admin_flag[expose_php] = off
3-6. /etc/nginx/nginx.conf
; Start a new pool named 'www'. [www] ; The address on which to accept FastCGI requests. ; Valid syntaxes are: ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on ; a specific port; ; 'port' - to listen on a TCP socket to all addresses on a ; specific port; ; '/path/to/unix/socket' - to listen on a unix socket. ; Note: This value is mandatory. listen = 127.0.0.1:9000 ; Set listen(2) backlog. A value of '-1' means unlimited. ; Default Value: -1 ;listen.backlog = -1 ; List of ipv4 addresses of FastCGI clients which are allowed to connect. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address ; must be separated by a comma. If this value is left blank, connections will be ; accepted from any ip address. ; Default Value: any listen.allowed_clients = 127.0.0.1 ; Set permissions for unix socket, if one is used. In Linux, read/write ; permissions must be set in order to allow connections from a web server. Many ; BSD-derived systems allow connections regardless of permissions. ; Default Values: user and group are set as the running user ; mode is set to 0666 ;listen.owner = nobody ;listen.group = nobody ;listen.mode = 0666 ; Unix user/group of processes ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. ; RPM: apache Choosed to be able to access some dir as httpd user = nginx ; RPM: Keep a group allowed to write in log dir. group = nginx ; Choose how the process manager will control the number of child processes. ; Possible Values: ; static - a fixed number (pm.max_children) of child processes; ; dynamic - the number of child processes are set dynamically based on the ; following directives: ; pm.max_children - the maximum number of children that can ; be alive at the same time. ; pm.start_servers - the number of children created on startup. ; pm.min_spare_servers - the minimum number of children in 'idle' ; state (waiting to process). If the number ; of 'idle' processes is less than this ; number then some children will be created. ; pm.max_spare_servers - the maximum number of children in 'idle' ; state (waiting to process). If the number ; of 'idle' processes is greater than this ; number then some children will be killed. ; Note: This value is mandatory. pm = static ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes to be created when pm is set to 'dynamic'. ; This value sets the limit on the number of simultaneous requests that will be ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP ; CGI. ; Note: Used when pm is set to either 'static' or 'dynamic' ; Note: This value is mandatory. pm.max_children = 10 ; The number of child processes created on startup. ; Note: Used only when pm is set to 'dynamic' ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 pm.start_servers = 5 ; The desired minimum number of idle server processes. ; Note: Used only when pm is set to 'dynamic' ; Note: Mandatory when pm is set to 'dynamic' pm.min_spare_servers = 5 ; The desired maximum number of idle server processes. ; Note: Used only when pm is set to 'dynamic' ; Note: Mandatory when pm is set to 'dynamic' pm.max_spare_servers = 35 ; The number of requests each child process should execute before respawning. ; This can be useful to work around memory leaks in 3rd party libraries. For ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. ; Default Value: 0 ;pm.max_requests = 500 ; The URI to view the FPM status page. If this value is not set, no URI will be ; recognized as a status page. By default, the status page shows the following ; information: ; accepted conn - the number of request accepted by the pool; ; pool - the name of the pool; ; process manager - static or dynamic; ; idle processes - the number of idle processes; ; active processes - the number of active processes; ; total processes - the number of idle + active processes. ; The values of 'idle processes', 'active processes' and 'total processes' are ; updated each second. The value of 'accepted conn' is updated in real time. ; Example output: ; accepted conn: 12073 ; pool: www ; process manager: static ; idle processes: 35 ; active processes: 65 ; total processes: 100 ; By default the status page output is formatted as text/plain. Passing either ; 'html' or 'json' as a query string will return the corresponding output ; syntax. Example: ; http://www.foo.bar/status ; http://www.foo.bar/status?json ; http://www.foo.bar/status?html ; Note: The value must start with a leading slash (/). The value can be ; anything, but it may not be a good idea to use the .php extension or it ; may conflict with a real PHP file. ; Default Value: not set ;pm.status_path = /status ; The ping URI to call the monitoring page of FPM. If this value is not set, no ; URI will be recognized as a ping page. This could be used to test from outside ; that FPM is alive and responding, or to ; - create a graph of FPM availability (rrd or such); ; - remove a server from a group if it is not responding (load balancing); ; - trigger alerts for the operating team (24/7). ; Note: The value must start with a leading slash (/). The value can be ; anything, but it may not be a good idea to use the .php extension or it ; may conflict with a real PHP file. ; Default Value: not set ;ping.path = /ping ; This directive may be used to customize the response of a ping request. The ; response is formatted as text/plain with a 200 response code. ; Default Value: pong ;ping.response = pong ; The timeout for serving a single request after which the worker process will ; be killed. This option should be used when the 'max_execution_time' ini option ; does not stop script execution for some reason. A value of '0' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_terminate_timeout = 0 ; The timeout for serving a single request after which a PHP backtrace will be ; dumped to the 'slowlog' file. A value of '0s' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_slowlog_timeout = 0 ; The log file for slow requests ; Default Value: not set ; Note: slowlog is mandatory if request_slowlog_timeout is set slowlog = /var/log/php-fpm/www-slow.log ; Set open file descriptor rlimit. ; Default Value: system defined value ;rlimit_files = 1024 ; Set max core size rlimit. ; Possible Values: 'unlimited' or an integer greater or equal to 0 ; Default Value: system defined value ;rlimit_core = 0 ; Chroot to this directory at the start. This value must be defined as an ; absolute path. When this value is not set, chroot is not used. ; Note: chrooting is a great security feature and should be used whenever ; possible. However, all PHP paths will be relative to the chroot ; (error_log, sessions.save_path, ...). ; Default Value: not set ;chroot = ; Chdir to this directory at the start. This value must be an absolute path. ; Default Value: current directory or / when chroot ;chdir = /var/www ; Redirect worker stdout and stderr into main error log. If not set, stdout and ; stderr will be redirected to /dev/null according to FastCGI specs. ; Default Value: no ;catch_workers_output = yes ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. ; Default Value: clean env ;env[HOSTNAME] = $HOSTNAME ;env[PATH] = /usr/local/bin:/usr/bin:/bin ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp ; Additional php.ini defines, specific to this pool of workers. These settings ; overwrite the values previously defined in the php.ini. The directives are the ; same as the PHP SAPI: ; php_value/php_flag - you can set classic ini defines which can ; be overwritten from PHP call 'ini_set'. ; php_admin_value/php_admin_flag - these directives won't be overwritten by ; PHP call 'ini_set' ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. ; Defining 'extension' will load the corresponding shared extension from ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not ; overwrite previously defined php.ini values, but will append the new value ; instead. ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com ;php_flag[display_errors] = off php_admin_value[error_log] = /var/log/php-fpm/www-error.log php_admin_flag[log_errors] = on php_flag[expose_php] = off ;php_admin_value[memory_limit] = 32M
4. nginx / php-fpmの起動
nginxとphp-fpmを起動します。
$ sudo /etc/init.d/nginx start $ sudo /etc/init.d/php-fpm start
起動に成功すれば、0.0.0.0:80と127.0.0.1:9000がLISTENになっているはずです。
$ netstat -ltn | grep -E '(80|9000)' tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
サーバ起動時に自動実行されるようにchkconfigで登録しておきます。
$ sudo /sbin/chkconfig nginx on $ sudo /sbin/chkconfig php-fpm on
あとはCakePHP / WordPressをインストールすればokです。
5. 実際に使ってみて
Apache+mod_phpからの移行ということで基本Apache感覚で触りだしたわけですが、つまづいたというか気になったことを。
5-1. Aliasはaliasで
ApacheのAliasのようなことをやりたい場合、locationディレクティブでURIを指定して、そのブロック内ではrootではなく、aliasにてディレクトリを指定します。
location /blog { alias /path/to/wordpress; index index.php; }
5-2. .htaccessは使えない
CakePHPでもWordPressでも使われている.htaccessですが、nginxでは利用できません(反映されません)。
nginxには.htaccessのようにサーバが設定ファイルを再読込することなく設定を動的に変更する方法はありません。
.htaccessで指定するような、アクセス制御、mod_rewrite、Basic認証等はnginx.confなどの設定ファイルにて記述し、nginxを再起動(再読込)を実行して設定ファイルを反映します。
# nginx 再起動 $ sudo /etc/init.d/nginx restart # nginx 設定ファイル再読込 $ sudo /etc/init.d/nginx reload
5-3. Digest認証がない
nginxにはDigest認証を実現するモジュールは無いようです。以前はDigest認証を利用している箇所があったのですが、Basic認証は利用できるのでHTTPS+Basic認証で代用しました。
5-4. PHP関連の設定を変更したら
php.iniやwww.confでPHP関連の設定を変更した場合、php-fpmを再起動(再読込)します。nginxを再起動したところでphp-fpmには反映されませんのでご注意を。
# php-fpm 再起動 $ sudo /etc/init.d/php-fpm restart # php-fpm 設定ファイル再読込 $ sudo /etc/init.d/php-fpm reload
5-5. rewrite対象URLにアクセスして画面が真っ白に
ここで設定した内容では、http://example.com/foo/bar といったファイルが存在しないURLへアクセスすると /index.php?url=URLというURLへrewriteして処理を行います。
こういった状況で画面が真っ白になるという現象がありました。
結局、原因はnginx.confの設定で、rewriteしたPHPスクリプトがSCRIPT_FILENAME で指定したパスに存在しない(アクセスできない)とこういった現象になるようです。
nginx、php-fpm どちらのログにも何も出力されなかったのではじめは嵌りました。もし同じ現象になった際はnginx.confのSCRIPT_FILENAMEの設定を確認してみて下さい。
nginxをはじめるのにオススメの本
これからnginxをはじめるなら「ハイパフォーマンスHTTPサーバ Nginx入門」がおすすめです。
現時点(2011/05/19)で日本語で書かれたnginx解説本がこれしか無いということもありますが、nginxをこれから利用するにとっては分かりやすく解説されています。
ただ、いきなりシェルコマンドやLinuxファイルシステム、システム管理ツールの解説が60ページほど続くので、この部分だけを立ち読みして「こりゃダメだ」と判断しないように注意して下さい:D このあと30ページほどnginxをインストールする内容があって、ようやく本編がはじまります。その後はしっかりとnginxについて解説されていますのでご安心を。
各ディレクティブの設定については公式WikiをはじめWebに情報があるのですが、設定の基本的な思想や細かなTipsなどは書籍にまとまっていると理解しやすいですね。php-fpmとの連携やApacheとの連携(リバースプロキシ)、Apacheからの移行なども簡単に解説されているので、Apahce+mod_phpから移行しようかなという方は一度手にとってみてください。
- Newer: PHPでsleep sort
- Older: 開発合宿関西3に参加してきました
コメント (Close):2
- wokamoto 11-05-19 (木) 9:46
-
はじめまして、wokamoto と申します。
nginx 良いですよね、リバースプロキシとして利用しても良いですし、Web サーバとしても軽くて良いですし。
僕も nginx + php-fpm で WordPress 動作させてるので助言を一つ。nginx を Linux サーバで使用する場合、イベントハンドラーとしてより効率の良い epoll を利用することができます。
nginx.conf の events に以下のように書けば対応できます。
events {
worker_connections 1024;
use epoll;
}また worker_processes は nginx プロセスを起動する数ですが、これも CPU のコア数くらい指定しておくと、さらに良い感じです!
大雑把に言うと、worker_processes と worker_connections は Apache の MaxClients に相当するパラメータです。
nginx が処理できるリクエスト数は worker_processes * worker_connections となります。以上、参考までに!
- shinbara 11-05-19 (木) 10:12
-
wokamotoさん:
はじめまして。コメントありがとうございます!
nginx良いですね。静的ファイルを捌くならかなり軽いので重宝しています:D設定についてアドバイスありがとうございます−。参考になります。
このエントリは導入ということでチューニングについては記載していないですが、
このあたりもおさえておきたいところです:Dworker_processesやworker_connectionsを触るなら「Too many open files」にならないようにファイルディスクプリタの上限値にも気を付けたいですね。
トラックバック:15
- このエントリーのトラックバックURL
- /blog/2011/05/yum_install_nginx_php-fpm.html/trackback
- Listed below are links to weblogs that reference
- nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 from Shin x blog
- pingback from Apacheからnginxに乗り換えてみた – Yuyak 11-06-14 (火) 17:38
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 – Shin x … […]
- pingback from CoserverからさくらのVPSへWordPressを引越し | Way2Go 11-07-02 (土) 20:25
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 […]
- pingback from CoreServerからさくらのVPSへWordPressを引越し | Way2Go 11-07-02 (土) 20:32
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 […]
- pingback from ApcheからNginxに移行してWordPressとphpMyAdminを動かした時のメモ | Gloria 11-09-25 (日) 9:16
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 […]
- pingback from ちょっとだけNGINXを « 12net.jp 11-10-17 (月) 19:31
-
[…] 気にはなっていたけど手は出していなかった「NGINX」。さくらでVPS512で、軽く試してみた。まあ試してみたといってもホントに軽くで、次のサイトを参考に動くところまでを確認した程度である。 「WordPress サイトに nginx を導入する」 「nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定」 […]
- pingback from CentOS+nginx+PHPの環境をたててみた | SUSH-i LOG 12-02-02 (木) 1:55
-
[…] ほぼ参考サイトの環境そのままですが、WordPressとCakePHPと振り分けているわけではないので、そこだけ単純な設定にしています。 […]
- pingback from Nginxのalias指定でphpMyAdminを動作させる | 9ensanのLifeHack 12-05-07 (月) 20:38
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 […]
- pingback from さくらの VPS に nginx を入れてリバースプロキシ設定するまでの作業メモ(検証用) | ウェブル 12-05-22 (火) 11:01
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 – Shin x … […]
- pingback from さくらVPS: nginx/PHP/WordPressインストールガイド | ブレン 12-06-17 (日) 20:56
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 – Shin x blog […]
- pingback from apacheからnginxへ。さらにAPCの導入。 | S.F.Page 13-08-11 (日) 18:54
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 […]
- pingback from Apacheからnginxへ乗り換えたときのメモ 13-11-30 (土) 18:12
-
[…] nginx+php-fpmをyumでインストールして、WordPress/CakePHPを動かす設定 – Shin x blog […]
- pingback from nginx + php-fpm | SREA 14-09-06 (土) 8:48
-
[…] nginx 起動スクリプトはこちら 参考サイト nginxの設定参考サイト phpをcgiでインストール […]
- pingback from nginx + php-fpm | SREA 14-09-06 (土) 8:55
-
[…] 参考サイト nginxの設定参考サイト phpをcgiでインストール […]
- pingback from php-fpm | programmers life 15-08-11 (火) 0:58
-
[…] 参考:http://www.1×1.jp/blog/2011/05/yum_install_nginx_php-fpm.html/trackback […]
- pingback from nginx + php-fpm – Yuki Tamazawa 16-03-12 (土) 18:31
-
[…] 参考サイト nginxの設定参考サイト phpをcgiでインストール […]