Upgrading PHP version on Linux for Apache
-
Install the Apache module for specific php version
-
Copy the php.ini from previous version to newer version after making a backup of the original php.ini for new version.
-
Install specific php modules for Apache and enable the php modules on new version of php.
-
Disable old php version, enable new version and restart Apache server.