How To Change PHP Configuration?


There are  2 ways to do this. Please follow the below steps :

Step 1 : 

 

You can add the PHP.INI file under your root folder of domain and make changes in that.

 

magic_quotes_gpc = Off;

register_globals = Off;

default_charset = UTF-8;

memory_limit = 512M;

max_execution_time = 36000;

upload_max_filesize = 999M;

safe_mode = Off;

mysql.connect_timeout = 20;

session.use_cookies = On;

session.use_trans_sid = Off;

session.gc_maxlifetime = 172800;

allow_url_fopen = on;

;display_errors = 1;

;error_reporting = E_ALL;

 

 

Step 2 :

You can also change the configuration directly from cPanel . Please follow the below steps for the same : 


1: Log in to your cPanel.


2: Click the "PHP Configuration" or "Select PHP version" button in the Software section.


3: Now you will see "Switch To PHP Options" you just need to click on this option.


4: Then you can set the values according to your requirement.


5:  After setting the values click on save. 


If still, you are Facing any issue Please Click Here to raise a ticket to our Support team

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

I Want To Enable/Disable PHP Extension

I Want To Enable/Disable PHP Extension When you change the PHp version some extensions are enable...

How To Change PHP Version For My Hosting

How To Change PHP Version For My Hosting To change the PHP version of your hosting is very easy...

How to Enable curl extension ?

Steps to Enable the "cURL" Extension in Cpanel "cUrl" PHP  extension is enabled (by default) in...