How to Change the Custom Local PHP Settings in Web Host?
This provides a simple user interface for editing the local .ini settings. It can be used for changing the settings like upload_max_filesize or max_execution_time which will often set a very low value by the web hosting companies.
By Clicking on to the “Save Settings” will be creating 3 files: .user.ini, php.ini and php5.ini and then you need to save the settings without even reloading the page. It will be containing all the core PHP settings as well as their active values. Settings which are successfully overridden becomes the highlights in the table. Here you can click on any of the settings that is in the table and then by copying it to the editor.
One should always remember that there can be lots of errors which can be caused with the Zend as well as other PHP extensions which places an “extension” line in the php.in in web hosting. Suppose if there is someone who has placed their own php.ini in the public_html directory, this will be breaking the Zend Optimizer in the web hosting account.
What are the things that needs to be done while creating a php.ini in the public_html and then modifying it with the necessary lines in a web hosting account. This can be achieved by using the following command.
cat /usr/local/lib/php.ini >> /home/username/public_html/php.ini
This will be taking whatever is in the /usr/local/lib/php.ini and append it to the php.ini in the respective directory.
For making a php.ini file recursive you will be required to place it in the .htaccess file:
Replace <user> in the line above with your cPanel / FTP username.
These are the few steps by which you can change the Custom Local PHP Settings in the web hosting account.