HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


How to change PHP version on Business servers

This guide will show you how to manage PHP settings on our Business servers (Stellar Business and old Business SSD plans).
 
For managing PHP settings on Shared servers (Stellar, Stellar Plus plans and old Value, Professional, Ultimate plans), please check this article.


Our Business servers are running with LiteSpeed module and have PHP 5.2 - 5.6, 7.0 - 7.4, 8.0 and 8.1 versions available. To change the PHP version for your domains, follow these steps:

 

 
 
How to manage PHP settings using the PHP Tweaks plugin

 

 

For cPanel Basic Theme:

 

1. Log into your cPanel.
 

2. Go to the Exclusive for Hostseo Customers section >> the PHP Tweaks menu:



3. You can select the domain from the corresponding drop-down menu and manage the following group of settings:



The PHP version section allows you to check the version which is currently used and set the required one.

NOTE: The list of the available modules varies depending on the PHP version you select.



The Loaders and Caches sections allow you to choose the PHP loader for your scripts and the PHP accelerator for caching the compiled bytecode of your PHP scripts.



The Others section provides you with the list of additional modules and extensions which can be enabled according to your needs:

 
PHP extensions enabled via PHP Tweaks are active for scripts processed by a web-server. In case you encounter any PHP related issues when you are working via a command line or installing scripts through Softacuous, please contact our Support team for further assistance.
 
NOTE: There are the following modules conflicts:
  • nd_mysql conflicts with mysql;
  • nd_mysqli conflicts with mysqli;
  • nd_pdo_mysql conflicts with pdo_mysql;
  • gmagick conflicts with imagick.


4. Should you need to reset PHP configuration you currently have, select the domain name and hit Reset Extensions. That will revert all the changes and roll your PHP settings for the domain in question back to the default state:

 

 

For cPanel Retro Theme:

 

1. Log into your cPanel.
 
2. Go to the Exclusive for Namecheap Customers section >> the PHP Tweaks menu:



3. You can select the domain from the corresponding drop-down menu and manage the following group of settings:



The PHP version section allows you to check the version which is currently used and set the required one.

NOTE: The list of the available modules varies depending on the PHP version you select.



The Loaders and Caches sections allow you to choose the PHP loader for your scripts and PHP accelerator for caching the compiled bytecode of your PHP scripts.



The Others section provides you with the list of additional modules and extensions which can be enabled according to your needs:

 
PHP extensions enabled via PHP Tweaks are active for scripts processed by a web-server. In case you encounter any PHP-related issues when you are working via a command line or installing scripts through Softacuous, please contact our Support team for further assistance.

NOTE: There are the following modules conflicts:
  • nd_mysql conflicts with mysql;
  • nd_mysqli conflicts with mysqli;
  • nd_pdo_mysql conflicts with pdo_mysql;
  • gmagick conflicts with imagick.

4. Should you need to reset PHP configuration you currently have, select the domain name and hit Reset Extensions. That will revert all the changes and roll your PHP settings for the domain in question back to the default state:



 



How to work with a php.ini file

Apart from the PHP Tweaks plugin, you may need to alter some of the settings using a php.ini file. One of the most common requests is to increase memory_limit, post_max_size, and upload_max_filesize limits which can be done with the help of a php.ini file. You may use this guide on how to edit the php.ini file.

That's it!

 

 

Need any help? Contact our HelpDesk

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 12
3456789
10111213141516
17181920212223
24252627282930
31 

Born in 2004 ... Trusted By Clients n' Experts