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

learn more… | top users | synonyms (2)

1
vote
1answer
18 views

NGINX/FPM Fastcgi Variables to specific Files

Why it's not possible to set fastcgi_ignore_client_abort on; to work ONLY for 1 file like: if ($uri ~* /test.php) { fastcgi_ignore_client_abort on; } Nginx says [emerg] ...
0
votes
2answers
47 views

Running multiple PHP-FPM pools on Apache for different URLs?

Due to different priorities of the parts of the PHP app, the goal here is to have one pool for general usage, and another for The /api/* URLs. To make things complicated, the app uses internal URL ...
1
vote
1answer
78 views

Let's Encrypt certificate not recognized by Nginx

I successfully created some LE SSL certs, using this guide. However, when I updated my nginx config to use the certs and redirect all port 80 traffic to 443. http successfully redirects to https, the ...
0
votes
0answers
21 views

Php-fpm shared socket and open_basedir risks

Given an environment (nginx + PHP-fpm) with multiple webspaces sharing one fpm socket and each restricted to their own directory by open_basedir. Where are the security differences compared to the ...
2
votes
0answers
51 views

PHP-FPM random timeout crashes

Similar questions have been asked about this but none have seemed to shed any light on this issue. I am using PHP 5.6.18 on Ubuntu 14.04. The server its on is an in-office server with an 8 core CPU ...
0
votes
1answer
49 views

Nginx doesn't server subfolder api application (php-fpm)

I have following folder structure for my application, located in map /home/valor/development/mypp.com/public_html/ - css - app - js - ... - server (codeigniter) -- system -- application -- ...
0
votes
0answers
10 views

Compile PHP with the setting and extensions of the system one

My client has a server on Ubuntu with PHP 5.4. Currenctly I want to add PHP 5.6 + PHP-FPM to give the possibility to use a newer version of PHP. The question is : Is there a simple / quick way to ...
0
votes
0answers
222 views

Nginx + PHP7 + PHP-FPM

How needs PHP7 + PHP-FPM configured on a Ubuntu 14.04 server? I installed PHP7 according to this article: https://serversforhackers.com/video/installing-php-7-with-memcached Plain html files are ...
0
votes
1answer
35 views

Stop numproc exceeding the limit

We are running magento on VPS, which is facing a Numproc issue. According to our hosting provider, our server is exceeding the limit of numproc "400" & memory usage is also high. Because of this ...
1
vote
1answer
31 views

Wordpress, Varnish, Nginx + php5-fpm - php5-fpm firing every hit.

I am hosting a wordpress site on a 512Mb digitalocean VPS. All is good, varnish is getting a perfect hit rate. Logged in users bypass. The only thing i am noticing is php5-fpm is firing every visit. ...
0
votes
0answers
43 views

session.save_path and open_basedir in PHP 5.6

I've been playing around with PHP 5.6 and configuration options "open_basedir" and "session.save_path". I noticed that "session.save_path" doesn't have to be included in "open_basedir". I tried this ...
0
votes
1answer
93 views

NGINX error when using external PHP-FPM

I am currently trying to setup an 3 servers, 1 for nginx and 2 for php-fpm. the nginx server also have php-fpm since i tested if everything works well. while using upstream php-external{ server ...
2
votes
1answer
99 views

Flarum on a sub-directory along with Laravel (Nginx)

I've been trying to put Flarum on a sub-directory with Laravel being on the root directory. I've tried a number of things and the only response that I get from the server is either a 404, or the ...
1
vote
1answer
73 views

FastCGI sent in stderr: “Primary script unknown” + Owncloud

I experience a weird error with my nginx/php5-fpm configuration. I already posted this question on the owncloud forums and asked the nginx forum, but they have no idea. As i searched serverfault, the ...
1
vote
1answer
347 views

Updated cURL not taking effect in PHP

I have an application running through Docker, based on the official PHP Docker image. I've extended it to update cURL and get it working with nghttp2 and openssl, which is what I need for HTTP/2 ...
0
votes
0answers
54 views

Apache with mod_php fpm fastcgi, which is most secure?

I have a web server to install and I would like to have your minds about my choice of using mod_php instead of fastcgi of fpm. On the web server there is only one Drupal website and only one system ...
0
votes
0answers
29 views

php-fpm Reload Breaks up everything

I'm using PHP 7.0.3 FPM Service on Centos 7.2 I have currently 300 different FPM pools under 300 different users that all runs with ondemand. The problem is when i add a new pool i have to ...
0
votes
0answers
49 views

error 524 timeout cloudfire in linux server?

My plan in a VPS digitalocean is: 4 GB RAM 60 GB SSD DISK (And nginx (webserver), php5-fpm, varnish and a store Magento, and Cloudfire for dns) So.... i have a magento store and when i try to make a ...
0
votes
1answer
9 views

Changing the name of php5-fpm pool causes 502

I have a webserver running multiple sites, each site has it's own php5-fpm pool. One particular site is behaving very strangely. I have a conf file setup for it in /etc/php5/fpm/pool.d/ and ...
0
votes
0answers
28 views

Server Specs for browser game that hugs cpu

Our team have developed a web browser game, our servers are using nginx and php-fpm to host the website. the game consist of two parts an api and the game itself. both applications reside on its own ...
0
votes
1answer
64 views

Ubuntu - Nginx + php5-fpm - suddenly times out every request even after restart

Caveat - Newbie nginx/php5-fpm/ubuntu I inherited a couple linux boxes and have had the same thing happen on both. I assume it's user error, but for the life of me I don't know what I did. ...
0
votes
1answer
23 views

PHP FPM Timing Out

We have PHP FPM with Apache running Wordpress. Occasionally I have noticed certain plugins that call external URLs have the ability to really mess with FPM resulting in lots of timeouts etc if the ...
1
vote
1answer
38 views

Nginx serving .PHP as a download only when .php is added with arguments

Here is my current nginx config: server { server_name mydomain.example; access_log /srv/www/mydomain.example/logs/access.log; error_log /srv/www/mydomain.example/logs/error.log; root ...
0
votes
0answers
25 views

Jail php (nginx + unix socket) in a folder

I have to store two php applications in a single server. Following my current setup: /etc/php5/fpm/pool.d/app1.conf [app1] user = app1 group = app1 listen = /var/run/php5-fpm-app1.sock listen.owner ...
2
votes
1answer
109 views

Run a specivic (older) php version with nginx, php-fpm on debian

In order to migrate old php software, I want to run php 5.3.* so I: Removed php via apt-get purge php* Added the corresponding http://snapshot.debian.org/archive/debian/ to the sources Installed ...
1
vote
1answer
268 views

PHP 7 and 5.6 parallel in Nginx

I want to use PHP 7 with newer apps and PHP 5.6 with apps, that doesn't work with PHP 7. So I try to configure Nginx to enable different PHP versions for different pathes. But it doesn't work: # ...
3
votes
1answer
170 views

php-fpm and nginx @ high CPU usage?

My server is with DigitalOcean with the following plan: 2 Core Processor 2 GB Memory My website is receiving thousands of visitors, however, both CPU cores are @ 100%: The issue seems to be with ...
0
votes
1answer
86 views

nginx + php-fpm is extremely slow

I have a very low tier VPS - 1GB ram and 1 CPU w/ 30gb SSD running CentOS (v7.2.1511). The server only servers php-fpm (v5.4.16) and nginx (1.6.3). Mysql and Mongo databases are on another server. I ...
1
vote
0answers
48 views

PHP page refuses to appear despite checking php-fpm, SELinux, and nginx

Problem I have a small web server that hosts a small PHP page that performs a very small function. I used to host this on another machine. I move the website to a new machine with a different ...
0
votes
0answers
18 views

Why was my max_children reset on server restart?

A week ago, I modified my /etc/php-fpm.conf file and changed pm.max_children = 215 to pm.max_children = 130 Last night, I scheduled a reboot and this morning, when I came in we were again at ...
0
votes
2answers
511 views

PHP 7 cannot connect to MySQL

I have compiled LAMP servers for hundreds of times. However I am facing issues with PHP 7. I compiled it properly, but it cannot connect to MySQL in localhost. phpinfo shows PDO and mysqli are ...
0
votes
0answers
45 views

NGINX returning 404 error for just one file

I have an NGINX setup with virtual hosts running on Ubuntu 15. On one of them, suddently, a file called assigndocs.php returns a 404 error. But just that one file. All the solutions I found answer ...
-3
votes
1answer
21 views

php5-fpm works for a bit and then stops (nginx/wordpress) [closed]

I'm running wordpress on an nginx/php5-fpm setup and every few minutes, php stops working. When someone tries to subscribe, it works at first and then it stops and takes the user to a 500 server ...
-1
votes
2answers
97 views

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX ...
3
votes
1answer
143 views

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi): ...
0
votes
1answer
215 views

Centos 7 nginx php upgrading

My currently running website works great and it currently using php 5.4.45 FPM/FastCGI, however I would like to upgrade to php 5.5.9+ for an api documentation subdomain that has that php requirement. ...
0
votes
0answers
126 views

Apache: A lot of connections gracefully finishing?

at the moment I'm mentioning that a lot of connections are gracefully finishing if I visit my apache2 status-page. What does that mean and why are they gracefully finishing? Some of them are in this ...
-1
votes
1answer
666 views

How to solve “The apache2 configtest failed.” in ubuntu 12.04 lts [duplicate]

After update my php got the error: The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of ...
3
votes
1answer
33 views

PHP FPM, location nesting vs unnested for avoiding code execution

Is there any advantage using: location ~ \.php { location ~ \..*/.*\.php$ { return 403; } fastcgi_pass ...
1
vote
0answers
58 views

High load with Nginx - with low traffic websites

Once in a while (maybe once a day?) I've got a load average of 10. That lasts for like 30 min (where I can't reach any of websites on this server) and then it's fine again. I just happened to be via ...
0
votes
1answer
113 views

Nginx fastcgi_cache not working for one WP site (but working OK for time.php on different vhost)

I am running Ubuntu nginx 1.8 with fpm php 5.5, on one site I am able to get cache working (with a simple time output) <?php echo time();?> shows: Connection:keep-alive Content-Encoding:gzip ...
1
vote
0answers
21 views

nginx + php-fpm/hhvm specific openbase_dir requirement

I have structure like this: user1 - site - public - functions.php user1 - site - public - functions.php appuser - app - index.php nginx sets php to appuser - app - index.php which includes ...
0
votes
1answer
76 views

nginx + php-fpm downloading php (CentOS 7)

I have nginx and php-fpm installed on Centos 7, when i try and go to a test php file it downloads it instead of running and rendering in the browser. All other html, image files etc display fine. If ...
0
votes
1answer
29 views

An other FPM instance listening on php5-fpm.sock

i have set up multiple PHP versions in ISPconfig 3 and the hole thing actually works except i can not start more then one Version at a time then i get this error "An another FPM instance seems to ...
0
votes
0answers
25 views

PHP5-FPM is not working behind Varnish

I've got the following Setup: A Nginx Server which listens on Port 443 with the following Config: server { listen 443 ssl http2; [SSL Part etc.) location / { proxy_pass ...
0
votes
1answer
69 views

Simple NGINX setup not working

So I am new to NGINX, and I am trying to setup a simple phpinfo page in /home/codehitman/nginx/phpinfo directory. I have setup the /etc/hosts file with the following directive: 127.0.0.1 ...
1
vote
2answers
28 views

what are my options for linking directories

I have a configuration file which refers to a file structure. This is what I have <?php // HTTP define('HTTP_SERVER', 'http://XXXX.co.uk/public_html/'); define('HTTP_IMAGE', ...
0
votes
0answers
51 views

Nginx + php-fpm configuration issue: “Primary script unknown”

I have vagrant box where is running the nginx + apache-fpm. But seems like they doesn't work. When I'm trying to get / on my server I'm receiving 404 HTTP-status with "File not found." body. Error ...
0
votes
1answer
218 views

NginX->Varnish->PHP-FPM Blank pages

I want to put nginx in front of Varnish, which at the same time will go back to nginx to serve some PHP (Drupal). But I am only getting blank pages (from Varnish) with 200 response, but length 0. ...
-1
votes
1answer
590 views

How to upgrade PHP to 5.6.x or 7.0.x on CentOS 7.2?

I'm on CentOs 7.2 with PHP 5.4.16. I'd like to update to PHP 5.6.x or maybe even to PHP 7.0.x if it's safe to do. What are the steps to safely switch to a newer PHP version? These are PHP related ...