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
389 views

Using both mod_php(Apache) and php-fpm(nginx) in one server

Is it possible to use Apache+mod_php and nginx+php-fpm in same server? I know these two servers can NOT share same port, but is it possible to run two different PHP modules in one server? I'm ...
-1
votes
1answer
122 views

Nginx, deny access to certain url

I have a url shortening website. The url shortening is done by PHP. I need to restrict access to certain urls. This means certain url should be blacklisted for shortening. Is there any server side ...
1
vote
3answers
105 views

Is this normal that www-data still needs to have read and execute permissions on htdocs when using PHP-FPM?

I have setup an Apache+PHP-FPM environment and I have set the following in the PHP-FPM pool file: [www] user = mary group = mary listen = 127.0.0.1:9000 pm = dynamic pm.max_children = 8 pm....
0
votes
1answer
250 views

PHP Opcode cache that can detect identical files

I am currently using APC with PHP FPM to cache a few hundred Wordpress sites. With a 2gig cache everything works well but it isn't terribly efficient and the cache is always maxed out. If I have 200 ...
1
vote
1answer
558 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
535 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 ...
2
votes
1answer
918 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 (sites-...
0
votes
1answer
215 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 pm.start_servers,...
1
vote
0answers
62 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
229 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 ...
2
votes
1answer
4k 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 /...
6
votes
2answers
16k 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
688 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 /some/path$...
1
vote
1answer
338 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
97 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
5k 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
2answers
121 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 ...
6
votes
2answers
11k 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
829 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 ...
2
votes
2answers
292 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
4answers
488 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
25 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
622 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
716 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
419 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
881 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. ...
1
vote
5answers
7k 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
707 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
867 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
1answer
340 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
122 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 /var/lib/vz/...
0
votes
1answer
2k 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
2k 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 php-...
2
votes
2answers
2k 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; ...
1
vote
1answer
3k 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 "http://...
0
votes
0answers
282 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
4k 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 ...
5
votes
1answer
962 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 pm=...
3
votes
1answer
9k 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
874 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 12:...
0
votes
3answers
442 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
283 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
1answer
805 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
591 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] 3972#...
0
votes
1answer
4k 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 /Users/dmitry/Library/LaunchAgents/...
1
vote
1answer
136 views

Can't setup nginx + php5-fpm in a fresh installation getting 404

I just've downloaded nginx 1.4 and right away I see the "Welcome to nginx!" message, then I've installed php5-fpm from the repositories so I create a php file at /usr/share/nginx/html/demo.php just ...
0
votes
1answer
1k views

How to properly prevent 504 Gateway Time-out?

I've an script that can run for about 15 min as it is a large data migration tool. I have the problem that either if i set fastcgi_read_timeout 9900; it never times out or if i set it to less then it ...
2
votes
4answers
2k views

Forwarding PHP requests via ProxyPassMatch as a handler, or only when file exists

I am migrating my server to use mod_proxy_fcgi and php-fpm instead of mod_php. Apache is able to forward .php requests to the fcgi proxy and PHP executes correctly. I've got this working with: ...
1
vote
1answer
494 views

PHP app breaks on Nginx, but works on Apache

I want to migrate a PHP application from Apache to Nginx. The problem is that the App breaks, because the routing doesn't work anymore and I'm not exactly sure how to fix it. The PHP application ...
1
vote
1answer
3k views

Nginx redirect all request that does not match a file to a php file

I'm trying to get all request to: http://example.com/downloads/* redirect to http://example.com/downloads/index.php except if the requested file exist in /downloads/ ex: http://example.com/...