PHP Server Configurations

Last Updated onFebruary 20, 2022

Having a proper server configuration is very essential for upload & installation process. While the installation process, low server limits may lead to errors such as Internal Server Error or Are you sure you want to do this? So make sure that you are having the equivalent or higher variable limits compare to the below.

max_execution_time = 300
max_input_vars = 2000
memory_limit = 128M
post_max_size = 32M
upload_max_filesize = 32M

Changing PHP Variables on Self Managed Hosting

Here, you can find the instructions to change PHP configurations on self managed hosting/server providers such as DigitalOcean, Google’s VM, Amazon’s EC2, Azure’s VM

  1. Login to your instance through Terminal or Account’s Instance page.
  2. Go to /etc/php8/apache2/ for Apache 2 or /etc/php/8/ for Nginx server.
  3. Find the above listed variables and change the values to recommended one.

Changing PHP Variables on Managed Hosting

For cPanel Users:

  1. Login to your cPanel account directly through cPanel site or through your hosting account
  2. Click “Select PHP Version” under “Softwares” tab.
  3. Switch to PHP options by clicking “Switch to PHP Options” at Top Right of the Extensions.
  4. Now you can find all the listed variables with values respectively. you can change it to recommended one.

Note: If you don’t have an access to php.ini or create php.ini please contact your hosting provider to increase the limits for you.