• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue PHP-FPM - Service is not configured

hthc

New Pleskian
Hi, I hope you all feel good.:)

I would start this topic with a problem that didn't make me sleep for a long time, I spent a lot of time looking for a solution, applying advice from experienced people who wrote here for the same problem but unfortunately I am forced to open the topic because these solutions brought me nothing but worse, website crash 5x times today for about 20 minutes every time. I researched my app, tested it, found things that might be harmful but nothing concrete to say IT'S A PROBLEM and wanted to make sure it wasn't a problem in App but in the end I realized the problem was in the settings on Plesk. And I would like someone to explain to me what exactly to do and what is best for me in the settings to have on the whole Plesk system and maybe this topic will be useful to someone tomorrow and how I can enable php-fpm to work with nginx. Because I have over 300k-500k views per day which turns out about 200k unique users who view more than one page. Server configurations are good, but the application simply works slowly with the current settings I have on Plesk and problem with php-fpm. I write Facebook support on the email and ask why my top articles kick-off from algo and I got a response in which they tell me that my server settings are not in the best position and to find an expert to fix the problem and optimize for high traffic. PHP does not work with php-fpm and php-fpm doesn't work with nginx how I managed to figure it out. Nginx is set up properly and it works and I can see a lot of config from it but for php-fpm it is a black hole.

The PHP version:
FIRST- SS.jpg
SECOND - SS.jpg

THIRD - SS.jpg

I tried with the old versions (PHP 7.4, PHP 8.1 by OS Vendor) but the same situation. My goal was to install PHP 8.0 because my application applied all the new features from version 8 which I wanted to make the most power of and I installed using Plesk components. Now I want to enable php-fpm in services which I really need for high traffic because this way I don't believe that nginx now works with php-fpm if it is not enabled in services? The configuration from php-fpm doesn't exist anywhere, I looked for all the paths leading to that file but it doesn't exist, I found that I have to set up some configuration about it but I just have no idea how do something because I'm a total amateur when it comes to servers and settings. It is not possible to enable services or do anything with them, except in the PHP Settings where I can configure PHP-FPM settings but I don't think that's the best solution, because when I hover gives me message -- "Service is not configured" :oops: The services I need, without that my website is very slow and weak to withstand so much traffic server has enough memory and CPU that can handle something like that. I went through almost all the topics that talked about it however the solutions were just to go into the options included and that's it? Yes, and I would love that to be the case and I don’t know why this is so complicated. So in the end my conclusion is that php work with nginx, but that they don't work together with php-fpm o_O which should insert its magic, right? So nginx is installed and configured.

Screenshot_2.jpg
Screenshot_3.jpg
Screenshot_4.jpg

# Server config #
# CPU: Intel® Xeon® W-2145 Octa-Core Skylake W
# RAM: 256 GB DDR4 ECC
# HARD DISK: 14 x 16 TB Enterprise HDD 7200 rpm, 2 x 3.84 TB Datacenter NVMe SSD ( Software RAID ; Level optional)
# Plesk Obsidian v18.0.40 - CentOS 8
# CentOS Linux 8.5.2111


Thank you all for your time and I hope I was clear because my English is not a good side and for the first time I open a topic about problem.
 

Attachments

  • Screenshot_1.jpg
    Screenshot_1.jpg
    138.8 KB · Views: 35
Update

I change php to FastCGI application and another problems:

[Sun Dec 12 12:13:57.776824 2021] [proxy_fcgi:error] [pid 12901:tid 139791253174016] [client 31.217.18.199:0] AH01079: failed to make connection to backend: httpd-UDS, referer:
[Sun Dec 12 16:58:19.029542 2021] [proxy_fcgi:error] [pid 31590:tid 140021820466944] [client 109.93.200.42:0] AH01067: Failed to read FastCGI header, referer:
[Sun Dec 12 16:58:19.029595 2021] [proxy_fcgi:error] [pid 31590:tid 140021820466944] (104)Connection reset by peer: [client 109.93.200.42:0] AH01075: Error dispatching request to : , referer:
[Sun Dec 12 17:26:17.141530 2021] [autoindex:error] [pid 1908:tid 140495024027392] [client 66.94.126.76:0] AH01276: Cannot serve directory /var/www/vhosts/myhiddendomain/httpdocs/tmp/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive, referer: /tmp/

[Sun Dec 12 18:31:07.599658 2021] [proxy:error] [pid 5118:tid 140494310975232] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/myhiddendomain/php-fpm.sock (*) failed

[Sun Dec 12 18:31:07.599671 2021] [proxy_fcgi:error] [pid 5118:tid 140494310975232] [client 62.113.4.187:0] AH01079: failed to make connection to backend: httpd-UDS, referer:
[Sun Dec 12 19:50:53.951513 2021] [proxy:error] [pid 4899:tid 140494889809664] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/myhiddendomain/php-fpm.sock (*) failed

[Sun Dec 12 11:28:48.775017 2021] [proxy_fcgi:error] [pid 66667:tid 140318586431232] [client 193.198.16.212:0] AH01079: failed to make connection to backend: httpd-UDS, referer: https://lm.facebook.com/

Screenshot_8.jpg
Plesk says that the service is not configured, the service is not even installed, we should conclude that first, no configurations or any installations. I don't understand setting an option that doesn't work at all, why would someone do that to end users? We paid for those services, no one gave us anything for free, and then why don't they work, what should I do now, turn offt server? Shouldn't it be easy for them to set up their website and function quite normally? And that there is absolutely no solution to this very important thing. Did not appear again, but as you can see obviously php-fpm is a big problem in all this. I switched to the FastCGI application, but it's also a problem as you can see in the LOG, is it possible for things like this to happen?
I lost a lot of money in 24 hours and Facebook sent me an email in which for verification, I can lose that status because the site is totally unstable. And I don't care about money anymore, I just want to know why someone did this? Why?

I just want to install and have my php-fpm work with niginx and nothing more, that's it. S1mple!
 
Back
Top