Project

General

Profile

Configure phpini » History » Version 11

Amber Herold, 07/09/2010 10:51 AM

1 1 Amber Herold
h1. Configure php.ini
2
3
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:
4
5
6 11 Amber Herold
bq. error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
7
 
8 4 Neil Voss
display_errors = On
9 11 Amber Herold
 
10 1 Amber Herold
register_argc_argv = On
11 11 Amber Herold
 
12 1 Amber Herold
short_open_tag = On
13 11 Amber Herold
 
14 1 Amber Herold
max_execution_time = 300     ; Maximum execution time of each script, in seconds
15
max_input_time = 300     ; Maximum amount of time each script may spend parsing request data
16
memory_limit = 256M      ; Maximum amount of memory a script may consume (8MB)
17
18
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.
19 2 Amber Herold
20
21
______
22
23
[[Install Web Server Prerequisites|< Install Web Server Prerequisites]] | [[Install Apache Web Server|Install Apache Web Server >]]
24 3 Amber Herold
25
______