How to modify cPanel PHP configuration
Posted by on 12 July 2017 07:30 AM

This article will guide you how to modify php settings in cPanel.

As we all know CMS like WordPress, PrestaShop, Joomla, etc are often used these days for building websites and some of them require additional php configuration. The exact values of the php settings that need to be modified are usually described in the documentation of the software or in their forums.

Each cPanel account has its own php.ini file which can be found at /home/cpaneluser/public_html/, if it does not exist you can create it via your FTP client or the File Manager(cPanel feature). Now when you have this done and you want to change the php memory limit to 512MB, all you need is to add the following line of code into it:

memory_limit = 512M;

If you have a website based for an example on PrestaShop you'd mostly face the following php requirements:

  • memory_limit = 128M;
  • max_execution_time=300;
  • max_input_time=-1;
  • upload_max_filesize=25M;
  • post_max_size=20M;
  • max_input_vars=10000;

You can also check the current values of the above settings by creating info.php file into your public_html/ directory containing the following lines of php code:

<?php phpinfo(); ?>


Comments (0)
Help Desk Software by Kayako fusion