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

nginx 502 bad gateway some files

im using cloudflare. my site working good but not loading any images, css files and js files. my server details; ubuntu 12.04 nginx/1.1.19 php5-fpm mysql you can check live here Check with www and ...
2
votes
1answer
299 views

Linux Nginx + php-fpm + cron + mysqld = always out of memory

I don't get it. I have a VPS with Nginx and php-fpm and MySQL. Should be very lightweight. No Apache, right? When I reboot, it is very lightweight. ~ 50/481 MB MEM usage. Very acceptable IMO. And ...
3
votes
1answer
15k views

How do I change the NGINX user?

I have a PHP script that creates a directory and outputs an image to the directory. This was working just fine under Apache but we recently decided to switch to NGINX to make more use of our limited ...
0
votes
1answer
487 views

File upload folder permission fastCGI - How to make it writeable?

I am using centos 5.7 with cPanel WHM running fastcgi/suEXEC I am trying to make a particular folder writable to allow a script to upload files but seem to be having problems. The folder (and all ...
1
vote
1answer
547 views

nginx + php-fpm cycle redirection error on linode new vps

I'm new to nginx, and I'm trying to make my first server run. I followed this guide as I'm trying to use it for a multisite wordpress site. After installing everything, I get a 500 Internal server ...
1
vote
2answers
582 views

Compiling PHP on Solaris

I'm compiling PHP with --enable-fpm on Solaris 10 (sun4v sparc SUNW,Sun-Fire-T1000) and it stops at #error Sparc v8 and predecessors are not and will not be supported (see bug report 53310) ...
2
votes
1answer
2k views

Apache FCGI PHP-FPM Mac OS X 10.8 unable to bind

So I have found a few other threads about this kind of issue, but their solutions aren't working for me. Basically, this is my development machine and the setup has been fine for a number of weeks ...
3
votes
2answers
1k views

PHP-FPM chroot with chdir

I am trying to setup a site inside of a PHP-FPM chroot. My paths are as follows: chroot = /var/www/ chdir = www/ The chroot works just fine without chdir. But when I add chdir I get this error on ...
1
vote
1answer
406 views

fastcgi cache how-to cache for logged-in users and make it custom for each user

Currently I'm doing cache using fastcgi_cache for non-logged-in users, and using ( if + fastcgi_no_cache + fastcgi_cache_bypass ) to pass logged-in users directly to backend which is PHP-FPM. this ...
0
votes
1answer
331 views

Ubuntu 12.04 php5-fpm stopped recognizing MySQL

So this morning I used aptitude to install a few security updates. Seemed innocent enough until stuff stopped working. Somewhere along the way, a few packages got dropped, I guess. Now PHP ...
2
votes
3answers
1k views

php-fpm version 5.4 with nginx constantly restarting

I just upgraded my php version from 5.3.x to 5.4.x and since doing this - memory has dropped signifincantly! - however, I'm constantly getting these in my php5-fpm.log: [18-Sep-2012 15:11:34] ...
1
vote
1answer
232 views

nginx clean url router/rewrites

im having difficulties with a relativity simple rewrite rules / router in nginx config. All I want to do is, if requested dir or file 'host/my/request/path[/[index.php]]' does not exist, rewrite to ...
2
votes
1answer
4k views

phpmyadmin having problems on nginx and php-fpm on RHEL 6

We have a web server setup with nginx and php-fpm on RHEL6. This machine already has Wordpress installed, and it runs great. We have wordpress set up to go to wptest.domain.local. We then created a ...
0
votes
1answer
2k views

NGINX : Keep alive requests to static content ok - Keep alive requests to php-fpm requests hang until keepalive_timeout is reached

FYI, the initial question I have posted is here, no need to read it as I was way off initially: NGINX + PHP-FPM - Strange issue when trying to display images via php-gd / readfile - Connection wont ...
1
vote
0answers
276 views

Need help optimizing a LEMP stack on a 4GB dedicated server

Recently i got a project i'm working in financed by a friend. So he gave me access to a 60mbps dedicated connection link and a HP Compaq 8200 Elite. The HP is just a desktop, but i'm using it as a ...
0
votes
1answer
176 views

How can I protect access to specific php files at the root of my website

I want to restrict access to (and only to) http://mysite.com/protected.php using nginx. What can I try? For the moment, I managed to do that but the php file is no longer interpreted by php-fpm. ...
3
votes
1answer
764 views

Using a mounted NTFS share with nginx

I have set up a local testing VM with Ubuntu Server 12.04 LTS and the LEMP stack. It's kind of an unconventional setup because instead of having all my PHP scripts on the local machine, I've mounted ...
1
vote
0answers
126 views

Nginx for a site allowing downloads

My friend have a site that allows users to download files.However the moment one guy start downloading server load change from 0.00 to 3.50 in a matter of minutes.Nginx and php-fpm reach D state and ...
0
votes
1answer
377 views

php-fpm error logging with nginx

I have nginx+php-fpm on a server and the messages get truncated at 2048 chars, rendering the message quite unhelpful when a stack trace is logged : I can't see the following fields anymore: host ...
3
votes
1answer
1k views

Why Is PHP-FPM Only Using One Process?

Looking at my PHP-FPM stats page, it looks like only one process is handling all of the connections right now. My guess is that requests are being executed so quickly, thus far, that it doesn't need ...
0
votes
1answer
705 views

How can I setup nginx to serve virtualhosts with rails(unicorn/passenger) and php-fpm

I would like to serve multiple sites on one instance. I install nginx, php-fpm, and a rails app. I use sites like this to guide me. I configure php-fpm to listen to a local socket listen = ...
2
votes
3answers
768 views

High memory usage on the server - can't determine the process

I've noticed high memory usage on the server. Details: OS: CentOS 6.3 - x86_64 Web server: Nginx with PHP-FPM The server is generating PDF documents so the traffic is minimum. top: # top -b -n 1 ...
0
votes
1answer
289 views

Trying to setup virtual hosts on unix PHP on nginx

I have tried to install php5-fpm and Nginx on Ubuntu machine, but I got a problem. When I have only one virtual host on a unix port it is all fine but when I try to add another virtual host Nginx goes ...
1
vote
1answer
975 views

nginx giving 404 when accessing php from alias directory

I am trying to migrate from apache to nginx. The php sites that I am hosting need to access a shared library which turns out to be an alias directory. Below is the configuration I came up with. html ...
2
votes
1answer
285 views

How to cut php-fpm IOPS

I have Amazon EC2 instance with NGINX + PHP-FPM (through socket) + APC. I see sth. like this in iotop on high load. Total DISK READ: 0.00 B/s | Total DISK WRITE: 0.00 B/s TID PRIO ...
1
vote
2answers
923 views

Suggest me a good php-fpm configuartion [closed]

I am configuring a server for a friend.The server has the following specs 8GB RAM Quad Core processor 1 TB HDD 100 mbps port However all php files are loadking very slowly.I did a speedtest and ...
0
votes
2answers
2k views

Nagios+NGiNX “Primary script unknown” Error

I'm trying to get Nagios setup on NGiNX using PHP-FPM. I installed fcgiwrap and and I'm able to execute a Perl script from the cgi-bin folder, but when I try to access Nagios, I get the following ...
0
votes
2answers
304 views

Launching FPM pool as superuser / reflecting root access

I'm building a NAS control application with PHP, that can be only accessed from the local network. I'll start it off with that PHP-FPM does not allow to launch it's pools with user root, and I have ...
0
votes
1answer
2k views

Installing PHP-FPM (PHP 5.4) on Ubuntu with NGiNX

Here is the cmd: pecl install apc Result: downloading APC-3.1.9.tgz ... Starting to download APC-3.1.9.tgz (155,540 bytes) .................................done: 155,540 bytes 54 source files, ...
9
votes
3answers
33k views

nginx fastcgi “Primary script unknown” when configuring userdir

I hate configuring nginx. It's so complicated. How do I get PHP to work in my user dirs? Here's the relevant part of my nginx.conf: location ~ ^/~(.+?)(/.*)?$ { autoindex on; ...
5
votes
1answer
2k views

Setting $PATH for weberver user

I tried to add $PATH for all users including the webserver user (i.e. www-data) with different methods such as editing /etc/profile, /etc/environment, etc. In all cases, it works in terminal, but not ...
1
vote
2answers
615 views

Nginx closes connection while PHP-Fpm is processing

I have a PHP script that does some data processing. The time that it takes to the script to finish all the job is based on the user input. It's not unusual that it takes 5-15 minutes of processing. ...
2
votes
5answers
3k views

Update to recent stable php in Ubuntu 12.04

We run an Ubuntu 12.04 server where php 5.3.10 is installed by default. I thought Ubuntu did only apply bugfixes in their updates, so micros like 5.3.x should pass through. Apparently, our version ...
0
votes
1answer
256 views

Long running requests blocks all subsequent requests

For some reason nginx is not accepting any new requests whenever a slow request is being handled. A simple test is to have a script with a sleep() and call the script from different browsers/devices. ...
2
votes
3answers
3k views

Nginx not logging PHP errors

When accessing some PHP scripts on my website, I'm getting the dreaded 500 error message. I'd like to know what's wrong to fix it, but Nginx isn't logging any PHP errors in the log file I have ...
3
votes
2answers
2k views

Graceful upgrade from php53u to php54

We are running a CentOS 6 node using iuscommunity repo, and want to upgrade previously installed php53u to php54. However, this introduces a dependency conflict between php53u & php54. Does ...
0
votes
1answer
2k views

How to install php5-fpm on debian?

I am trying to install php5-fpm on Debian 6.0.5 and after trying to install php5-fpm: E: couldn't find package php5-fpm Ok, so I tried to add non official repository: add-apt-repository ...
0
votes
1answer
435 views

Webserver Nginx + PHP FPM Access Denied error with .cgi scripts

Webserver with Nginx 1.1.19 and PHP 5 FPM work great with serving PHP and showing output of mysql data. I want to embed nagios in my application and so I needed .cgi scripts for the first time on ...
0
votes
1answer
762 views

Communication failure between nginx and PHP-FPM

I've received my very first VPS just today, and wanted to install a nginx + PHP + MariaDB setup on it. And, well, I actually did it, but I've got a problem configuring it. Getting nginx to serve a ...
0
votes
1answer
863 views

PHP-FPM Chroot jail corrupts timezone db?

I'm trying to setup a PHP-FPM Chroot jail on a new CentOS 6.3 box. I can get the chroot to work fine, in the sense that I can get php scripts to respond and echo things out. But, every time I use the ...
0
votes
1answer
529 views

PHP header redirect working in nginx even output sent

note: There is a similar question but that's about Apache. The following code <?php echo '.'; header('Location: http://stackoverflow.com'); is fully 'working' under nginx 0.7.67 where 'working' ...
2
votes
2answers
2k views

Configuring Nginx & php5-fpm to work with Codeigniter

As I'm trying to make my switch from Apache 2 to Nginx, I faced dozens of problems, and still fixing them. anyway, I'm trying to make them work, but no-luck yet. So I'm asking here looking for ...
4
votes
1answer
7k views

nginx yet another rewrite or internal redirection cycle

Yet another redirection cycle, yes. Have looked at other questions, but just can't seem to get it to work. server { listen 80; server_name localhost; charset utf-8; ...
3
votes
3answers
4k views

Nginx & PHP-FPM - .php File not found - Can't figure out why

I have done days of reading on this issues, as admittedly, I am an Nginx newb. I have read official and unofficial documentation alike and can't seem to solve my problem. Hopefully, someone here will ...
0
votes
1answer
1k views

($_SERVER['REQUEST_METHOD'] == 'POST') not working in nginx

Hi we have recently switched our Magento application from Apache to nginx and PHP-FPM on CentOS 5.6. We have an external payment gateway that sends us back some transaction information. The PHP file ...
3
votes
1answer
5k views

PHP-FPM and continuos “exited on signal 11”

I've a Hp web server with Xeon E5504 2ghz and 8gb ram, with freebsd 8.2-p9 amd64, nginx 1.2.1, PHP 5.3.14, mysql 5.5.25, apc, memcached and other package installed using freebsd ports. (conf file at ...
0
votes
1answer
665 views

PHP-APC Installation

Trying to get my head around the way to install APC cache on PHP 5.3.13. That's a VPS with apache, configured preferably through whm/cpanel (although not only). I read a bunch of articles where it ...
1
vote
1answer
1k views

What is the best place to put umask setting for php-fpm in Centos 6?

For the following two places of php-fpm init configuration on Centos 6, which one do you think is the most suitable to put in, for example, umask = 077 ? /etc/init.d/php-fpm OR ...
7
votes
3answers
1k views

Can I globally set $_SERVER['REDIRECT_URL'] before script execution?

I'm in the process of migrating many sites from an old to a new server configuration. Each site is based on a similar (but sadly not identical) codebase, using mod_rewrite URLs. Ubuntu 8.04 LTS => ...
0
votes
1answer
228 views

php5-fpm fails to start and leaves no log message

when run sudo service php5-fpm start from /etc/php5/fpm/php-fpm.conf: pid = /var/run/php5-fpm.pid log_level = debug error_log = /var/log/php5-fpm.log however ls /var/run/php5-fpm.pid => not ...