PDA

View Full Version : How to increase PHP values in WHM?



Fli
04-27-2014, 08:00 PM
I searched for this and found, so i want to spread the solution.


When one get error like:


Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 355 bytes) in /home/*/public_html/*.php on line *

It means script was not able to use memory which it requires. So in this case in WHM (webhosting manager from cpanel) the memory_limit value can be increased from WHM / Service configuration / PHP Configuration editor


When one get error like:


Fatal error: Maximum execution time of 30 seconds exceeded in /home/*/public_html/*.php on line *

it means that script needed to run more than 30 seconds, but it was not allowed to run more seconds. The max_execution_time value can be increased in WHM / Service configuration / PHP Configuration editor

Fadwa14
07-10-2014, 04:59 AM
Unfortunately, this is something you will have to ask you provider to do.

If your the owner of the server and can login to WHM it's under:

Tweak Settings => PHP Settings => Maximum Upload Size

c0rrupt
07-16-2014, 06:18 PM
Some hosts allow you to have a php.ini file in your root directory to allow you to change file upload size and other settings.