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

Only few stats are showing up in PHP-FPM status page?

Here is the content of usr/bin/fpm-status.sh SOCKET=/var/run/php-fpm/php-fpm.socket CGI2FCGI=/usr/bin/cgi-fcgi # Sets FCGI request environment variables. export SCRIPT_NAME=/fpm-status export ...
0
votes
1answer
223 views

which php-fpm, nginx or related config variable effects whether source file changes are checked by the server?

i am using nginx with php-fpm (on centos) and a while ago i found a variable in one of the various config files that determines whether the server checks for the existence and/or change status of each ...
0
votes
1answer
555 views

Odd permissions issue with php-fpm, session_start failed on some but works on others

Ok, I have php-fpm/apache/apc installed on ubuntu 12.04 with a website running a php shopping cart. I am getting flooded with perrmissions errors like "Failed to write session data (files). Please ...
3
votes
1answer
2k views

Running Moodle with nginx in userdir (slash arguments)

I am moving Moodle (moodle.org) from an Apache host to a Ubuntu 12.04 LTS host running Nginx. The way the host is set up means that it will running quite a few domains where every domain (or other ...
0
votes
4answers
3k views

How To Reduce php-fpm RAM Usage in CentOS 6.4?

I've installed LEMP stack on my server. My server have 1GB of RAM with no load. I've installed php-fpm and it looks like it's using most of the RAM of my server. I've used the below command to get ...
2
votes
1answer
916 views

PHP-FPM not working as global PHP handler on Apache, CentOS 6.4

I'm trying to switch PHP handler on my server from mod_php to PHP-FPM. But something with my setup is worng. When I'm trying to open server.com/info.php, it's being opened as standard text showing ...
0
votes
1answer
204 views

How To Solve WP-DBManager Permission issue?

I've installed WordPress on a LEMP stack which is powered by CentOS 6.4. I installed WP-DBManager plugin today and it's showing an error which is mentioned below: Your backup folder MIGHT be visible ...
0
votes
1answer
217 views

What is the correct way to deny access to all files with nginx?

This is my configuration of the subdomain dev.mypage.com: server { listen 80; server_name dev.mypage.com; root /home/user/web/dev; index index.html index.htm ...
0
votes
2answers
602 views

PHP Upload File leads to blank page

I have the following code: <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input ...
0
votes
2answers
2k views

How To Install Xcache on CentOS 6 and Nginx?

I've bought a new VPS and I'm not a linux geek. I've already installed LEMP stack on CentOS 6. I just tried to install Xcache on my VPS. I've used the below command to install Xcache but it shows an ...
0
votes
1answer
422 views

Error 500 when accessing URL - Centos 6 (selinux disabled) - NGINX - PHP-fpm and GITList

Installed Centos 6 (selinux disabled) - NGINX - PHP-fpm and GITList. when I access my URL I get a server error (The website encountered an error while retrieving http://git.sastratechnologies.net/. It ...
0
votes
1answer
210 views

Optimize nginx/php-fpm/postrgresql [duplicate]

I've got: a CPU E5-2407 (quadcore Xeon 2.2GHz) 16GB of memory DDR3 RAID1 Intel520 SSD 240GB My homemade applications are using a permanent PG connection on 7 pages (one called by customers as API, ...
0
votes
1answer
648 views

nginx repomd.xml 404 Not Found

I set up the nginx repository as specified at http://wiki.nginx.org/Install [nginx] name=nginx repo baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/ gpgcheck=0 enabled=1 When I try to ...
4
votes
4answers
4k views

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' undefined symbol: gdImageWebpCtx in Unknown

We're running RHEL6 and just started getting this error when restarting php-fpm. PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' - /usr/lib64/php/modules/gd.so: ...
1
vote
1answer
513 views

PHP5-FPM reload from web browser: Internal server error 500

I am creating a free shared hosting service for fun and learning. I made a simple form where the user enters the subdomain and ftp password. When the user hits submit, a script generates a linux user, ...
3
votes
2answers
6k views

FastCGI: comm with server … aborted: idle timeout (30 sec)

I have multiple virtual webs running Wordpress but this one started to throw errors and I am unable to find the problem. Apache says: [Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: ...
0
votes
1answer
962 views

Missing php5-fpm after PHP5.5 upgrade

I just updated my PHP on Ubuntu 12.04 Now, with all weirdness, I did a simple phpinfo.php on my server, then this 502 Bad Gateway starts appearing. I check the /etc/nginx/sites-available/default ...
-3
votes
1answer
448 views

Make: *** [processor.out.c] Error 1

CentOS PHP-FPM './configure' '--enable-fpm' '--with-libdir=lib64' '--with-bz2' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' ...
1
vote
2answers
928 views

Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down

Recently, I have changed from Apache mpm-prefork (PHP module) to mpm-worker (PHP-FPM) due to memory issues. I am running a quite-large PHP application that requires ~20-30M per prefork process. ...
0
votes
2answers
199 views

Running multiple versions of PHP under Apache, but requiring modules from .deb file

I have a setup where I've unfortunately hit a version limit between a library package required for an application, and my version of PHP. I'm now running PHP 5.4, but the module is only compatible ...
2
votes
0answers
830 views

Trying to get the “pool seems busy” errors to stop with php-fpm

I have a machine that is running with 3 cores and 7GB of RAM. On this machine we are running Nginx 1.4.2 and PHP-FPM. Each PHP-FPM process uses ~30MB of RAM. So this is the pool configuration I have ...
1
vote
2answers
3k views

Centos / vsFTPD / Nginx / php-fpm - Permission denied (500 Internal Server Error)

I have a clean Centos 6.4 (x64) minimal edition installed (fully updated). Once the OS was setup, I followed this relatively simple guide to setup my FTP: ...
1
vote
2answers
9k views

PHP5-FPM + Apache2 on Debian Wheezy : connect() failed with FastCGI

I have this error on Debian Wheezy, I don't understand what am I missing. Logs from php5-fpm are OK. Error from apache2 log: [error] (2)No such file or directory: FastCGI: failed to connect to ...
1
vote
1answer
5k views

Segmentation faults nginx + php5-fpm [closed]

I have questions about segmentation faults. I am runnbing Debian + Nging + Php5-fpm + Mysql + Imagemagick. How to find out what script (or program) is causing segmentation faults? I need a very ...
1
vote
2answers
376 views

Can I make nginx to resend the request to FastCGI after a few seconds?

My FastCGI (PHP-FPM) application may encounter a situation where it needs some time to heal itself up. I'd like to tell to nginx that it should wait a few seconds and then resend the request to the ...
1
vote
1answer
2k views

PHP-FPM using 40% CPU for a Single Request

(I googled and searched this forum for hours, found some topics, but none of them worked for me) I'm using Wordpress with: Varnish + Nginx + PHP-FPM + APC + W3 Total Cache + PageSpeed. As I'm using ...
-1
votes
2answers
207 views

Installing php extension with yum [closed]

I'm very new to Linux and yum. I need to install a php extension (ioncube loader) using yum, but I'm not sure how exactly this is done. I'm going off this article, which tells me I need to run the ...
-1
votes
2answers
233 views

Nginx: Is there a way to prioritise requests from a specific IP address?

We have a public website that also serves requests for an internal system (on a dedicated IP address). When the website gets busy, and the server load increases, all requests slow down. This is ...
0
votes
1answer
694 views

PHP-FPM SuExecUserGroup not working

I have installed php, apache, and fastcgi_handler by: emerge dev-lang/php www-apache/mod_fastcgi_handler I managed to make it work by updating the relevant lines in ...
4
votes
1answer
629 views

Still confused by Permissions - linux, nginx, php-fpm

I have read the canonical answer at What are the best linux permissions to use for my website? However I'm still stuck. My setup is: A developer user 'ade' who owns the directories and files that ...
-1
votes
1answer
67 views

Rgd: PHP-FPM Installation

Rgd: PHP-FPM Installation I used to install PHP-FPM by this ways.. rpm -Uvh http://rpms.famillecollet.com/enterprise/remi.repo yum --enablerepo=remi install php-fpm But now i try the same way, it ...
2
votes
1answer
2k views

How to get PHP_AUTH_USER and PHP_AUTH_PW available in nginx?

I have a Magento module that asks for $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] variables. In its documentation, the following setup for apache is proposed: SetEnvIfNoCase Authorization ...
1
vote
0answers
396 views

Nginx + php5-fpm + CodeIgniter Response Too Slow

I have installed nginx, php5-fpm and setup codeigniter with REST controller on Ubuntu 12.04 LTS. The configurations work but response is too slow at times, even with just a single user. Sometimes the ...
0
votes
1answer
49 views

PHP-FPM conf location option when compiling php

I'm compiling PHP from source. I would like to set the location that PHP-FPM looks for it's config file. Apparently this option should be set via the configure option: ...
1
vote
1answer
5k views

Nginx + PHP-FPM “error 104 Connection reset by peer” causes occasional duplicate posts

I'm running Drupal 6 with Nginx 1.5.1 and PHP-FPM (PHP 5.3.26) on a 1GB single core VPS with 3GB of swap space on SSD storage. I just switched from shared hosting to this unmanaged VPS because my site ...
0
votes
0answers
260 views

PHP-FPM performing worse than mod_php

Recently the website I maintain has been growing a lot and I saw the point coming where I'd want to switch from apache to nginx, because I kept on reading that it performs way better. Now I've done ...
1
vote
1answer
2k views

nginx and HTTP Referer

I'm using nginx together with php5-fpm and with the following fastcgi_params file: fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param CONTENT_TYPE $content_type; ...
0
votes
2answers
9k views

Recommendation for PHP-FPM pm.max_children, PHP-FPM pm.start_servers and others [closed]

I have the following server: Intel® Xeon® E3-1270 v2 Single Processor - Quad Core Dedicated Server CPU Speed: 4 x 3.5 Ghz w/ 8MB Smart Cache Motherboard: SuperMicro X9SCM-F Total Cores: 4 Cores + 8 ...
2
votes
2answers
2k views

PHP-FPM stops responding and dies

I'm running Drupal 6 with Nginx 1.5.1 and PHP-FPM (PHP 5.3.26) on a 1GB single core VPS with 3GB of swap space on SSD storage. I just switched from shared hosting to this unmanaged VPS because my site ...
1
vote
1answer
1k views

Identify Long Running or Slow PHP Scripts

I have web server that is getting around 25K visits a day up at yougetsignal.com. Sometimes the site feels a bit sluggish. I am hosting it on nginx with php5-fpm. Is there a way for me to see a list ...
0
votes
0answers
150 views

PHP-FPM is not working as expected

I am using Debian Squeeze and set up PHP-FPM with fastcgi. I have several virtual hosts defined on the same host. I defined chroot for each pool configuration but somehow it is possible to change ...
16
votes
7answers
71k views

Nginx 1 FastCGI sent in stderr: “Primary script unknown”

My first time using Nginx, but I am more than familiar with Apache and Linux. I am using an existing project and when ever I am trying to see the index.php I get a 404 File not found. Here is the ...
1
vote
1answer
2k views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
0
votes
1answer
661 views

php5-fpm pm ondemand and still memory problems

After switching pm from dynamic to ondemand I'm having less problems with memory usage on my 1GB VPS, but it seems that under some high load situations the server still gets stuck. It's an VMWare VPS ...
0
votes
1answer
252 views

nginx in place of apach2 php-fpm

I was working under LAMP stack on my laptop an decided to use nginx in place of apache2 (LEMP) Installed nginx, php5-fpm and fast-cgi without removing any thing from LAMP stack Stopped apache2 and ...
0
votes
0answers
163 views

Nginx - Wrong PHP_Values

I run NewRelic to track my applications, I set the Application name in my server blocks in nginx like fastcgi_param PHP_VALUE "newrelic.appname=Store"; it seems to get cached how how as when I go to ...
1
vote
1answer
2k views

How to set PHP include_path for php-fpm in nginx config?

I'm trying to migrate from Apache to nginx. In my Apache conf file I had php_value include_path "/home/my-app/topincs/php:/home/my-app/topincs/vendor/php" Now I got fastcgi_param PHP_VALUE ...
1
vote
1answer
546 views

Latency, Nginx & PHP-FPM

I have a high load dynamic PHP web service which I have recently moved from Apache2 to Nginx and PHP-FPM. I am finding that the average request latency has increased from 0.5s to 1s since the move. ...
1
vote
4answers
11k views

Which php5-fpm setting for high number of concurrent connections + nginx

Please help me tweak my config for php5-fpm and nginx. The problem is my php5-fpm log keeps reporting slow scripts and killing a child thread. Dedicated server, quad xeon, 32Gb Ram. 1 php ...
0
votes
1answer
121 views

After rewriting, nginx doesn't use php-fastcgi

I'm having trouble with an nginx rewrite. I want to rewrite ^(.*?)/(.*?)/?$ to controllers/$1.php?action=$2. This worked for me on an Apache server earlier. After that, I want to route that file to ...