WHAT'S NEW?
Loading...

How to use Custom php.ini file cPanel/WHM

How to use custom php.ini file to increase memory limit,upload size,adding extension and more works.
Before doing on this the server should able to support custom php.ini configuration (All our servers support custom php.ini config's)

How to create an file ?
* Login to your cPanel > Filemanager
* Create an new file named "php.ini" (Note : the file should be created inside /public_html Directory)
* Edit the file using the editor

If you need to increase the memory limit use the following code :

memory_limit = 32M;

You can view the list of PHP Directives to set your configuration

http://php.net/manual/en/ini.list.php

To confirm the made changes you can use the phpinfo file :

Create an file named "phpinfo.php" inside /public_html

Paste the below code and save the file
<?php
phpinfo();
?>

It will show the PHP Configuration :)

0 comments: