30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuring PHP for Performance<br />

Zend Server Best Practices<br />

You may be able to add an additional performance boost to your PHP applications by properly configuring<br />

your PHP runtime environment settings. You can edit the directives below from the Administration<br />

Interface via Server Setup | Directives.<br />

Warning:<br />

Changing some of these settings may cause certain PHP applications to stop functioning. Therefore, use<br />

discretion when you disable them and test your environment: It is important that you fully understand the<br />

purpose of each directive before you modify it.<br />

Optimal php.ini configurations and settings for maximum performance optimization:<br />

Name Recommended<br />

Value<br />

Zend Server<br />

Default<br />

Description<br />

realpath_cache_size 256K 256K Determines the size of the realpath<br />

cache to be used by PHP. This<br />

value should be increased on<br />

systems where PHP opens many<br />

files, to reflect the quantity of the<br />

file operations performed.<br />

realpath_cache_ttl 120 120 Duration (in seconds) for which to<br />

cache realpath information for a<br />

given file or directory. For systems<br />

with rarely changing files, consider<br />

increasing the value.<br />

error_reporting E_ALL &<br />

~E_NOTICE<br />

E_ALL The error_reporting() function sets<br />

the error_reporting directive at<br />

runtime. PHP has many levels of<br />

errors: Using this function sets the<br />

error level for the duration<br />

(runtime) of your script.<br />

register_long_arrays Off Off Tells PHP whether or not to<br />

register the deprecated long<br />

$HTTP_*_VARS type predefined<br />

variables. When On (default), long<br />

predefined PHP variables (like<br />

$HTTP_GET_VARS) are defined.<br />

399

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!