Configure phpini » History » Version 13
Anchi Cheng, 03/09/2012 10:18 AM
1 | 1 | Amber Herold | h1. Configure php.ini |
---|---|---|---|
2 | |||
3 | 12 | Neil Voss | Edit the following items in php.ini (found as /etc/php.ini on CentOS and /etc/php5/apache2/php.ini on SuSE) |
4 | |||
5 | <pre> |
||
6 | sudo nano /etc/php.ini |
||
7 | </pre> |
||
8 | |||
9 | so that they look like the following: |
||
10 | 1 | Amber Herold | |
11 | |||
12 | 11 | Amber Herold | bq. error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING |
13 | |
||
14 | 4 | Neil Voss | display_errors = On |
15 | 11 | Amber Herold | |
16 | 1 | Amber Herold | register_argc_argv = On |
17 | 11 | Amber Herold | |
18 | 1 | Amber Herold | short_open_tag = On |
19 | 11 | Amber Herold | |
20 | 1 | Amber Herold | max_execution_time = 300 ; Maximum execution time of each script, in seconds |
21 | max_input_time = 300 ; Maximum amount of time each script may spend parsing request data |
||
22 | memory_limit = 256M ; Maximum amount of memory a script may consume (8MB) |
||
23 | |||
24 | 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. |
||
25 | 2 | Amber Herold | |
26 | 13 | Anchi Cheng | You should also set timezone using one of the valid string found at http://www.php.net/manual/en/timezones.php like this: |
27 | 2 | Amber Herold | |
28 | 13 | Anchi Cheng | bq. date.timezone = 'America/Los_Angeles' |
29 | 2 | Amber Herold | ______ |
30 | |||
31 | [[Install Web Server Prerequisites|< Install Web Server Prerequisites]] | [[Install Apache Web Server|Install Apache Web Server >]] |
||
32 | 3 | Amber Herold | |
33 | ______ |