문제 설명
Wordpress가 새 PHP 버전을 감지하지 못합니다 (Wordpress doesn't detect new php version)
Google Cloud Platform에는 Wordpress가 설치된 Ubuntu 18.04.1이 있는 VM 인스턴스가 있습니다. Site Health 아래의 Wordpress 대시보드에 PHP 버전 7.2.29가 있다고 표시됩니다. 그래서 VM 인스턴스 콘솔로 이동하여 다음을 사용하여 PHP를 업그레이드했습니다.
$ sudo su
$ add‑apt‑repository ppa:ondrej/php
$ apt‑get update
$ apt‑get install php7.3
지금 작성할 때:
$ php ‑v
PHP 7.3.16‑1+ubuntu18.04.1+deb .sury.org+1
, 그래서 PHP 7.3.
지금까지는 아주 좋습니다. systemctl restart apache2
로 아파치를 다시 시작했습니다. Wordpress 대시보드로 돌아갔습니다. 하지만 여전히 PHP 7.2를 실행 중이라고 나와 있지만 제 생각에는 새로운 PHP 7.3을 감지해야 합니다.
Google을 검색했지만 운이 별로 없었습니다. 도움을 주시면 감사하겠습니다.
참조 솔루션
방법 1:
sudo a2dismod php7.2
sudo a2enmod php7.3
then restart apache
(by user3007875、userX)