Hostrs

< All Topics
Print

PHP Configuration

step 1:Log in to your cPanel>>PHP Configuration>>Advanced

Step 2:Search for PHP version on the cPanel Dashboard
Once you are logged in, enter ‘php’ in the search text box and click the link ‘Select PHP version’ as shown below:

p 3

Step 3:Change the PHP version
You can now see the available PHP versions on the next screen as well as all associated PHP modules or extensions. You can click on the drop-down checkbox to switch to your preferred PHP version. For instance, if your software only works with a certain version, choose it from the list as shown below and click ‘Set as current’:

pp

Step 4:Enable/disable PHP extensions
You can also select/deselect any PHP extension from the list by checking/un-checking the box on the right side of an extension name. For instance, to enable ‘my sqli ‘extension, check the box as shown below:

ppp

To save the changes, click the ‘Save’ button as shown above.

Step 5:Customize PHP options
On the same screen, locate the link ‘Switch To PHP Options’ at the top right and click it as shown below:

pppp

On the next screen, you can see different PHP options that you can customize as shown below:

ppppp

In most cases, you will be tweaking the following options

display errors: This value is ‘off’ by default, if you change it to ‘On’, errors on PHP scripts will be displayed on the browser.

max execution time: This value displays the maximum execution time a script should run. You may set the value to a higher limit if you want.

post max size: This value displays the max value that can be accepted by POST and GET variables. This is most common in web forms.

upload max size: You may tweak this value to adjust the maximum upload file size that should be supported on your website. For instance, if you are uploading a large MySQL database, you might need to adjust this value.