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
0
votes
0 answers

Cent OS 7.3 failed to create php-fpm.sock

I am trying to install mysql+ nginx +php+php-fpm in a centOS 7.3 server I am following https://sg.godaddy.com/help/build-a-lemp-stack-linux-nginx-mysql-php-centos-7-17349 it failed to create /run/php-fpm/php-fpm.sock Could you please help me to fix…
user231410
  • 129
  • 1
  • 15
0
votes
0 answers

Laravel 5.2 + Nginx + PHP7 + PHP7.0-FPM - executed code different than hard drive

I am a having an unexpected behaviour with Laravel executed code not being the same as the updated code. Seems like PHP7.0-FPM or another component is keeping it in memory and only hard reboot to the machine will refresh the code. i.e I have a file…
dev7
  • 6,259
  • 6
  • 32
  • 65
0
votes
2 answers

Unable to install php5-fpm on ubuntu 16.04 digital ocean droplet

I am trying to setup phppgadmin and it requires php5-fpm but as I have ubuntu 16.04 and it comes with php 7. So when i try to run install php5-fpm it give me following error: sudo apt-get install php5-fpm Package php5-fpm is not available, but is…
iit2011081
  • 742
  • 8
  • 26
0
votes
0 answers

error 7#7: *1 upstream prematurely closed connection while reading response header from upstream

I have just compiled php7 in a docker container, and try to serve it with ngnix (which is also in a docker container). and using php-fpm ... I just serve a simple php file index.php with a simple line: echo "Hello World"; for a test. In the log of…
user2626210
  • 115
  • 5
  • 13
0
votes
1 answer

Nginx + php fastcgi showing "No input file specified." instead of 404

My problem is quite simple. When I request a .php file that doesn't exist, I see "No input file specified.", instead of the 404 page that you would expect. I get that i am passing all requests with a .php extension to php-fpm, and i guess that…
Mads Nielsen
  • 106
  • 1
  • 5
  • 14
0
votes
1 answer

How to log usage of built-in functions in PHP?

Consider a built in php function, for example file_put_contents(). Running php-fpm on Nginx is it possible to log all usages of that function? The example output i'm thinking about is something like this: timestamp…
Roozbeh Sharafi
  • 347
  • 1
  • 6
  • 21
0
votes
1 answer

php5.6-fpm with nginx on ubuntu 16.04 receiving no data

I have just installed ubuntu 16.04 and php5.6-fpm and nginx. nginx server block is as follows: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.php index.html…
tango bango
  • 181
  • 2
  • 13
0
votes
1 answer

Why is my PHP7.0-FPM pool not running using it's specified system user?

I've done this setup quite often but this time I'm overseeing something surely. Goal Having an Apache 2.4 vhosts using different PHP-FPM pools for each vhost using their own system user within an LXD container. The problem Everything is working fine…
masterdam79
  • 113
  • 1
  • 1
  • 7
0
votes
1 answer

Laravel5 deployment share env variables between both CLI and web server

I am deploying a Laravel app and a part of my build script is to run ./artisan migrate. While I can pass environment variables to web server by adding them to nginx site config in sites-available, they for obvious reasons do not get shared with…
Vladimir Hraban
  • 3,543
  • 4
  • 26
  • 46
0
votes
1 answer

PHP-FPM browser returning empty response

I recently reconfigured my server to use Lighttpd+PHP5-FPM. I have almost the same configuration on my localhost (using CGI on Windows, while ubuntu on the server). I have an AJAX request to a page that usually takes around 1.5 minutes, on server I…
guiligan
  • 369
  • 4
  • 17
-1
votes
2 answers

Laravel with PHP-FPM is better or laravel octane?

Consider your application having other factors common excluding laravel + php-FPM and Laravel Octane like apache server, ram size, processors speed etc. So can somebody tell me why and which is better with performance wise? I found lot of content…
vishal-mote
  • 362
  • 2
  • 6
  • 22
-1
votes
1 answer

Error 502 Bad Gateway while my CPU and RAM are at 50%

For a while, my server has been returning 502 Bad Gateway errors randomly during the day. Sometimes we have the same traffic and everything is fine, other times it causes 502 errors. I have a web traffic of about 50r/s and here is the CPU and RAM…
Elk Delf
  • 5
  • 4
-1
votes
1 answer

Use local Apache to access php-fpm on docker container

I have a matomo container running with php-fpm # docker-compose.yml version: "3" services: app: container_name: matomo image: matomo:fpm-alpine restart: unless-stopped volumes: - matomo:/var/www/html environment: …
Martial
  • 1,446
  • 15
  • 27
-1
votes
1 answer

Must load PHP page twice to load session file data into an array

I am running the PHP:FPM container on Docker. I start a session, create a session ID, and then use print_r to display the session data. I get the following output…
JeremyCanfield
  • 633
  • 11
  • 24
-1
votes
1 answer

docker-compose nginx return 502 to php-fpm

Please help me. There was an error, a minor error. Maybe I just do not see it, but I had no idea. The essence of the problem: I am setting up a docker environment. Brought nginx, fpm. When url get a php file, nginx return 502. Structure: /www /app …
mekeind
  • 1
  • 1
1 2 3
33
34