How to upgrade your PHP version Updated on May 17, 2023 by InMotion Hosting Contributor 1 Minutes, 51 Seconds to Read InMotion Hosting offers PHP hosting with servers that cater to different PHP versions to meet individual customer requirements. Dedicated and VPS server users can upgrade to newer PHP versions if needed. On Shared servers (not available on all servers), PHP versions can be changed through cPanel. Information regarding supported PHP versions in AlmaLinux 8 is also provided. Switching the PHP Version in cPanel Upgrading on a VPS or Dedicated Server If You Cannot Change the PHP Version in cPanel PHP Versions Supported in AlmaLinux 8 Switching the PHP version in cPanel On many of our newer servers, you can switch the PHP version through your cPanel. To learn how to change the PHP version, see our article on How to change the PHP version your account uses. Upgrading on a VPS or Dedicated server On VPS and Dedicated servers, you can upgrade the server PHP version through your WHM. For information on how to do this see our How to Upgrade PHP Using EasyApache article. If you cannot change the PHP version in cPanel If you do not have a VPS or Dedicated server and you cannot change the PHP version in cPanel then you will need to contact tech support to have your account moved to a server with a newer version of PHP. Moving your account to another server will not have any downtime. The account move is done by our systems support so no action is required on your end. When submitting a ticket for this, please let them know what version of PHP you need and verify the account with the last 4 digits of the credit card on file and our systems support will move you ASAP. PHP Versions Supported in AlmaLinux 8 If you are using AlmaLinux 8, then only the following versions of PHP are available through EasyApache 4: PHP 7.2 PHP 7.3 PHP 7.4 PHP 8.0 PHP 8.1 The following versions PHP will not be available when using AlmaLinux 8. PHP 5.4 PHP 5.5 PHP 5.6 PHP 7.0 PHP 7.1 In order to see the most recent PHP versions available, you can run the following command: repoquery --repoid=EA4 --queryformat="%{name}" | grep -Eoh "ea-php[0-9]{2}" | sort | uniq AlmaLinux 8 does not provide support for loading the legacy versions of PHP (pre-version 7.2). Support for these earlier versions can loaded using CentOS. Share this Article Related Articles How To Create a PHP Redirect (301, 302, and Dynamic Redirect Examples) Connect to SFTP for Shared Hosting Accounts Using FileZilla FTP Basics for Dedicated Servers How to Install Jekyll and Launch a New Site How to Host AI-Prompt Generated Websites on Shared Hosting What is your default PHP.ini file? Getting Started Guide: FTP Configuring your site in WS_FTP Schedule Social Media Posts With Buffer FTP Error – 421 Too Many Connections
Thanks for shearing such beautiful information with us. I hope you will shear some more info about…..Please Keep sharing!
Dear Hosting Provider, I want my website to be as performant and secure as possible with the latest version of PHP. For the server my WordPress site is hosted on, I want to ensure that is the case. If I am not already on the latest version of PHP, please let me know what steps I need to take to update. Thanks!
hello dear friend i need for help i upload my desgin of website in new cpanel but the new cpanel is new version i change virsion from cpanel some old version but not solved my problem please help me this is my website www.ayil.af how can change php version from sorces cod of php this is from old cpanel .htaccess RewriteEngine on RewriteCond $1 !^(index\.php|nayil|bootstrap|images|frontend|js|user_guide|css|fonts|vendors|froala|assets|media|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] and php.ini ini_set(‘extension’, ‘php_fileinfo.so’); but now i can’t work in new version of new cpanel
Changing the PHP version installed on the server (source code) would require a VPS or Dedicated Server with root access. cPanel provides documentation for using EasyApache 4 to change the server’s PHP version. I hope this helps!
Same as Garret, can not see the EasyApache option. I’ve tried logging directly to WHM and through my CPanel and do not get the same WHM example images Inmotiong uses as examples. Need to upgrade to at least PHP 5.4.8. Also tried to log in to support center (forgot username) but it gives an SMTP error from your site…? Thanks