Changing PHP version on Linux/FreeBSD accounts

Changing PHP version on Linux/FreeBSD accounts

Note: The option to change PHP versions between php4 and php5 is only available on certain servers, as PHP4 is currently End of Life.

To change PHP versions on Linux/FreeBSD, do the following:

1. Select Domain info in the Domain Settings menu.

2. Click the Edit icon in the Web Service field.

3. On the Web Service page, scroll down to find the PHP option and click on the green arrow icon to the right of "PHP Mode".

4. Select the desired PHP version from the drop-down box and click Submit.

5. At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.

Optional steps
6. Starting with H-Sphere version 3.1, you can have more options to choose for PHP 4 and PHP 5. For this, first disable the PHP resource on the Web Service page and then enable the Advanced PHP resource below. You can choose between the following modes:

** libphp - PHP runs as an Apache module. The advantage is that PHP is always in memory use which results in a higher speed capability and lower server load. This is the default mode for PHP5.

** fastcgi - PHP also runs as a CGI script, but under a single process which does not stop when the script is executed. This allows to minimize server load while running PHP in CGI mode.

** cgi - PHP runs as a CGI script in a separate process which starts with each request and completes its work upon the script execution.

7. At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.
    • Related Articles

    • New Access Management User setup on Linux

      1) Login to your account 2) Select your access management service (customers with managed infrastructure in both the US and CAD will have two) 3) Navigate to Login to SolidCP -> Click Login 4) Click on Users under your Hosted ...
    • Change php version in cpanel

      Login to cpanel Search on the top left hand corner "php" Select "MultiPHP Manager" Under PHP-FPM make sure it's on. In the dropdown labeled php version you can select which version you want. Select the domain(s) you want to edit and click apply. ...
    • Linux

      Linux     System Information: Print Kernel and OS Release Versions: uname -r (or uname -a for all info) 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 cat /etc/*release* CloudLinux Server release 6.6 (Leonid Kizim) Linux Watch Limit: ...
    • Linux BMR (ReaR)

      Cartika has developed a new Linux BMR tool into our backups/dr and BaaS offerings.  This is more tightly integrated with our GUI and is based on the ReaR *nix server imaging technology. This new Linux BMR replaces the legacy/original Linux BMR. AS ...
    • Changing PHP Memory Limit via .htaccess

      If you get an error such as: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 317560 bytes) On your PHP scripts, you can fix it with a line in your .htaccess reading: php_value memory_limit 12M Simply modify the 12M to ...