Project

General

Profile

Configure phpini » History » Revision 13

Revision 12 (Neil Voss, 08/09/2011 10:54 AM) → Revision 13/15 (Anchi Cheng, 03/09/2012 10:18 AM)

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)  

 <pre> 
 sudo nano /etc/php.ini 
 </pre> 

 so that they look like the following: 


 bq. error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING 
 &nbsp; 
 display_errors = On 
 &nbsp; 
 register_argc_argv = On 
 &nbsp; 
 short_open_tag = On 
 &nbsp; 
 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) 

 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. 

 You should also set timezone using one of the valid string found at http://www.php.net/manual/en/timezones.php like this: 

 bq. date.timezone = 'America/Los_Angeles' 
 


 ______ 

 [[Install Web Server Prerequisites|< Install Web Server Prerequisites]] | [[Install Apache Web Server|Install Apache Web Server >]] 

 ______