Edit PHP settings with php.ini

This topic covers processes relating to the operation of a cPanel service, if you cannot access your service – first follow this guide before continuing.

When installing custom plugins and themes quite often the developer will require you to set custom (increased) limits for common PHP environment variables such as;

  • upload_max_filesize
  • post_max_size
  • memory_limit
  • file_uploads
  • max_execution_time

To update any of these settings follow these steps:

  1. Login to cPanel – if unsure on how to do so check this article.
  2. Navigate to File Manager.
  3. Select public_html.
  4. Use the +File button to create a new file and call it php.ini.
  5. Open the php.ini file you created and edit as required.

Common options for a php.ini file that might be useful could be:

upload_max_filesize = 64M
post_max_size = 32M
memory_limit = 192M
max_input_vars = 3000
max_execution_time = 180
Was this article helpful?
Dislike 1