Bonjour,
I try to have apache+php running and as far as I can see on fedora help, I have to enable and start php-fpm service.
To enable no problem...
To start I have some troubles:
Active: failed (Result: exit-code)
Failed to start php-fpm.service - The PHP FastCGI Process Maed to start php-fpm.service - The PHP FastCGI Process Manager
For more information , I have to ask: "journalctl -xeu php-fpm.service"
OK, but:
<cite> php-fpm.service: Failed with result 'exit-code' Failed to start php-fpm.service - The PHP FastCGI Process Maed to start php-fpm.service - The PHP FastCGI Process Manager </cite>
OK OK but what's new? What caused this fail state? Where can I get more information?
On 2/17/25 05:44, François Patte wrote:
Bonjour,
Bonjour,
I try to have apache+php running and as far as I can see on fedora help, I have to enable and start php-fpm service.
<snip/>
For more information , I have to ask: "journalctl -xeu php-fpm.service"
Often useless but occasionally helpful...
<cite> php-fpm.service: Failed with result 'exit-code' Failed to start php-fpm.service - The PHP FastCGI Process Maed to start php-fpm.service - The PHP FastCGI Process Manager </cite>
There are a couple of steps to be done after the bits and pieces are installed.
Have you...
sudo a2enmod proxy_fcgi setenvif
sudo systemctl enable php8.X-fpm
then...
if httpd is not running...
sudo systemctl start httpd
else
sudo systemctl reload httpd
and finally...
sudo systemctl restart php8.X-fpm
Should get the ball rolling.
Mike Wright
Le 2025-02-17 16:29, Mike Wright a écrit :
On 2/17/25 05:44, François Patte wrote:
Bonjour,
Bonjour,
I try to have apache+php running and as far as I can see on fedora help, I have to enable and start php-fpm service.
<snip/>
For more information , I have to ask: "journalctl -xeu php-fpm.service"
Often useless but occasionally helpful...
<cite> php-fpm.service: Failed with result 'exit-code' Failed to start php-fpm.service - The PHP FastCGI Process Maed to start php-fpm.service - The PHP FastCGI Process Manager </cite>
Thank you for answering.
There are a couple of steps to be done after the bits and pieces are installed.
Have you...
sudo a2enmod proxy_fcgi setenvif
there is no a2enmod (as far as I can see: dnf search a2enmod Dernière vérification de l’expiration des métadonnées effectuée il y a 0:05:04 le lun. 17 févr. 2025 16:56:22. Aucune correspondance trouvée. ie. nothing found
sudo systemctl enable php8.X-fpm
answer: Failed to enable unit: Unit file php8.X-fpm.service does not exist.
So: dnf info php8.X-fpm
answer: Erreur : Aucun paquet correspondant à lister ie. No matching packages to list
What you are explaining seems to come from ubuntu or debian distro...
On 2/17/25 08:08, François Patte wrote:
Le 2025-02-17 16:29, Mike Wright a écrit :
On 2/17/25 05:44, François Patte wrote:
Bonjour,
Bonjour,
I try to have apache+php running and as far as I can see on fedora help, I have to enable and start php-fpm service.
sudo systemctl enable php8.X-fpm
Sorry for not explaining more clearly.
Replace the X with whichever php version you are using, i.e. 8.2 or 8.3
--
Yes, I scrambled my distros. The a2en(mod,conf,site) convenience features are from the Debian world.
--
For the redhat world modules (DSOs) are place into a conf dir.
"For the Apache HTTP Server to use a DSO, it must be specified in a LoadModule directive within /etc/httpd/conf/httpd.conf".
On Mon, 2025-02-17 at 17:08 +0100, François Patte wrote:
Le 2025-02-17 16:29, Mike Wright a écrit :
On 2/17/25 05:44, François Patte wrote:
Bonjour,
Bonjour,
I try to have apache+php running and as far as I can see on fedora help, I have to enable and start php-fpm service.
<snip/>
For more information , I have to ask: "journalctl -xeu php-fpm.service"
Often useless but occasionally helpful...
<cite> php-fpm.service: Failed with result 'exit-code' Failed to start php-fpm.service - The PHP FastCGI Process Maed to start php-fpm.service - The PHP FastCGI Process Manager </cite>
Thank you for answering.
There are a couple of steps to be done after the bits and pieces are installed.
Have you...
sudo a2enmod proxy_fcgi setenvif
there is no a2enmod (as far as I can see: dnf search a2enmod Dernière vérification de l’expiration des métadonnées effectuée il y a 0:05:04 le lun. 17 févr. 2025 16:56:22. Aucune correspondance trouvée. ie. nothing found
sudo systemctl enable php8.X-fpm
answer: Failed to enable unit: Unit file php8.X-fpm.service does not exist.
So: dnf info php8.X-fpm
answer: Erreur : Aucun paquet correspondant à lister ie. No matching packages to list
What you are explaining seems to come from ubuntu or debian distro...
$ dnf info php-fpm Updating and loading repositories: Repositories loaded. Installed packages Name : php-fpm Epoch : 0 Version : 8.3.16 Release : 1.fc41 Architecture : x86_64 Installed size : 8.1 MiB Source : php-8.3.16-1.fc41.src.rpm From repository : updates Summary : PHP FastCGI Process Manager URL : http://www.php.net/ License : PHP-3.01 AND Zend-2.0 AND BSD-2-Clause AND MIT AND Apache-1.0 AND NCSA AND BSL-1.0 Description : PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI : implementation with some additional features useful for sites of : any size, especially busier sites. Vendor : Fedora Project
Install and start with 'sudo systemctl start php-fpm'
poc
On Mon, 2025-02-17 at 14:44 +0100, François Patte wrote:
<cite> php-fpm.service: Failed with result 'exit-code' Failed to start php-fpm.service - The PHP FastCGI Process Maed to start php-fpm.service - The PHP FastCGI Process Manager </cite>
OK OK but what's new? What caused this fail state? Where can I get more information?
I'm wondering if you're having issues with SELinux that stops it from even starting so then there are no messages from php-fpm. Have you looked at the output of `ausearch -m avc -ts recent` after trying to start the service to see if there are related messages? Perhaps try running as root `ausearch -m avc -ts recent | audit2why`. Or if you're unfamiliar with SELINUX, temporarily disable it by running `setenforce 0` to set it to permissive for a time.
Sincerely,