2020年5月21日木曜日

nginx x phpfpm(設定メモ)



以下を追加する。

[sample]
------------------------------------------------------------------------------------------------
 server {
          listen 80;
          server_name localhost;
          access_log /var/log/nginx/access.log main;
          error_log /var/log/nginx/error.log;
          root /var/www/html;

          location / {
          index index.php index.html index.htm;
          }

              location ~ \.php$ {
              fastcgi_pass 127.0.0.1:9000;
              fastcgi_index index.php;
              fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
              include fastcgi_params;
              }
          }
}
-------------------------------------------------------------------------------------------------

サービスの確認を行う。
systemctl restart nginx


vi /etc/php-fpm.d/www.conf


0 件のコメント:

コメントを投稿

AIツール断捨離の果てに

  導入 ハード環境 : Mac Studio M4 Maxの導入。 背景 : 以前から使い倒してきたITエンジニアとして、話題のAIツール(Cursor, Zed, Void, Continue, Roo Codeなど)を片っ端から実戦投入してみたこと。 目的 : ツールをいじ...