0
0

More than 1 year has passed since last update.

【Wordpress】PHP Update Requiredの対応方法について(EC2に接続してアップグレードする)

Posted at

前提

PHP Update Requiredの警告

  • PHP7.0であることに対して警告が表示されていることを確認

image.png

  • WordpressがインストールされているEC2インスタンスへ接続。
  • 以下を実施して、PHP7.4にupgrade
sudo apt update
sudo apt dist-upgrade
sudo apt install php7.4
sudo apt install php-pear php7.4-curl php7.4-dev php7.4-gd php7.4-mbstring php7.4-zip php7.4-mysql php7.4-xml php7.4-fpm
  • cd /etc/apache2/mods-enabled/で確認すると理由は不明だがphp7.0が有効になっていたので、以下を実施してPHP7.4を選択&PHP7.0を無効化してAPACHE再起動。
ls -l php*
sudo a2enmod
sudo a2dismod php7.0
sudo service apache2 restart
  • Wordpress管理画面→先ほどまで表示されていた警告が消えたことを確認。

参考記事:

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