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

Multiple Projects under single Domain Nginx

I have two projects with the different path locations that need to be configured under a single domain with separate upstream PHP 7.1 and HHVM. I am trying to achieve the goal with nginx alias directive, but it renders 403 Forbidden on my specified…
Aftab Naveed
  • 153
  • 1
  • 7
0
votes
1 answer

Nginx / PHP-FPM hanging connections

I noticed that my server this morning was not responding. received nginx error page after waiting some time for the page to load. I decided to restart php-fpm because I figured there was an issue serving the php pages. After doing this the website…
0
votes
1 answer

Set of errors when running a docker container

I have been asked to make a couple tweaks to a legacy PHP project that runs inside a docker container. In order to make those tweaks, I am trying to get a local working copy of the app and associated container running. The docker container runs…
0
votes
2 answers

how to add bcmath extension in php 5.6 with php-fpm on Centos 7

I am trying to add bcmath extension on my Centos 7 which has PHP 5.6 installed along with nginx and php-fpm I ran following and installed bcmath extenstion yum install php56-bcmath Above installed the bcmath extension which I can see under the…
Sahil
  • 159
  • 3
  • 9
0
votes
0 answers

Nginx php routing issue

I'm an Nginx beginner, I'm found a frustrating situation. I have a php app that worked just fine on localhost, but after I moved it to a VPS server routing is broken - all urls render the main page. My nginx config: server { listen 80; …
0
votes
1 answer

How to uninstall PHP 5.4.16

My VPS came with PHP 5.4.16-43.el7_4.1 installed and I am trying to install PHP 7+, but I have been unable to do so. Then when I try to install a library, it conflicts, as shown here: # yum -y install php-mysql Loaded plugins: fastestmirror Loading…
Multitut
  • 101
  • 1
  • 1
  • 2
0
votes
0 answers

LiveZilla - Doesn't work with SSL?

I am running a CentOS server with NGINX and PHP-FPM, everything runs with SSL. I also use cloudflare. I tried installing LiveZilla to a subfolder called livezilla/. Upon visiting /livezilla in my browser, I see…
Dawg
  • 51
  • 7
0
votes
0 answers

nginx locations point not to different files

In my public folder, I have $ ls public index.php mGSV and $ ls public/mGSV/ ARCHITECTURE.txt Install base_mgsv.php history.php index.php mgsv.php scripts tmp Arial.ttf README contact.php …
user977828
  • 225
  • 1
  • 6
  • 15
0
votes
1 answer

Nginx 502 error after updating Ubuntu 12.10 to 14.04?

I had a particularly outdated ubuntu distribution (12.10) and was beginning the process to update sequentially to 16.04. Yesterday, I successfully updated from 12.10->13.10->14.04 using the Ubuntu old releases archive and this tutorial from Digital…
0
votes
3 answers

PHP7-FPM Docker CMD results in 502 Nginx Error

I've a docker compose that use two containers: nginx and php7-fpm. I'm building php via Dockerfile and I need cron installed on it: FROM 'php:7-fpm' # PDO RUN docker-php-ext-install pdo_mysql # Cron RUN apt-get update -q -q && apt-get install -y…
Jumpa
  • 111
  • 1
  • 6
0
votes
1 answer

PHP-FPM Servers being exhausted

I am building a "surge traffic" app that can go from 0 - 50,000 clients, at once, within minutes. I thought I'd ask you guys for some help understanding if I am doing something wrong here. Currently, I am testing with loader.io, my configuration for…
0
votes
1 answer

Potential seperate PHP-FPM pools session id collision

I'm running a server with nginx 1.12.2 and PHP 7.0.27 on Debian 8.10, I'm running two websites with separate PHP-FPM pools for each separate PHP application each site runs. Each PHP-FPM pool and thus each PHP app runs under its own user with nginx…
Technofrood
  • 23
  • 1
  • 8
0
votes
2 answers

NGINX + PHP-FPM virtual hosting redirects php request to wrong directory

My server has 2 sites setup using nginx. Below are the content in /etc/nginx/mysite1.conf server { listen 80; server_name test.mysite1.com; #access_log logs/host.access.log main; location / { root …
Sudh33ra
  • 179
  • 1
  • 2
  • 7
0
votes
0 answers

Issue with external connection from server

Faced with situation that nginx+php-fpm has stopped retrieving content from external resources (like, Amazon API), even file_get_content/curl (PHP) are failing with timeout errors. # wget --debug "URL" DEBUG output created by Wget 1.13.4 on…
FieryCat
  • 101
  • 3
0
votes
1 answer

Nginx with php-fpm url encoding

I have also posted my question in Stackoverflow but i think here is more appropriate place to ask. I use docker and i have setup a nginx container with nginx 1.12.2, a php-fpm container with 5.6.33 and a mariadb container for database purposes. I…
PERIPC
  • 1
  • 2