Skip to content

Instantly share code, notes, and snippets.

@arbo-hacker
Last active October 16, 2016 03:20
Show Gist options
  • Save arbo-hacker/46862cf2e33a8b29f781a600cd8f78ed to your computer and use it in GitHub Desktop.
Save arbo-hacker/46862cf2e33a8b29f781a600cd8f78ed to your computer and use it in GitHub Desktop.
Optimización de Apache para Wordpress
Timeout 100
KeepAlive On
MaxKeepAliveRequests 1000
KeepAliveTimeout 5
<IfModule mod_fastcgi.c>
AddType application/x-httpd-fastphp5 .php
Action application/x-httpd-fastphp5 /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 25
ThreadsPerChild 25
MaxRequestWorkers 250
MaxConnectionsPerChild 10000
ServerLimit 12
</IfModule>
[www]
user = www-data
group = www-data
listen = /var/run/php5-fpm.sock
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment