[英]How can I update PHP in Google Compute Engine from 5.6?
THere's a complete lack of information about Google Compute Engine and upgrading PHP Versions (it all seems to refer to App Engine). 完全缺乏有关Google Compute Engine和升级PHP版本的信息(所有这些似乎都指App Engine)。
Anyway, I'm running a Wordpress install on php 5.6, and need to upgrade to 7.3. 无论如何,我正在php 5.6上运行Wordpress安装,并且需要升级到7.3。
I can confirm this in the console by php -v
returning 5.6.17-0+deb8u1 (cli) (build: Jan 13 2016 09:10:12)
我可以在控制台中通过
php -v
返回5.6.17-0+deb8u1 (cli) (build: Jan 13 2016 09:10:12)
来确认这一点5.6.17-0+deb8u1 (cli) (build: Jan 13 2016 09:10:12)
Are there any decent instructions or guidelines on how to properly update this to the latest version of PHP? 关于如何正确地将其更新到最新版本的PHP,是否有任何体面的说明或准则?
GCE offers you a virtual machine, so, in the end, to update your version to the latest of right now (7.3), you have to do as you would do with a normal system. GCE为您提供了一个虚拟机,因此,最后,要将您的版本更新到现在的最新版本(7.3),您必须像在常规系统上一样进行操作。
Since you are using Debian, you can find how to update to the latest PHP version here . 由于您使用的是Debian,因此您可以在此处找到如何更新到最新的PHP版本。
sudo apt upgrade -y
sudo apt upgrade -y
更新系统 sudo apt -y install lsb-release apt-transport-https ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.3.list
sudo apt update && sudo apt -y install php7.3
sudo apt update && sudo apt -y install php7.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.