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
0answers
104 views

WARNING: [pool web2] seems busy even pm.max_spare_servers is not yet reach

I'm confused why this error still occur as I still have lots of spare servers left. WARNING: [pool web2] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers) Here's ...
1
vote
1answer
126 views

Should we have one pool for many websites in Apache+PHP-FPM?

If there are many small websites (about 300) running in light web traffic, should they all use the same pool, or would it be better to have a separate pool for each of them? Let us assume the ...
0
votes
1answer
156 views

Can't get pspell to work

I installed aspell\pspell, and if I do > aspell dump dicts ar cs de de_AT de_CH de_DE en en-variant_0 en-variant_1 en-variant_2 en-w_accents en-wo_accents en_CA en_CA-variant_0 en_CA-variant_1 ...
1
vote
1answer
230 views

Nginx redirecting domain to port 8000 with a 301

I have been looking everywhere to figure out why my nginx server is causing a 301 redirect on one domain, and not the other. I have two sites configured on this server in an apache style ...
0
votes
0answers
58 views

What happens when php-fpm's active process count reaches max_children?

The documentation doesn't seem to make it clear what exactly happens if a request comes in to php-fpm and all available processes are active. Does php-fpm queue up the request or does it simply drop ...
0
votes
1answer
129 views

Is It Okay To Reload PHP-FPM Most Often?

