add initial setup of php-fpm
m →‎SSL/TLS: uacme
Tag: visualeditor
add initial setup of php-fpm
Line 1: Line 1:
[[Category:System administration]]
[[Category:System administration]]
= PHP =
= PHP =
== Initial setup of php-fpm ==
{{Testedon|2023-08-25|Ubuntu 22.04}}
Check if max connection value is above 65536: <code>sysctl net.core.somaxconn</code>.  If not, add <code>net.core.somaxconn = 65536</code> at the end of /etc/sysctl.conf file. Then reload using <code>sudo sysctl -p</code>.
Change <code>listen.backlog</code> value to 65536, and <code>listen</code> value to 127.0.0.1:9001.
It's better to utilize TCP socket since it's more scalable. In PHP section for nginx configuration files: <code>fastcgi_pass 127.0.0.1:9001;</code>


== Downgrading PHP 7 to PHP 5.6 ==
== Downgrading PHP 7 to PHP 5.6 ==