How do I update the PHP on AWS Lightsail?

0

I am new to this and in wordpress it asks me to update the PHP 7.0 a 7.4 , try it but it does not work out :( I appreciate your help

Eladio
已提問 1 年前檢視次數 2936 次
2 個答案
0

Lightsail is a regular VM. That means that you can login to it and update the software. The method depends on what OS you chose for your VM when creating your instance. Note that there are images for lightsail that include Wordpress pre-configured which of course is a lot simpler.

AWS
已回答 1 年前
0

You have two general options:

  1. Create a newer WordPress instance and transfer the content (the latest WP instances run PHP 8) https://lightsail.aws.amazon.com/ls/docs/en_us/articles/migrate-your-wordpress-blog-to-amazon-lightsail
  2. Create an instance snapshot and use apt-get to upgrade to a newer version of PHP on the instance.

Migrating your content to a new instance is likely the safest route because you can export the content and test on the new instance before pointing the Static IP to the new instance (or updating the DNS record, but we recommend you configure a Static IP so you have more options in the future). It may require fiddling with some settings or using a 3rd party plugin if you have a lot of embedded images/media. The other advantage to this approach is that all the system software will be more up-to-date and tested together.

AWS
管理員
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南