How to edit php.ini on shared servers

The php.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload file’s size, timeouts, and resource limits.

Note: we recommend using our default php.ini file, which includes default php settings.

To copy our default php.ini file the following steps should be performed:

- log into your cPanel;

- navigate to “Tweak php.ini” icon;


- click “Copy”;


This will place our default php.ini file in your document root directory. If you had no php.ini there previously the corresponding file will be created, if you had custom php.ini file it will be overwritten.

 

To modify the newly created file simply click on “Modify” button right below in the same menu and change the required parameter.  



You can also find this php.ini in File Manager -> public_html folder


To modify it, locate the file and click “Code Editor”

 

Add your changes and hit “Save Changes” button after modification.

Once the modifications are completed, you should add SuPHP configuration directive to .htaccess file if you want to enable php.ini changes for the account on a global level.

 

  • 2 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

How to check PHP version and configuration

Phpinfo() function is commonly used to check the current state of PHP configuration. It can also...

How to use PHP Selector

In some cases correct functioning of your website depends on PHP version installed on the...

How to switch PHP version on shared servers

Our shared servers are set up to allow each customer to choose the PHP version to use for the...

SuPHP directive for php.ini on shared servers

SuPHP (Single user PHP) is a php handler, which executes PHP scripts with the permissions of...

How to switch PHP version on business servers

Our business servers are running with FSGI module and have PHP 5.2, 5.3, 5.4, 5.5 versions...

Powered by WHMCompleteSolution