Configure phpini » History » Revision 8
Revision 7 (Anchi Cheng, 06/01/2010 06:58 PM) → Revision 8/15 (Anchi Cheng, 06/01/2010 07:29 PM)
h1. Configure php.ini
Edit the following items in php.ini (found as /etc/php.ini on CentOS and /etc/php5/apache2/php.ini on SuSE) so that they look like the following:
<pre>
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
display_errors = On
register_argc_argv = On
short_open_tag = On
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 300 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume (8MB)
</pre>
You may want to increase max_input_time and memory_limit if the server is heavily used. At NRAMM, max_input_time=600 and memory_limit=4000M.
______
[[Install Web Server Prerequisites|< Install Web Server Prerequisites]] | [[Install Apache Web Server|Install Apache Web Server >]]
______