service php-fpm81 is currently down with a fresh installation

taker18

Verified User
Joined
Oct 18, 2021
Messages
141
Location
USA
Hello everyone
I just created a new server with Ubuntu 22.04 and openLite speed. all looks good to me, but after the installation, I found this message

" the service php-fpm8.1 is currently down"

When I checked I found that PHP 8.1 was originally installed with the setup and it's right there. but it's down how can I fix this error?

some forums suggested that stop or uninstall Imunify 360 but it appears that is not installed on mine




sudo systemctl stop imunify360
Failed to stop imunify360.service: Unit imunify360.service not loaded.

Thank you all
 
but it appears that is not installed on mine
Immunify360 is only installed on your system if you installed it yourself.

Login as root via SSH then issue the following commands:
service php-fpm81 status
and after that
service php-fpm81 restart

Post the results here. If you encounter a line which says something about journalctl -xe then issue that command too and post the results. Maybe we can find a cause.
 
Immunify360 is only installed on your system if you installed it yourself.
yes correct and I confirm that I didn't installed myself
Thank you @Richard G
Login as root via SSH then issue the following commands:
service php-fpm81 status
and after that
service php-fpm81 restart

Post the results here. If you encounter a line which says something about journalctl -xe then issue that command too and post the results. Maybe we can find a cause.

service php-fpm81 status
Unit php-fpm81.service could not be found.

service php-fpm81 restart
Failed to restart php-fpm81.service: Unit php-fpm81.service not found.
 
Unit php-fpm81.service could not be found.
That shows that php-fpm81 is not installed or not installed fully.

Did you waited long enough?
Because you write that it 's a new installation. But Directadmin itself is installed very quickly, all the rest, including PHP is installed in the background. Depending on the amount of ram and cpu speed, this can take up to 45 minutes.

So maybe you did not wait long enough? There should be a message in your message center that the background installation is finished, did you receive that?
If no, then I hope all went good, check with ps faux if it's still running.
If yes, are all other services installed and working?

If yes, try to install php-fpm81 via SSH and see if you see any installation error.
Login via SSH.
Then go to /usr/local/directadmin/custombuild
Check the options.conf in there that php8.1 with php-fpm is selected and present there.

Then proceed as follow from that directory:
Code:
./build update
./build php n
./build rewrite_confs
the last line only when the PHP installation finished without errors.

Does that fix the issue?
If yes -> great
if not -> what errors do you see. If there are multiple lines, post the first 5 or 10 lines starting with errors.
 
That shows that php-fpm81 is not installed or not installed fully.

Did you waited long enough?
Because you write that it 's a new installation. But Directadmin itself is installed very quickly, all the rest, including PHP is installed in the background. Depending on the amount of ram and cpu speed, this can take up to 45 minutes.

So maybe you did not wait long enough? There should be a message in your message center that the background installation is finished, did you receive that?
If no, then I hope all went good, check with ps faux if it's still running.
If yes, are all other services installed and working?

If yes, try to install php-fpm81 via SSH and see if you see any installation error.
Login via SSH.
Then go to /usr/local/directadmin/custombuild
Check the options.conf in there that php8.1 with php-fpm is selected and present there.

Then proceed as follow from that directory:
Code:
./build update
[/QUOTE]
no Error 
[QUOTE="Richard G, post: 365757, member: 16122"]

./build php n
[/QUOTE]
cc: fatal error: Killed signal terminated program cc1

compilation terminated.

make: *** [Makefile:1174: ext/fileinfo/libmagic/apprentice.lo] Error 1

*** The make has failed. Exiting...
[QUOTE="Richard G, post: 365757, member: 16122"]

./build rewrite_confs

the last line only when the PHP installation finished without errors.

Does that fix the issue?
If yes -> great
if not -> what errors do you see. If there are multiple lines, post the first 5 or 10 lines starting with errors.
this is a very small server of 2 VCP 2G Ram 40 volume Local desk.
I can easily kill this server and rebuild it again,
 
