But, it’s still unclear to me how to really do it from source and what steps I would be missing. I’m not familiar with PHP-FPM and it seems that may be needed.
Is there a PHP tutorial available or could someone please tell me steps that may be required beside these to make it work inside caddy?
(*) PHP 7.1.1 is out, but it’s untested on my production server and I’m still keeping 7.0.x for now.
I compiled PHP 7.0.15 with php-fpm by adjusting my configure to this:
./configure --with-mysqli=mysqlnd --enable-ftp --with-openssl --with-zlib --with-gd --with-jpeg-dir=/usr/lib64 --disable-cli --enable-fpm
I have to admit, I’d personally be looking at something prepackaged, a Docker solution, or even another distro before starting to try and figure out problems with a setup based on php from source on Centos.
I’ve started on Centos about 5 years ago and all my servers have been with it since then (both dedicated and VPS).
I’ve had 0 downtime, their packaging is really safe and long-term (end of life of Centos 7 being 2024-06) and with good crons and scripts they’re really low maintenance.
All issues I’ve had have been with WordPress vulnerabilities.
I’ll share my final scripts in a few weeks after testing them a bit.