php.ini Settings

This is now done by stage 5 of the installer and has been completely automated for all CentOS, RedHat Enterprise, Ubuntu, Debian, SUSE Enterprise and openSUSE systems that need it.

If you want to re-apply the settings, I would advise downloading the Installer and only let it do the stage where it sets up your Apache configuration and PHP settings. It will leave your existing Apache configuration alone if you have already set it up.

But for reference, here are the settings.

In CentOS, all these settings should go into /etc/php.ini.
In Ubuntu, all these settings should go into /etc/php/*/apache2/php.ini.

  • error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
  • max_execution_time = 28800
  • max_input_time = 28800
  • memory_limit = 300M
  • display_errors = Off
  • display_startup_errors = Off
  • log_errors = On
  • file_uploads = On
  • post_max_size = 50000M
  • upload_tmp_dir = /var/zendto/incoming
  • upload_max_filesize = 50G
  • max_file_uploads = 200
  • Set "date.timezone" to the relevant timezone you are in, for example "Europe/London".

In Ubuntu, you should also add this line to /etc/php5/cli/php.ini:

  • error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE