# HG changeset patch # User IBBoard # Date 1665227844 -3600 # Node ID 731107a677007ebd0802222ec36646897bff6d18 # Parent 83f2e944a43f7fcee6590da2b197d97733ac3c80 Try to optimise PHP settings We occasionally lock up, seemingly because PHP ends up with too many open connections or insufficient memory. Scale the PHP and Apache settings appropriately and time out connections sooner. diff -r 83f2e944a43f -r 731107a67700 modules/website/files/php.conf --- a/modules/website/files/php.conf Sat Oct 08 12:15:52 2022 +0100 +++ b/modules/website/files/php.conf Sat Oct 08 12:17:24 2022 +0100 @@ -4,7 +4,7 @@ Require all denied - + # Don't wrap in an because we'd rather it failed diff -r 83f2e944a43f -r 731107a67700 modules/website/files/zzz-0-custom.conf --- a/modules/website/files/zzz-0-custom.conf Sat Oct 08 12:15:52 2022 +0100 +++ b/modules/website/files/zzz-0-custom.conf Sat Oct 08 12:17:24 2022 +0100 @@ -1,3 +1,12 @@ + + StartServers 1 + ServerLimit 2 + ThreadsPerChild 64 + MaxRequestWorkers 128 + MinSpareThreads 10 + MaxSpareThreads 50 + + SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384 SSLHonorCipherOrder off