Mercurial > repos > other > Puppet
view modules/website/files/php.conf @ 412:731107a67700
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.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 08 Oct 2022 12:17:24 +0100 |
parents | f354100b688a |
children | 3744cd0807cb |
line wrap: on
line source
# # The following lines prevent .user.ini files from being viewed by Web clients. # <Files ".user.ini"> Require all denied </Files> <Proxy "fcgi://localhost/" enablereuse=on max=50 smax=25 ttl=60> </Proxy> <FilesMatch "\.php$"> # Don't wrap in an <IfModule> because we'd rather it failed RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . /error.php [L] SetHandler "proxy:unix:/run/php/php-fpm.sock|fcgi://localhost/" </FilesMatch>