Created
May 30, 2013 20:53
-
-
Save kennonb/5681145 to your computer and use it in GitHub Desktop.
Optimize Debian Web Server based upon RAM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based upon 512 MB RAM | |
<IfModule mpm_prefork_module> | |
StartServers 1 | |
MinSpareServers 3 | |
MaxSpareServers 6 | |
MaxClients 24 | |
MaxRequestsPerChild 3000 | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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