Questions tagged [fpm]

FastCGI Process Manager - an alternative PHP FastCGI implementation with some additional features

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

More information can be found on http://php-fpm.org.

503 questions
2
votes
1 answer

How to enable access log for php-fpm in docker container?

Note: I am NOT talking about nginx' own access log. That one works fine. This questions is about enabling the php-fpm access.log. Currently, I am trying to debug the FastCGI sent in stderr: “Primary script unknown” while reading response header…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
2
votes
1 answer

How to install php-fpm for PHP 7.3 in a Debian 9 machine?

I'm trying to install php-fpm in a Debian 9 machine via ssh (using sudo apt-get install -y php-fpm), but I get the following error Package php-fpm is a virtual package provided by: php7.4-fpm 7.4.7-1+0~20200612.18+debian9~1.gbp671911 [Not…
2
votes
1 answer

How to disable request stdout loggin ing php-FPM Nginx

I'm trying to make php-fpm not log requests that it does in the current format when running through docker-compose. (php 7.4-alpine fpm): php | 192.168.96.4 - 04/Jun/2020:15:24:27 +0000 "GET /index.php" 302 php | 192.168.96.4 - …
Joel Harkes
  • 10,975
  • 3
  • 46
  • 65
2
votes
2 answers

Apache2, mpm_event + PHP-FPM Error logs on same line

I upgraded my Debian7 to Debian10 yesterday, and changed from prefork to mpm_event with php-fpm (php 7.4) The error messages and error_log output, is shown in my /apache/error.log file as: I've replaced filenames, ip and port. [Tue May 19…
Saku
  • 47
  • 6
2
votes
2 answers

PHP FPM dies every request in Cloud Run

I'm trying to run an example application in Google Cloud Run (Fully managed). Every time I send a request to the instance, I get a 503 Service unavailable. The logs tell me, the process is restarted every time on the same PID, so the process is…
psimms
  • 180
  • 2
  • 9
2
votes
0 answers

Docker php:7.4.4-fpm-alpine Call to undefined function mysqli_init()

Mysqli functions do not work for me, example: Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /var/www/html/public_html/test.php:2 Stack trace: #0 {main} thrown in…
Dobriachok
  • 41
  • 1
  • 3
2
votes
3 answers

URL Rewrite to Remove .php in my Nginx PHP-FPM

I setup Nginx PHP-FPM, with Centos 7, and Virtualmin control panel. I want to have all pages a SEO Friendly link without .php. System automatically create configuration : etc/nginx/nginx.conf And empty folder: etc/nginx/conf.d/ nginx.conf : user…
Ray
  • 35
  • 5
2
votes
3 answers

Docker php DPO to MariaDB - Error: Could not find driver

I'm learning PDO now and I found it better to learn it in a LEMP docker stack (Nginx, php-fpm, MariaDB, phpMyadmin) on my Ubuntu 18.04LTS. This is my php file:
Bravo2bad
  • 530
  • 1
  • 7
  • 25
2
votes
1 answer

What is best way of configuring Apache + fcgi / php-fpm (on debian buster)

Been wondering how this should be done. On previous versions of apache (in debian 9) this is how I was doing it. This way I could limit size of php pool and if pool reached it's max, apache would queue up requests and unless we reached acquire delay…
Antony Gibbs
  • 1,321
  • 14
  • 24
2
votes
1 answer

xDebug configurations for php7.0-fpm, nginx using VSCode IDE not stopping on breakpoints

I am contently getting this error when I start debugging with xdebug while it doesn't stop in any of my breakpoints it stop in warnings that I did not put breakpoints on and when I click on local variables it start loading and load forever until I…
Maneza F8
  • 35
  • 8
2
votes
1 answer

Unable to remove php7.2-fpm from Ubuntu on boot

I would like to remove php7.2-fpm from on boot start because Supervisor process manager will take care of starting php7.2-fpm. Do do this I had tried following commands but none of them worked for me. Ubuntu version is 14.04. > sudo update-rc.d…
Mahesh.D
  • 1,691
  • 2
  • 23
  • 49
2
votes
2 answers

php-fpm not loading same extensions php-cli is

Using php-5.4. I'm trying to load 'oci8.so' to access the function oci_connect. When in command line, I can access said function fine. But (after reloading, restarting, and reloading) php-fpm REFUSES to load the extension. php -r…
Dellowar
  • 3,160
  • 1
  • 18
  • 37
2
votes
2 answers

error_log() after fastcgi_finish_request

What is the reason why error_log() is not working after fastcgi_finish_request()? Also any error thrown by PHP is not written to the log. setup: ubuntu18.04 + nginx 1.15.6 + php7.2-fpm, the error log is written to /var/log/nginx/error.log
the_nuts
  • 5,634
  • 1
  • 36
  • 68
2
votes
1 answer

how to create a man page using fpm?

I am using fpm to generate my debian package from a directory which contains my bash script. The directory has only this bash script. I want to add a man page to the package so that I can view the man page using man command after installing my deb…
Natesh bhat
  • 12,274
  • 10
  • 84
  • 125
2
votes
0 answers

PHP 7 FPM - OPcache file cache vs memory cache performance

I've been using OPcache with php-fpm 7 a while now and works fine. I've been wondering what's the impact performance wise with opcache.file_cache and opcache.file_cache_only options enabled. Are there any benchmarks? Have anyone tried it on…
fat_mike
  • 877
  • 12
  • 27