https://help.superhosting.bg/en/php-manager-by-superhosting.html
  • bg
  • en

Hosting, Domains, Cloud, Virtual Private Servers (VPS), Managed VPS, SSL Certificates

PHP Manager by SuperHosting

Control Panel cPanel
php manager, php-manager. php version, php modules, php directives

PHP Manager by SuperHostingIn 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 link-to-this-section

Change the PHP version for the hosting acoount

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

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

Next to each version (2) 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.

info-iconNote: 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.

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.

Changing the PHP Directives

Changing the PHP DirectivesThe 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 ManagementIn 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.

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

You can also enable the PHP module/extension through a php.ini file.

info-iconIf 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 fileIn 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().

info-iconImportant: 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.

500px270px
SuperHosting.BG

Comments

Be the First to Comment!

Notify of
avatar
wpDiscuz
All rights reserved © 2005-2017 , www.superhosting.bg