Score:0

Cannot start the php-fpm service in Alma 9

cn flag

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.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.