I've compiled php 8.2.3 on Alma Linux 9 but fails php-fpm fails to start.
I was previously using Centos 7 with a slightly older php version and didn't have any issues.
The php-fpm conf file is also identical to the centos 7 build.
I have created a systemd service below (which is copied from my centos 7 build):
[Unit]
Description=The PHP FastCGI Process Manager
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/run/php-fpm.pid
ExecStart=/usr/local/php/sbin/php-fpm
ExecReload=/bin/kill -USR2 $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
This is the output of the log:
[01-Mar-2023 23:04:29] NOTICE: fpm is running, pid 634
[01-Mar-2023 23:04:29] NOTICE: ready to handle connections
[01-Mar-2023 23:06:00] NOTICE: Terminating ...
[01-Mar-2023 23:06:00] NOTICE: exiting, bye-bye!
This is the output of the journal:
The job identifier is 809.
Mar 01 23:22:53 ip-10-0-0-246.ec2.internal systemd[1]: php-fpm.service: Can't open PID file /run/php-fpm.pid (yet?) after start: Operation not permitted
Mar 01 23:24:24 ip-10-0-0-246.ec2.internal systemd[1]: php-fpm.service: start operation timed out. Terminating.
Mar 01 23:24:24 ip-10-0-0-246.ec2.internal systemd[1]: php-fpm.service: Failed with result 'timeout'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit php-fpm.service has entered the 'failed' state with result 'timeout'.
Mar 01 23:24:24 ip-10-0-0-246.ec2.internal systemd[1]: Failed to start The PHP FastCGI Process Manager.
░░ Subject: A start job for unit php-fpm.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit php-fpm.service has finished with a failure.