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
preguntada hace un año2933 visualizaciones
2 Respuestas
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
respondido hace un año
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
MODERADOR
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas