One of my servers has php-fpm process running by root user, CPU is using 11/8 cores.
My top command:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2466617 root 20 0 465604 19456 12312 R 95.7 0.1 0:49.75 php-fpm...
Overnight all of our WHM servers (and a few 3rd party ones we manage) decided that all of their websites will suddenly return HTTP 500. Inspecting the Apache error log at "/usr/local/apache/logs/error_log" I found huge volumes of this:
SoftException in Application.cpp:267: File...
I'm after some advice tuning Apache and PHP-FPM while using Event MPM module.
Most guides I've read are assuming MPM Prefork, but there does appear to be some differences and are often contradictory. I've tried following a number and have produced the following settings:
We have a dedicated server 8 Core / 16 Thread with 16 GB RAM that manage 100 client . We need to decrease the load on processor use, Ram is not an issue to us!
Our question here Which of the values below if we customized shall decrease the load on CPU ? need answer
is it Max Requests ? is...
It is possible to disable PHP-FPM for cpanel processes??
LFD is sending me alerts about a user that is using excesive resources, however the message is generic, it only shows me " php-fpm: pool userdomain_com " so i dont know what is the exact process so i can investigate it.
i try to remove the
PHP warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_mysql.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0...
Now that cPanel is defaulting to PHP-FPM enabled for new accounts, this seemed like a good time to ask:
We used to run our WordPress sites with PHP-FPM, but did not see positive results. If we left it with default settings (Max Requests, Process Idle Timeout, Max Children), the sites...
I want to disable php-fpm for all domains. Before v94, we could select all domains and do php-fpm off, but v94 does not have this option. I could not find an api command for this.
What can I do, do I have to turn it off one by one?
I could not find this point addressed in the documentation.
I am using CENTOS7, Apache 2.4 and PHP 7.3
My domains are set to use PHP-FPM
In WHM under software > EastApache4 the installed packages include mod_proxy_fcgi
“inherit” is ‘on’ for my domains
On the MultiPHP Manager screen I see...
I have a server with 32 GB of ram which is more than enough for me, I read that PHP-FPM is faster but it apparently consumes more memory than the traditional one.
My server with 32 Gb of ram and with 110 clients is a good choice or it will be a burden for this amount of memory
Can you get an...
I just upgraded my server to CENTOS 7 and as part of that process I set each of my domains to use PHP 7.3 and deleted the earlier versions of PHP.
The next issue is deciding whether to turn on PHP-FPM for all of my domains or only the domains that actually have PHP activity.
The domains I have...
We have noticed website stopped working all of a sudden and while checking error logs we could see the below information in logs. This seems to be a socket failure and seems to be a strange error. There was no CPU usage and high ram usage.
Fri Feb 12 17:00:04.288141 2021]...
I have installed php74 with php-fpm activated.
With php72 works fine, but with php74 I have errors and messages like
Time: Tue Dec 29 21:44:14 2020 +0100
PID: 5403 (Parent PID:1131)
Uptime: 129 seconds
Knowing what I plan to do tomorrow...
is this something that needs to be enabled first, or at all? (PHP-FPM)
Thanks for schooling me on this stuff!
I'm moving to a new VPS that's using CentOS 7.9, PHP 7.x, PHP-FPM, FastCGI, MariaDB 10.3, HTTP/2, and mod_pagespeed.
My main site uses quite a bit of Ajax to update sections of the page, in an attempt to encourage people to hang out on the site all day and easily check for updates.
Often when I am watching top to see what is going on I will see php-fpm show up for a users account when no one is on the site. It will show up with around a 20% cpu hit and then go away. It will pop in and out for a while but as I am watching analytics no one is actually on the site.
A few versions back FPM was introduced and we blindly activated the feature, as usually whm/cpanel works fine out of the box.
This feature however reacts unexpected in a shared hosting setup.
It seems FPM is meant to run one site (one user). So if we use Cpanel (out of the box) for...
Our shared servers seem to gradually build up CPU use until we reset PHP-FPM. It then comes down right away.
I was thinking of running a weekly or maybe even a daily cronjob to reset it.
Do you think this could have any negative precautions?
And what would be the best cron job to do this say...
Hi, recently updated a big website to use PHP 7.4 (from 5.6 previously - yes it was a lot of work!) and enabled PHP-FPM. Previously, my site was running as the 'nobody' user with very restricted permissions but now I'm noticing PHP is running as a different user (account holder) who has...
Yesterday, all the websites that I have on one of our servers have fallen. I have made the revisions and the error is found in ea-php73-php-fpm. I have searched in forums that may be, but I still have not found a solution, if someone has happened before I would appreciate your help...