PHP Manager by SuperHosting in cPanel

In cPanel you can change the PHP settings for all hosting plans offered by SuperHosting.BG.

You can change the PHP version, enable or disable PHP modules and change PHP directives. This can be done through “PHP Manager by SuperHosting”.

To change the PHP settings, log into cPanel and select “PHP Manager by SuperHosting” under the SuperHosting Tools menu.

Select PHP version for the hosting account

The first section of the settings is for choosing the PHP version for your hosting account.

You can see the version enabled by default, as well as all available alternative PHP versions installed on the server.

Alternative PHP versions that you can activate.
Alternative PHP versions that you can activate.

Next to each version there is a radio button you can use for selecting the version. Clicking on the “Change” button will enable the selected version for the entire hosting account and all of the hosted websites.

To change the PHP version for a particular directory/website on the hosting account, please refer to the “Set the PHP version for a particular directory” section.

The PHP version change applies to the entire hosting account; however, if you have also enabled a different PHP version in your own .ini file for a subdirectory of public_html before that, those will not be affected by the change. The relevant directory will continue to use the version enabled and the previous settings, whereas the new settings will be valid for the remaining directories of the account.

Note: Changing the PHP version may cause incompatibility issues with the applications installed on the hosting account, if those are not specifically developed for the selected PHP version. Therefore, it is recommended to confirm the proper operation of the websites after the change.

Changing the PHP Directives

Changing the PHP Directives

The most commonly used and set PHP directives are listed in the “Change PHP directives” section and you can change them.

There is a drop-down menu in the list next to each directive, which you can use to select the desired value. By clicking on the “Save” button, the value will be changed for the entire hosting account and all hosted websites.

If you want to change a directive that is not included in the list, you can directly modify the configuration file php.ini. This file is available for modification through the Advanced Settings option (the last section of the PHP manager).

PHP Modules Management

PHP Modules Management

In the “PHP modules management” section you will see a list of all PHP modules/extensions installed for the respective PHP version, which can be enabled/disabled.

To enable or disable a module, check or uncheck the box on the left of the respective module. Or use the Select all option to select all the modules in the list.

With the Restore defaults option, the settings can be restored to their original state.

By clicking on the “Save” button, the new setting will be enabled for the entire hosting account and all hosted websites.

If you need a PHP module that is not on the list, please send an inquiry to the Technical Support Department.

Advanced Settings

Advanced Settings - edditing the php.ini file

In the Advanced Settings section you can modify the content of the php.ini file.

By clicking on the Advanced Settings button the content of the php.ini file will load.

When you finish modifying, save the changes with the “Save” button.

This php.ini file is for the PHP version that is enabled for the hosting account.

Choosing a PHP Version for a Specific Directory

You can enable a different PHP version for a certain directory (website) in two easy steps.

From the options, select the PHP version and specify the desired directory. Finish the setup by clicking the Add button.

You need to create an .htaccess file or edit the existing one, located in the same directory. Afterwards, you should add the following lines to the file:

<IfModule mod_fcgid.c>
AddHandler fcgid-script .php
FcgidWrapper /home/cpuser/dir/php.fcgi .php
</IfModule>

/home/cpuser/dir/ – replace it with the path to the directory;

After saving the changes in the .htaccess file, the selected PHP version will be enabled for the specified directory. You can check the PHP version enabled for the directory by placing a PHP file with phpinfo().

Important: If there is an already existing .htaccess file that contains a line for PHP version setup, such as AddHandler x-httpd-phpXX .php, you will have to remove it.

Updated on 22.08.2023
Was this article helpful?

Related Articles