How can I change PHP Version and modify the PHP.ini file? How can I change PHP Version and modify the PHP.ini file?

Keliweb provides several affordable hosting solutions (such as KeliCMS, a shared plan for Drupal, Joomla!, Wordpress, etc. and KeliSSL for Facebook applications and e-commerce websites requiring an SSL Certificate) offering you the possibility to change the PHP version and easily set PHP.ini, directly from cPanel

If you buy one of these plans, cPanel will be automatically provided with four innovative functions to: 

  • choose the PHP version you prefer for your website, including the latest releases
  • configure the PHP.ini configuration file as you wish, without using a text editor
  • enable or deactivate 100 additional PHP modules.

To access these features you have to follow a few steps:

1) Enter your cPanel and look for the  “Select PHP Version” icon on the dashboard;


2) Choose between the native version of  PHP (the default one) or between PHP 4.4, 5.1, 5.2, 5.3, 5.4 o 5.5 and click on “Set as current”, to make the core of the chosen language available;  



3) Modify  PHP.ini using the graphic interface, directly from cPanel, by clicking on “Show PHP Extensions”. In the table, you will find all PHP characteristics (a number, a string or a text field, depending on cases). 
You can change the  max_execution_time of your scripts from 30 to 25 seconds and modify the parameter error_reporting (E_ALL or E_ALL & E_NOTICE). All these changes are valid for all fields in the page and they can be very useful when you process your website's debug.



Here is the full table of all the parameters  you can set.


Permitted Value



On/Off (On)

It enables wrapper URL for fopen.


Off/On (Off)

It determines if the errors have to be displayed as part of the output or be hidden to the user.



It allows to set the error level to ease the debug procedure. 


1/0 (1)

It enables (1) or not (0) the upload of files on the server


Directory (".;/path/to/php/pear")

Directory where the require, include, fopen(), file(), readfile() e file_get_contents() functions will search for the website's files.


On/Off (On)

It determines if  the error messages have to be recorded in the default  errorlog  or in a dedicated file (useful for the development process).



It adds extra parameters to e-mails for sendmail


Numeric (30)

It determines the maximum amount of seconds before the interruption of a script.


Numeric (60)

It determines the maximum amount of seconds for a script to receive input data, such as POST, GET and generic upload. 


Numeric (128M)

It fixes the maximum amount of storage (in bytes)  for scripts.


Directory (NULL)

It limits the files that can be opened to a specific folder containing the file itself. 


Numeric (8M)

It sets the maximum size of POST and files' upload.  


On/Off (On)

It enables or not  the short version of tag of the PHP opening (for example <? ?>) 


Numeric (2M)

Maximum dimension of a file sendable on server (in MB)


4)  Enable or disable, in a few clicks, several modules such as dba, sourceguardian, xcache_3 and many more. Here is a short list of the most popular ones:

  • apc: (Alternative PHP Cache): alternative free e open source cache, providing a real framework to optimize the code and performances on pages; 
  • mcrypt: to enable data protection, using public/private keys; 
  • sourceguardian: to add an additional layer in the system to encrypt the source code (useful to add non-editable pages of a website); 
  • mongo: to enable the PHP server to interface with Mongo, a schemeless database (NoSQL) without a preset structure of columns, used by Google in the  BigTable project;
  • rsync: to synchronize files and folders;
  • json: to support  JSON strings;
  • suhosin:  for system's security;
  • mbstring: to enable multibyte strings in addition to specific functions;

To save the custom configuration click on "Save" and to restore the default configuration  click on "Use Defaults".

Have you found it useful?

share Related research