Apacheをやめて、Nginx+PHP-FPMでHTTP/3(h3)
※※※※※※※※※※※※※書いてる途中です。
Apache大好きだけどHTTP/3の対応が遅いのでNginx環境にしてみた。
Apache大好きだけどHTTP/3の対応が遅いのでNginx環境にしてみた。
//Nginxをインストール # yum -y install nginx //Apacheを停止&自動起動Off # systemctl stop http # systemctl disable http //Nginxを起動&自動起動On # systemctl start nginx # systemctl enable nginx # vi /etc/php-fpm.d/www.conf ---------------------------------------- user = nginx group = nginx listen.acl_users = nginx ---------------------------------------- # vi /etc/nginx/nginx.conf ----------------------------------------------------------------------- location / { index index.html index.htm index.php; } location ~ \.php$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_pass unix:/var/opt/remi/php81/run/php-fpm/www.sock; } -----------------------------------------------------------------------
記事の内容で気づきや発見、助けられた場合にPayPalで送金(投げ銭)する事もできます。
頂いたお金はサイト運用費に当てさせて頂きます。
コメントを残して頂くだけでもモチベーションアップに繋がります(*^^*)
コメント
* 誤字脱字、内容の間違いのご指摘もお願いします
* ネガティブコメントは非表示にする場合がございます
* 独自のスパムチェックを導入してます