Please don't use the reply butten which creates full message quotes. I'm a bit older and it confuses me sometimes. :)
Just use the small text reply box below please, thanks!

This is a very small server of 2 VCP 2G Ram 40 volume Local desk.
Phoe, well I hope you do also have a minimum of 4 GB swapfile space otherwise you won't make it.
The 2 GB is very very minimal.
If you didn't have a swapfile, that could already cause compiling to fail.
 
ok NO reply @Richard G

now I killed the old small server, and rebuild a new one with 4 RAM, still got the same issue.
but this time I used your commands

Code:
./build update
./build php n
./build rewrite_confs


after running
Code:
./build php n
the result below , which is good

Code:
/usr/local/php81/lib/php.ini already exists, skipping.
Creating symlink for /usr/local/php81/bin/php81...
Creating symlink for /usr/local/php81/bin/lsphp81...
Creating symlink for /usr/local/php81/bin/php-cgi81...
Creating symlink for /usr/local/php81/bin/php-config81...
Creating symlink for /usr/local/php81/bin/phpize81...
PHP has been secured.
Restarting php-fpm81.
Enabling php-fpm81 in systemd...
Restarting apache.
Rewriting all users httpd.conf files, please wait...
2023/09/12 20:07:35  info executing task            task=action=rewrite&value=httpd
PHP 8.1.22 Installed.

and

Code:
./build rewrite_confs
and result


Code:
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
2023/09/12 20:14:33  info executing task            task=action=rewrite&value=ips
Using 5.78.95.228 for your server IP
PHP has been secured.
Restarting php-fpm81.
2023/09/12 20:14:38  info executing task            task=action=rewrite&value=httpd
Restarting apache.
2023/09/12 20:14:39  info executing task            task=action=directadmin&value=reload


I didn't create a swap file. should I create one? This server is going to be for testing and non production sites like demo and test
 
Thanks!

how do I know that PHP 8.1 is working?
You already can see it here:
PHP has been secured. Restarting php-fpm81. Enabling php-fpm81 in systemd...
And also in the second part you showed. It restarts php-fpm81 and no error shows, so it should be running.

To be sure you can always issue the command:
service php-fpm81 status

Then you should get some output like this:
Code:
Redirecting to /bin/systemctl status php-fpm81.service
● php-fpm81.service - The PHP FastCGI Process Manager
   Loaded: loaded (/etc/systemd/system/php-fpm81.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2023-08-29 01:59:35 CEST; 2 weeks 0 days ago
  Process: 3654293 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 961 (php-fpm81)
   Status: "Processes active: 0, idle: 0, Requests: 779, slow: 0, Traffic: 0req/sec"
    Tasks: 1 (limit: 408397)
   Memory: 24.7M
   CGroup: /system.slice/php-fpm81.service
           └─961 php-fpm: master process (/usr/local/php81/etc/php-fpm.conf)

Sep 11 00:23:58 server.domain.nl systemd[1]: Reloading The PHP FastCGI Process Manager.
Sep 11 00:23:58 server.domain.nl systemd[1]: Reloaded The PHP FastCGI Process Manager.
Sep 11 00:23:58 server.domain.nl php-fpm81[961]: [11-Sep-2023 00:23:58] NOTICE: using inherited socket fd=8, "/usr/local/php81/sockets/webapps.s>
Sep 11 00:23:58 server.domain.nl php-fpm81[961]: [11-Sep-2023 00:23:58] NOTICE: using inherited socket fd=9, "/usr/local/php81/sockets/user1.soc>
Sep 12 00:16:59 server.domain.nl systemd[1]: Reloading The PHP FastCGI Process Manager.
Sep 12 00:16:59 server.domain.nl systemd[1]: Reloaded The PHP FastCGI Process Manager.
and maybe some more.
 
Last edited:
By the way... did you wait this time until you got the message that DA was ready with background installations?
 
"no reply" confirming your request

Yes I waited till it finished completely both times
Yes it says active and running
Thank you @Richard G Great help as usual
 
Back
Top