Skip to content

Updating PHP to the Latest Version

Process

  1. SSH into the Bastion
  2. SSH into one of the webservers
  3. Run: sudo apt update
  4. Run: sudo apt search php
  5. Find the version to install in the list
  6. Run: sudo apt install %PHPVersion%
  7. Run: sudo apt install %PHPVersion%-mongodb %PHPVersion%-redis %PHPVersion%-gmagick %PHPVersion%-mbstring %PHPVersion%-mysql %PHPVersion%-xml %PHPVersion%-xmlrpc %PHPVersion%-gd %PHPVersion%-mcrypt %PHPVersion%-imagick %PHPVersion%-curl %PHPVersion%-dev %PHPVersion%-zip %PHPVersion%-opcache

Replace %PHPVersion% with the version number found in step 5 (e.g., php8.4).

Last modified by: Unknown