If you need to increase PHP limits like memory_limit
, upload_max_filesize
, or max_execution_time
to accommodate larger files or more intensive scripts, here’s how you can do it through cPanel:
memory_limit
, upload_max_filesize
, and max_execution_time
to your desired values.memory_limit
to 256M
, upload_max_filesize
to 50M
, and max_execution_time
to 300
.php.ini
File Directlyphp.ini
: Locate this file in your site’s root directory (public_html
). If it’s not there, create one.memory_limit = 256M upload_max_filesize = 50M max_execution_time = 300
Save the file after editing..htaccess
.htaccess
: Find this file in your root directory, or create it if it doesn’t exist..htaccess
: Add these lines to adjust PHP settings:iniCopy codephp_value memory_limit 256M php_value upload_max_filesize 50M php_value max_execution_time 300
Save the changes.
Leave a Reply