Custom php.ini: Difference between revisions
From Leo's Notes
This page was last edited on 24 February 2017, at 04:26.
Created page with "On servers that use suPHP, you can use a custom php.ini files for each individual website. While not all options can be changed depending on the system setup, it can be used t..." |
m Text replacement - "{{Highlight" to "{{highlight" |
||
| Line 4: | Line 4: | ||
Create a php.ini file with the following: | Create a php.ini file with the following: | ||
{{ | {{highlight|lang=text|code= | ||
display_errors = 0 | display_errors = 0 | ||
error_reporting = E_ALL & ~E_NOTICE | error_reporting = E_ALL & ~E_NOTICE | ||
| Line 12: | Line 12: | ||
The upload size is limited by both the maximum POST size and PHP's maximum file upload size. | The upload size is limited by both the maximum POST size and PHP's maximum file upload size. | ||
{{ | {{highlight|lang=text|code= | ||
upload_max_filesize = 128M | upload_max_filesize = 128M | ||
post_max_size = 128M | post_max_size = 128M | ||
Latest revision as of 04:26, 24 February 2017
On servers that use suPHP, you can use a custom php.ini files for each individual website. While not all options can be changed depending on the system setup, it can be used to change some default settings that you may normally want tweaked.
Error Reporting
Create a php.ini file with the following:
display_errors = 0
error_reporting = E_ALL & ~E_NOTICE
Upload Size Change
The upload size is limited by both the maximum POST size and PHP's maximum file upload size.
upload_max_filesize = 128M
post_max_size = 128M