Questions tagged [php-fpm]

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

PHP-FPM provides a number of useful features over the traditional FastCGI php implementation. It is implemented as a daemon that controls one or more PHP process 'pools' which can be independently configured. Main configuration options for each pool include:

  • Socket on which requests are received (either local or TCP)
  • Separate php.ini settings for specific application requirements
  • Dynamic process control. FPM can dynamically change the number of worker processes depending on pool load.
  • Uid/gid for the pool workers
  • In-flight configuration updates - a change to the pool configuration will be rolled out gracefully across all pool workers without losing connections.
2118 questions
0
votes
3 answers

oci_connect(): Error while trying to retrieve text for error ORA-28547

I have this connection string on an older server which works fine and connects to a remote oracle server. On this new server I installed oracle instant client simple and devel and php pecl oci8. Below is the screenshot of the oci8. Here is the code…
Ergec
  • 608
  • 1
  • 9
  • 25
0
votes
0 answers

Trace routes to find the downtime reason

Our server was down for serving http requests for some minutes. The web server is nginx and php-fpm handles the php processes. So in the middle of downtime duration I took a look at nginx's access.log file. Most of requests were getting a 499…
rev
  • 121
  • 2
  • 11
0
votes
1 answer

NGINX FastCGI Cache on NGINX > Apache > PHP-FPM

I had failed attempts earlier at getting Nginx Fast-CGI caching to work in Nginx > Apache > PHP-FPM config so I started fresh on a new server but am still having issues. The server has a clean Ubuntu 16.04 install with Nginx 1.14.2, Apache 2.4.18…
0
votes
0 answers

Ubuntu 18.04 Apache 2.4.29 After changing mpm_prefork to mpm_event, apache just serves php source code

I followed this but got crazy results: switch apache from prefork to event in Ubuntu 16, get php 7 working My goal is to also enable http2, which is not compatible with mod_prefork. What happens is apache starts up but only serves the source of all…
Carl Whalley
  • 101
  • 2
0
votes
1 answer

Why APCu version mismatch the APC version reported in PHP?

I installed APCu for a MediaWiki website but I get some nasty errors about the caching. I noticed that the version of APCu is not the same as the one reported by APC. I verified the installed packages but nothing seems out of the…
HypeWolf
  • 113
  • 5
0
votes
1 answer

Upgrading simply from php 5.6.x to 7.x on CentOS 7 with Nginx and php-fpm

I am trying to upgrade the PHP version on a Digital Ocean server from 5.6.19 to the latest PHP 7.2. A lot of instructions found online point to "php72", which makes me wonder if 5.6.19 will be seamlessly replaced with a yum update php. I doubt it.…
Khom Nazid
  • 146
  • 1
  • 9
0
votes
1 answer

Apache-PHP slow page in one virtual host causes performance degradation or timeout on other

I have multiple PHP applications running under different virtual host on an Apache server. Each application uses MySQL as backend. Each application uses different MySQL servers in the same data center. Some of our application processes a large…
Rohith
  • 101
  • 2
0
votes
1 answer

Migrate legacy PHP to PHP-FPM

I wonder if I could have some feedback from some people that did the migration from php to PHP-FPM. The issue I have is that I have lots of scripts on the service. Some written by customers and I cant modify them all. The reason I want to migrate to…
Thomas
  • 1
0
votes
1 answer

only way to clear nginx cache seems to be restarting the entire server

Running into this problem.. nginx seems to persist files that are no longer on disk, its not a browser cache issue as I can test it with curl.. eg.. curl https://staging.xxxx.co/
baradhili
  • 101
  • 1
  • 5
0
votes
1 answer

'File not found.' after switching to php fpm (apache, ubuntu server 18.04 LTS)

I know this question has already been answered mutiple times, but the answers are almost all diffrent and are sorta confusing. I have tried alot of answers but none of them work. I follow the answer of this question (switch apache from prefork to…
0
votes
1 answer

Suexec/Apache user is not php-fpm 'user'

Suexec/Apache user is not php-fpm 'user'. in my php-fpm pool: [cdnmin] user = cdnmin group = cdnmin listen = /run/php/php7.0-fpm.cdnmin.sock listen.owner = cdnmin listen.group = cdnmin listen.mode = 0666 pm = dynamic pm.max_children =…
Ta Coen
  • 240
  • 4
  • 15
0
votes
0 answers

PHP-FPM is slow only for the sub domain

We have a project running in nginx/php-fpm which is basically a multi-site setup build on Symfony 2.7 and we're working on the next version of the site which is basically adding an another site to the project with some additional features. Just…
Stranger
  • 103
  • 3
0
votes
1 answer

How to resolve Fatal error: Call to undefined function hash()?

I have this error message on my website: Call to undefined function hash() on line 738 in .../public_html/dbtech/dbseo/includes/class_db.php #0 .../public_html/dbtech/dbseo/includes/rewrite/thread.php(265):…
0
votes
0 answers

php-fpm status shows listen queue 0 when it is delaying requests

I have a php-fpm server running on a high-traffic website (behind nginx). It is frequently reaching a point where the active processes are equal to the maximum number of processes, which is the most that the server's memory will allow. When this…
user29745
  • 159
  • 1
  • 7
0
votes
0 answers

Change source file still leads to crash even with cache

Setup: Wordpress with WordFence on Nginx with FastCGI enabled + PHP7.0 with opcache enabled (validate timestamps is false) Story: With the above setup and confirmed that both FastCGI has HTML cached and PHP Opcache have all PHP files cached or so I…
Kalman
  • 71
  • 1
  • 4