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

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