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
1 answer

Nginx with FPM and Laravel

I have a docker image with several containers (nginx, api, react, ...) and two server blocks inside nginx.conf which gives me option to access via domain.com and api.domain.com. Everything works so far, if I access via domain.com, it will point me…
deiks
  • 23
  • 6
0
votes
1 answer

PHP API - Nginx giving me invalid data type header

I have some experience with Apache but now I switched to Nginx to learn something new. Finally made it to use basic PHP and Let's encrypt on my domain. (yes I'm happy to try new things) I'd like have some static files with React served by Nginx…
sjiamnocna
  • 167
  • 1
  • 11
0
votes
0 answers

PHP flush not working on centOS with Apache

I have a centOS 8 server with Apache FPM/FastCGI as webserver. I want the output to be seen right after each echo. I tried setting output_buffering = Off in php.ini and used below code: ob_implicit_flush(); ob_start(); echo…
0
votes
1 answer

Running kubectl in php shell_exec returns and empty list

On my DO server I am trying to run kubectl get deployments -o=json in shell_exec, but it either returns null or an empty list: { "apiVersion": "v1", "items": [], "kind": "List", "metadata": { "resourceVersion": "", …
Kevin Kopf
  • 13,327
  • 14
  • 49
  • 66
0
votes
0 answers

Docker swarm - How to ensure service is linked correctly on update

I'm using a compose file to deploy a stack on a swarm. The stack contains (among others) nginx and php-fpm. When updating the stack to newer image tags, using docker stack deploy, I get HTTP 502 errors while the php-fpm service is updating (it take…
yvesb
  • 61
  • 4
0
votes
1 answer

Error "File not found." in wordpress using nginx

I have configured a WordPress blog in a separate directory named example-blog. I would like to display the blog when user visits https://example.com/blog. However, with the below config, I'm getting an error "File not found." when I try to visit the…
rahul dagli
  • 55
  • 1
  • 3
  • 9
0
votes
0 answers

Log outgoing requests within a local dev env w/ php-fpm

Is there any option to log outgoing server requests within a local dev environment with php-fpm?
jmcclane
  • 159
  • 2
  • 14
0
votes
0 answers

How to block .php file request in nginx

Below is the current Nginx configuration. I only want people to access my site like below /main /my/mypage and block all access with a PHP extension /main.php /my/mypage.php error_page 403 404 /error/error; location ~ \.php$ { …
0
votes
2 answers

FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream nginx error

I user nginx docker as proxy server, and there are other containers running: nuxt.js and php-fpm. This is my fpm's conf file: server { server_name fpm.me.com; root /var/www/fpm/html; location / { # try to serve file directly, fallback to…
Saeed
  • 3,255
  • 4
  • 17
  • 36
0
votes
1 answer

Executing a suffixless file as a PHP script

I'm trying to resurrect an old website without rewriting it (yet). The site depends on executing specific suffixless files (e.g., corporate) as PHP scripts. Originally (a long time ago), I used the following in a .htaccess file:
JBH
  • 1,823
  • 1
  • 19
  • 30
0
votes
1 answer

How to make file uploading work with PHP and Nginx?

I am trying to have file uploading with PHP 7.3 FPM and Nginx but it is not working. What is weird is that on my localhost this works (as long as I change the file upload path and that sort of thing). My phpinfo() says that file uploads are on. My…
rcwar
  • 1
  • 1
0
votes
1 answer

Docker swarm php-fpm container keeps restarting

I created a basic LAPP stack which runs flawlessly on localhost with docker-compose. When I try to make it run with Swarm on production server (1 manager only, no workers), all services go up and get replicated (1/1) but the php-fpm one which keeps…
nbonniot
  • 1,034
  • 16
  • 33
0
votes
2 answers

Nginx default page on Magento 2 even tho the conf file seems to be correct

I'm using Magento 2.4 and when I'm trying to connect to my Magento 2 domain on localhost, I get the default Nginx page. This is the Nginx conf file in /etc/nginx/sites-available and I created a soft link of this file in the /etc/nginx/sites-enabled…
Hgresa
  • 11
  • 1
0
votes
0 answers

Created RPM gives error with dependency that is already installed

I'm trying to create RPM package from source using fpm. This package unfortunately does not exist on RHEL/Centos7 so I have to build it from scratch. What I did so far: Downloaded source code and run ./configure --prefix=/usr Created another folder…
LukeJ
  • 179
  • 5
  • 19
0
votes
1 answer

Limit PHP-FPM to one execution on a time

I would like to limit PHP-FPM to execute only once at a given time, which means any further request will be queued. I'm using nginx but I think it's a matter of PHP-FPM configuration. I read about PHP-FPM listen.backlog and process.max, it looked…
iTaMaR
  • 189
  • 2
  • 10