Skip to content

Instantly share code, notes, and snippets.

@kennonb
Created May 30, 2013 20:53
Show Gist options
  • Save kennonb/5681145 to your computer and use it in GitHub Desktop.
Save kennonb/5681145 to your computer and use it in GitHub Desktop.
Optimize Debian Web Server based upon RAM
# Based upon 512 MB RAM
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 3
MaxSpareServers 6
MaxClients 24
MaxRequestsPerChild 3000
</IfModule>
# Based upon 512 MB RAM
key_buffer = 16M
max_allowed_packet = 1M
thread_stack = 64K
thread_cache_size = 8
max_connections = 75
table_cache = 32
# Based upon 1GB RAM
max_execution_time = 30
memory_limit = 128M
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = Off
log_errors = On
error_log = /var/log/php.log
register_globals = Off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment