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)

0
votes
3answers
83 views

restart php5-fpm from php script

Ok, this is a tricky one (I think) I need to reload php5-fpm from a php script The obvious issue is that once the reload command is executed, the current script is disturbed, I tried to delay the ...
0
votes
0answers
58 views

PHP/FastCGI: Is “&QUOT” the cause of fatal error?

I'm trying to set up Wallabag, a PHP application, for the users on my site. This is one of a number of PHP applications running on a LEMP setup with PHP 7.0 (default on Ubuntu 16.04) When I visit ...
0
votes
0answers
30 views

open_file_cache causes slow response every x times

I'm testing a server on t2.micro ec2 I set this in nginx.conf open_file_cache max=2000 inactive=20s; open_file_cache_valid 60s; open_file_cache_min_uses 5; ...
0
votes
2answers
46 views

nginx+fastcgi+php-fpm step from standard config = 404

I want to work simple url like http://host/test.php, note there are no trailing / at the end. I start from standard config from nginx site + serverfault: location ~ [^/]\.php(/|$) { ...
2
votes
2answers
192 views

Setup nginx for owncloud and other services on the same server?

Right now I have nginx working with 3 services: 1. My webpage on my.example.com/~ignacio, my Rstudio server on my.example.com/rstudio, and my Shiny sever on my.example.com/shiny. This is my config ...
0
votes
1answer
59 views

Apache: “Service Not Available” after setting up php-fpm chroot

I'm running Debian Jessie with Apache 2.4.10. I have been through the "File not found" problem, and ended up referencing this question. The only difference between my setup and his is that I would ...
0
votes
0answers
36 views

php-main.sock file not found in php version 5.6.20

I have successfully installed nginx version 1.9.11 on my remote server, running CentOS 7. I also installed PHP version 5.6.20 by following this link. I am trying to use a PHP socket for running PHP, ...
0
votes
0answers
58 views

php-fpm or nginx are not cooperating well (multipart issue)

I setup a: nginx as https and as upstream php-fmp on ubuntu server 15.10 - 1 core now: nginx receives simple multipart request via ssh POST [path] HTTP/1.1\r\n Host: [host]\r\n Connection: ...
1
vote
2answers
94 views

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the ...
1
vote
0answers
210 views

How do I allow users to override X-Frame-Options when using Apache + PHP-FPM?

I have an Ubuntu 14.04 server running Apache + PHP-FPM + FastCGI, serving user home pages. For security, I have enabled in Apache's configuration: Header set X-Content-Type-Options: "nosniff" Header ...
0
votes
0answers
68 views

Nginx + Php-fpm stuck High Traffic & not all cores are used

My website has a hight traffic up to 8k online users on Google Analytics but from time to time (30-40min) i have to restart php-fpm because it get stuck and the traffic from analytics begin to ...
1
vote
0answers
32 views

nginx stub status SPIKES “writing” for a few seconds, causing 504 error. Why?! Bad VPS neighbour?

I am using Apache and nginx as reverse proxy, with php5-fpm. The latest week we've been receiving the following error in nginx's error.log: upstream timed out (110 connection timed out) while reading ...
1
vote
0answers
39 views

php-fpm chroot setup with apache mod_proxy_fcgi

i'm looking for recent instructions on how to set up apache with mod_proxy_fcgi and chrooted php-fpm. i was successful for the whole process except for the chroot part. i'm trying to use the most ...
0
votes
0answers
28 views

Is it safe for nginx-php-fpm servers in a pool to share config files on a GlusterFS volume?

I'm in the middle of setting up a pool of webservers using nginx with php-fpm. I'm using a glusterfs volume to hold php/html files. I've realized that keeping things like php.ini, and sites-enabled ...
0
votes
1answer
80 views

Postfix won't send PHP mail() function from form

I got postfix to send me emails from my server via console using echo "body example" | mail -s "subject example" my@email, but when I try to send an email from my website via mail(), the php function, ...
0
votes
2answers
167 views

FPM binary for PHP cli [closed]

The newest Synology NAS DSM 6 version has a strange PHP set up. The command line binary is PHP version 5.6.11 with almost no enabled modules and the tokenizer part is not compiled into it. But when ...
0
votes
1answer
46 views

Server reached pm.max_children setting

I am running a WordPress website under Nginx and FPM. In case of traffic it kills the php process and website stop working for all the user. Here is what i found from the log. Is there any way that ...
1
vote
1answer
201 views

Nginx reverse proxy causing file downloads to take excessive time to start

Overview My web app allows users to upload files which are stored on s3 via my servers. When a user requests a file my web server retrieves it from s3 then sends it on to the client. I recently ...
0
votes
1answer
52 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...
0
votes
1answer
73 views

nginx php-fpm how to disable log warnings?

I've a setup with nginx + php-fpm. I found in my nginx error log a lot of PHP Warning messages like this: 2016/03/17 20:57:23 [error] 23002#0: *114868 FastCGI sent in stderr: "PHP message: PHP ...
1
vote
1answer
33 views

nginx, how to give a 5xx when php-fpm is not available?

I've a running setup with nginx and php-fpm. I've found that, when php-fpm is not available, nginx respond with a 404 error. I think that's not the right answer, I will expect that in case of ...
0
votes
2answers
68 views

Symfony Project Nginx

Heey all, I'm trying to host my symfony project but i'm getting a 500 error back from nginx. The error log doesn't show anything. Yet the access log does show something: 46.243.152.13 - - [17/Mar/...
0
votes
1answer
295 views

PHP 7 Module already loaded warnings

I have a machine running Ubuntu 14.04.3 LTS that is deployed via Ansible. I've got PHP 7 installed using Ondřej Surý's PPA for PHP. $ dpkg -l | grep -i php ii libapache2-mod-php7.0 7.0.3-...
1
vote
2answers
136 views

Remove .php extension while running wordpress in root directory

I have wordpress installed in the root directory of the domain. I am using pretty links and fast cgi caching. Now I have a directory inside the root directory (e.G. "/course/") that contains some ....
0
votes
2answers
112 views

Setting php_value in VirtualHost on Debian Squeeze Apache 2.4.10 + mod_proxy_fcgi + php-fpm?

After updating our server to Debian Jessie (8.3), I switched Apache 2.4.10 from mpm_worker/mod_php to mpm_event/proxy_fcgi/php-fpm. I have the handoff configured for all virtual hosts as such: # cat ...
0
votes
0answers
81 views

nginx + apache2 + php-fpm - weird server port

I have nginx as proxy for apache2 + php5-fpm. I've decided to add letsencrypt cert to have a https. I've reconfigured my vhost in nginx and edited apache2 config. Everything seems to work fine, except ...
0
votes
1answer
39 views

Nginx put another website in front

I have a wordpress website served by nginx: server { listen 80; server_name my_wordpress.example.com; root /var/www/wordpress; index index.php; location ~ \.php$ { try_files $uri =404; ...
0
votes
1answer
10 views

which php-fpm sock location should i use?

Im new to server administration so forgive me if the answer is obvious. I noticed that in different tutorials in the web people use different directory/location for the pool sock in php-fpm(On CentOS ...
1
vote
1answer
22 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
67 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
107 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
26 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
74 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
67 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
11 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
324 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
53 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
32 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
62 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
142 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
160 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
107 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
553 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
76 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
31 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
96 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
29 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
85 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. Symptoms:...
0
votes
1answer
25 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 ...