LoginSignup
0
0

More than 3 years have passed since last update.

nginx1.18 + php7.4.5 エラー対処メモ

Last updated at Posted at 2020-07-02

目次

  • 前置き
  • 環境

前置き

これはあくまで自分用のメモであり、また行う場合は必ずバックアップをとること

環境

  • Amazon Linux2
  • nginx1.18
    • user nginx
    • group nginx
    • root /home/ec2-user/environment
  • php7.4.5

エラー

404

  • nginxがnginx.confで設定したroot(ディレクトリ)に対してのパーミッション確認
  • /etc/php-fpm.d/www.confをuser:nginx group:nginx にする
    • その後sudo systemctl restart php-fpm でphp-fpmを再起動
  • /var/log/php-fpmの所有ユーザーは初期ではapacheになっている
    • chown nginx: php-fpm でnginxに変更する

403

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0