0
0

More than 1 year has passed since last update.

【Laravel】PHP Fatal error: Maximum execution time of 60 seconds exceeded in vendor/symfony/polyfill-mbstring/Mbstring.php:635を対処する

Last updated at Posted at 2022-07-10

問題なく動いているLaravelアプリが入っているEC2インスタンスをコピーして動かすと謎エラーが発生した。

PHP Fatal error:  Maximum execution time of 60 seconds exceeded in vendor/symfony/polyfill-mbstring/Mbstring.php:635

どうやらmbstringが動いていないらしい。。

修正方法その① mbstringを再インストールする

mbstringはもちろんインストール済みではあったがなぜかphpinfoするとMultibyte decoding support using mbstringがdisabledだったので再インストールした。

$ yum remove php-mbstring
$ yum install php-mbstring

// php-fpmの再起動
$ sudo service php-fpm restart

// Apacheの再起動
$ sudo service httpd restart

が、状況は変わりませんでした。。。

修正方法その② インスタンス再起動

AWSコンソールからEC2インスタンスを再起動したら状況が改善されて正常に動くようになった!

まとめ

原因は謎ですがインスタンスを再起動したら直りました。
理由はわからないが、とりあえず動くのでこれでよしとしました、

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