1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravel HomesteadでBAD GATEWAYが出る

Posted at

原因

根本的な原因は良く分からないけど、php-fpm が起動しない状態になることがある模様。。

ps -ef | grep php-f

実行で、php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf) が出ない場合、起動に失敗している。

※7.3以外が起動していても無効。
Nginxの設定ファイル(/etc/nginx/sites-enabled/homestead.test)内のfastcgi_passに指定されているphpのバージョンの php-fpm が起動している必要がある。

fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;

解決

sudo /etc/init.d/php7.3-fpm start

php-fpm を自力で立ち上げると解決する(はず)。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?