How do you increase the max number of concurrent connections in Apache?

Here’s a detailed explanation about the calculation of MaxClients and MaxRequestsPerChild http://web.archive.org/web/20160415001028/http://www.genericarticles.com/mediawiki/index.php?title=How_to_optimize_apache_web_server_for_maximum_concurrent_connections_or_increase_max_clients_in_apache ServerLimit 16 StartServers 2 MaxClients 200 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 First of all, whenever an apache is started, it will start 2 child processes which is determined by StartServers parameter. Then each process will start 25 threads determined by ThreadsPerChild parameter … Read more

Apache redirect to another port

You should leave out the domain http://example.com in ProxyPass and ProxyPassReverse and leave it as /. Additionally, you need to leave the / at the end of example/ to where it is redirecting. Also, I had some trouble with http://example.com vs. http://www.example.com – only the www worked until I made the ServerName www.example.com, and the … Read more

Https to http redirect using htaccess

Attempt 2 was close to perfect. Just modify it slightly: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] UPDATE: Above solution works from a technical point of view. BUT: Since a few years now the user will receive a huge warning indicating that the connection is not private. That is to be expected: none … Read more

How can I make PHP display the error instead of giving me 500 Internal Server Error [duplicate]

Check the error_reporting, display_errors and display_startup_errors settings in your php.ini file. They should be set to E_ALL and “On” respectively (though you should not use display_errors on a production server, so disable this and use log_errors instead if/when you deploy it). You can also change these settings (except display_startup_errors) at the very beginning of your … Read more