Even how high I set the pm.start_servers, or pm.min/max_spare_servers, I always get this error when PHP-FPM reach the limit: WARNING: [pool web8] seems busy (you may need to increase ...
1
vote
0answers
44 views

Paths Generated by PHP Applications Incorrect In Fedora nginx php-fpm Setup

I have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am ...
1
vote
0answers
103 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
1
vote
1answer
959 views

Nginx & PHP-FPM - Unable to open primary script ERROR

I have a blog with some rewrite rules when in comes to viewing single posts. The viewing is handled by a file named view.php. I am using some rewrite rules in my vhost config as follows: location ...
0
votes
0answers
99 views

uri-specific fastcgi param in nginx

My end-goal is for different modules in our application to be segmented in New Relic differently. I basically want /admin to be recorded as "App-Admin" and /user to be recorded as "App-User", for ...
1
vote
1answer
3k views

nginx, alias, php-fpm = File not Found

I'm trying to set up nginx with DAViCal. However, I'm getting a "File not Found" with a "FastCGI sent in stderr: "Primary script unknown" in the log. Looks like something is wrong with my aliasing but ...
0
votes
1answer
179 views

'File not found' exact path in nginx and php-fpm

Sometimes when configuring nginx and php-fpm I get message "File not found." I know this is beacause of wrong parameter SCRIPT_FILENAME, e.g.: fastcgi_param SCRIPT_FILENAME ...
1
vote
1answer
140 views

Rewrite file extensions in NGiNX

I'm looking to show a file like domain.com/login instead of domain.com/login.php My NGiNX site config is: #02API server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; ...
1
vote
0answers
51 views

Nginx +php-fpm auth_base on url

Good evening. How i can protect some URL by password(auth_base)? When i try write location ^~ /test/ { auth_basic "admin login"; auth_basic_user_file /etc/nginx/httpd.passwd; location ~ \.php$ { ...
0
votes
1answer
718 views

“php5-fpm: unrecognized service” and other issues after reverting from PPA

Added a repository so that I could move from PHP 5.3 to 5.5 easily in Ubuntu 12.04.3 LTS. After adding the PPA and following most of the suggestions here http://askubuntu.com/a/109544 it seemed that ...
0
votes
0answers
229 views

503 error while setting up PHP-FPM with lighttpd

I am trying to install Lighttpd on a Centos 6.4 server with PHP5 support (through PHP-FPM) and MySQL support. I followed the tutorial to the letter as given on ...
0
votes
2answers
67 views

Nginx not passing uri to php5-fpm, instead serving as text file

as stated above the uri isn't being passed to nginx. I've included the entire "try" block to show this. location / { # First attempt to serve request as file, then # as directory, then fall ...
3
votes
2answers
3k views

nginx with php-fpm downloading php files rather than executing them on mac os x (local environment)

I'm having trouble getting PHP files to execute on my local development machine. I seem to have successfully installed nginx and php-fpm also seems to be correctly installed, and running but can't ...
3
votes
2answers
437 views

php5-fpm maxes out all cores (nginx+php5fpm+wordpress)

We have a 16 gig linode running with 8 cpu cores and I'm trying to debug an issue that when I try a load test that the server starts to freak out around 250 requests a second on a pretty basic ...
-1
votes
1answer
533 views

Unknown 502 bad gateway a php page running on nginx php-fpm [closed]

I am having a hard time trying to understand why my php page doesn't load. It always ends up in a 502 error page. I'm on osx mountain lion with homebrew installed nginx and php-fpm with php 5.5.7 ...
2
votes
2answers
115 views

403 statuses on nginx at FreeBSD

I'm trying to switch from an Apache hosting solution to nginx with php-fpm on FreeBSD 9.2. I'm rewriting my script for creating vHosts and stuff for nginx now and get 403 statuses when I try to ...
0
votes
3answers
180 views

Reduce system load when using image processing via php-fpm/nginx

We have a PHP image api written in Code Igniter that's based on imagemagic. We have the api behind nginx/php-fpm. We know the Imagemagic part is heavy, but we try to make the overal throughput higher ...
1
vote
1answer
21 views

Consequences of source installation in “non standard” directory

I compile and install a lot of programs myself from source. Since I have a working installation of apache + PHP but would like to try Nginx + PHP-FPM I would like to install these in non standard ...
-3
votes
1answer
251 views

nginx with php-fpm got 502 bad gateway on ubuntu server 12.04 [closed]

I just don't know why i got a 502 error. Please help. you can visit here http://upliu.net/phpinfo.php phpinfo.php just has one line code: phpinfo(); but i got a 502 bad gateway error someone can help ...
1
vote
1answer
113 views

php5-fpm does not initialize after ubuntu 12.04 reboot

When I reboot my Ubuntu 12.04, php5-fpm doesn't run automatically. However nginx does start automatically. I am using Unix socket instead of TCP\IP This is the output of /etc/init.d/php5-fpm status ...
0
votes
1answer
129 views

apache2.4 + php-fpm + squirrelmail

I'm trying to make squirrelmail work with apache 2.4 + php-fpm (via mod_proxy_fcgi), I want it to work on all virtual hosts when requesting "/wm". On my old VPS, which had apache2.2 and php as its ...
3
votes
2answers
274 views

nginx+apache2.4+php-fpm - SERVER[“REMOTE_ADDR”] and php_admin_value

I'm trying to get server work in the way nginx->apache2.4->php-fpm(via mod_proxy_fcgid) (nginx for serving static files) (I'm not sure apache is even needed now). It works but I got few questions. ...
0
votes
0answers
560 views

How to configure Plesk 11 to use PHP-FPM with Apache only (without nginx)?

I'm quite new Plesk, running on my own private virtual server (CentOS x64). I was able to install nginx and php-fpm support using the add/remove components functionality. It was straightforward. ...
0
votes
0answers
48 views

Tweak Nginx and PHP-FPM for memroy usage

I switched to nginx to help me with less memory on VPS and High and speedy performance at the same time. But Now I have a problem of memory usage? Even If I add more memory to my VPS at the end of a ...
0
votes
3answers
3k views

Trying to install PHP MySQL driver with MariaDB already installed

I have a VPS which came from an image called CentOS 6.4 x64,Nginx,php-fpm,MariaDB. PHP and MariaDB are both installed, but it seems that PHP does not have the MySQL driver installed. I first tried ...
0
votes
0answers
452 views

Should I Set pm.start_servers to Highest Value or Not?

I have the following settings on my PHP-FPM: pm.max_children = 256 pm.start_servers = 50 pm.min_spare_servers = 40 pm.max_spare_servers = 128 Even if I set it to higher value, I still get the ...
0
votes
1answer
252 views

504 gateway timeout after loading several php pages

I have found that after requesting several php pages in succesion, the page load time seems to slow down, before eventually not loading, and giving 504. I can't find any relevant errors except this ...
2
votes
0answers
126 views

nginx and php-fpm performance cpu bound

in peak hours our server is cpu bound. we are hitting 100% cpu. using php5-fpm and nginx on a large ec2 instance. to serve around 50 million requests per day. we are using this server to serve JSON ...
0
votes
1answer
53 views

OpenVZ sharing PHP5-FPM socket

I need a problem with sharing php5-fpm.sock between 2 vz containers I have 2 containers: 1. with NGINX 2. with PHP5 and PHP5-FPM Link containers over NFS I tried using: 1. mount --bind ...
0
votes
1answer
449 views

How to set umask for php5-fpm in ubuntu 13.10

I am currently running nginx with php5-fpm on my local development ubuntu 13.10 system with 3.12.0 linux kernel. Before update, to set umask to 0002 for php5-fpm I edited /etc/init.d/php5-fpm file ...
1
vote
1answer
560 views

nginx varnish nginx php-fpm: real ip for php's _SERVER['REMOTE_ADDR']

This is specific question. A Nginx server (call it N1) listens on :80 and forwards to varnish with proxy_pass Varnish listens on 127.0.0.1:6081 and forwards to Nginx (N2) on 8080. N2 talks to the ...
2
votes
1answer
569 views

nginx+php-fpm(chroot). No input file specifed

OS: Centos PHP: 5.5.6 Nginx: 1.4.4 Nginx conf server { listen 80; server_name example.ltd; root /srv/example.ltd/www; index index.php; access_log /srv/example.ltd/logs/nginx-main.log main; ...
0
votes
1answer
443 views

NGINX not serving CSS & JS

NGINX will not serve CSS or JS files to the browser Link to page (magento) http://836237.vps-10.com/ Access log shows: [01/Dec/2013:16:55:17 +0000] "GET /js/varien/form.js HTTP/1.1" 304 0 ...
0
votes
0answers
120 views

Nginx/php-fpm 502 Bad Gateway due to heavy MySQL load

I'm importing billions of rows into a table with MySQL. This table is not used by any scripts/pages at all. But because of the heavy import the server is now giving 502 Bad Gateway errors on all PHP ...
1
vote
0answers
3k views

NGINX connect() to unix:/var/run/php5-fpm/forums.socket failed

I recently set up my server again with nginx, PHP-FPM. i did what I always do but now the nginx or php-fpm doesn't process php files. ( I test with the simplest form of php phpinfo(); ). In the error ...
1
vote
0answers
222 views

Why does static vs dynamic process management affect memory usage so much for php-fpm?

I recently migrated a client to an EC2 instance running Nginx + PHP-FPM. When I first setup the server I had set pm=static with 40 worker processes. After a week or so I decided to experiment with ...
1
vote
1answer
2k views

How to install SOAP extension on PHP-FPM 5.5.6 - dependency issue

I have a problem with installing SOAP extension for PHP-FPM 5.5.6 (both 32 + 64 bit) with nginx on CentOS 6.4. I have enabled REMI repos and installed everything succesfully - except the SOAP ...
0
votes
1answer
472 views

PHP-FPM/nginx-SELinux: No input file specified

I have problem setting up nginx (with passenger, which works fine) with php-fpm on Fedora. When I try access index.php via browser, I get "No input file specified." Nginx error log: 2013/11/29 ...
0
votes
3answers
139 views

Can't get apache running on server with nginx

I've been kind of thrown into the roll of sys admin at my office and don't really know what I'm doing. I'm running Ubuntu 12.04. The server for our website is currently running nginx. The site keeps ...
0
votes
1answer
116 views

ClamAV not installed. ClamAV is already installed

Re-Edit: After lots of Googling, lots of tracing, lots of tinkering with the nginx.conf & /vhosts - It came down to an error message saying ClamAV was not up to date. Running clamscan told me ...
0
votes
0answers
329 views

FastCGI: server “…” stderr: Primary script unknown

I'm using Apache 2.2 + mod_fastcgi + PHP-FPM My fastcgi.conf (Apache): <IfModule mod_fastcgi.c> Action php-script /php5.fcgi virtual Alias /php5.fcgi /var/www/fcgi/php5.fcgi ...
0
votes
1answer
309 views

NGINX configuration for video streaming server

I have purchased cloud server at digitalocean.com with 2GB RAM and DUAL CORE Processor. I want to set-up video proxy service i.e. to proxy youtube videos. I have installed NGINX + PHP-FPM server and ...
0
votes
2answers
256 views

nginx returning error 502 when get not exist key on memcached

i use nginx 1.2.3(php-fpm) php 5.4.7 pecl memcached 2.1.0 memcached 1.4.15 if memcached service stop or get a not found key,nginx return 502 error and in error_log: 2013/11/19 17:37:04 [error] ...
0
votes
0answers
172 views

Nginx not passing rewrite to FPM

Here are the pertinent lines of my nginx.conf file. location / { try_files $uri $uri/ /index.php @rewrite; } location @rewrite { rewrite ^/customer/(.*)$ /customersDisplay.php?id=$1; ...
0
votes
1answer
219 views

launchctl won't load php-fpm with this LaunchAgent

I'm trying to start php-fpm with launchctl. Running directly from the command line is no problem: $ /usr/sbin/php-fpm -p /Users/dmitry -e Here's the contents of ...