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
3answers
3k views

How to automatically resume php-fpm?

I am using nginx+php-fpm on Debian Squeeze for a busy server and have had great difficulty to deal with maximum connections being reached. Here the problem is that php processes sometimes just die ...
1
vote
1answer
4k views

I want to install php 5.3.9 in ubuntu 12.04 via apt-get - what repository should I add?

I want to install php 5.3.9 in ubuntu 12.04 via apt-get. apt-cache show php5-fpm only lists 5.3.10-1ubuntu3.1 and 5.3.10-1ubuntu3. There is a critical bug in 5.3.10 ( https://bugs.php.net/bug....
1
vote
3answers
4k views

Need help trouble shooting high CPU usage by PHP-fpm

There is a problem that is driving me crazy. After the day I tried to fix the CPU usage problem of my VPS, the CPU load has grown from 60% to 150%, and I have no idea what causes the problem. Please ...
3
votes
2answers
11k views

Phpmyadmin location for nginx

I installed nginx and phpmyadmin. I set up a domain with these parameters to test phpmyadmin: server { listen 80; server_name example.com; root /usr/share/phpmyadmin; index index.php; fastcgi_index ...
1
vote
1answer
3k views

PHP-FPM issue on LEMP Stack and WordPress

I'm very much a NGINX and Server Admin beginner. I used this tutorial to install NGINX / PHP / mySQL / WordPress: C3M Digital Tutorial In this tutorial the backend php-cgi setup is configured ...
0
votes
1answer
720 views

(Serving PHP) Does Apache2 will create new thread on every connection?

Based on many online sources, in serving static files, Apache2 will create new thread on every different connection... results in resource hungry But how about serving PHP through Apache2 (mod_php, ...
0
votes
1answer
223 views

Can't seem to install the correct version of PHP, using apt-get install

I'm using Ubuntu 11.04 LTS server, it's a new install on a VPS box from MediaTemple (their ve server). I'm trying to install PHP 5.4.3 on this box, but I'm having a common problem not matter what ...
8
votes
2answers
18k views

Nginx and PHP-FPM running out of connections

I keep running into errors like these, [02-Jun-2012 01:52:04] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are ...
0
votes
1answer
2k views

PHP-FPM not working with nginx and CentOS

After failing to get FastCGI to work with PHP I have installed the PHP-FPM service which is reported to work out of the box, however PHP files are downloading instead of executing. This is what I ...
0
votes
2answers
1k views

nginx & php-fpm & clean urls

Hello i would like set up nginx like I want. I have read a lot of manuals (including official) but i can't make it work as I expect. I have next urls: /user/register, /user/login, /user/logout etc ......
1
vote
1answer
644 views

Nginx, PHP-FPM and Memcached

I have Wordpress installation running on two web servers powered by Nginx. I configured Memcached on both servers and I'm using W3 total cache plugin for Memcached: What's the recommended solution ...
1
vote
1answer
4k views

MySQL, php-fpm, APC, Varnish and Nginx optimization for WordPress/W3 Total Cache?

I'm setting up my first VPS and it seems to be working well. Installed Nginx, php-fpm (as a unix socket), APC, Varnish and MySQL on Ubuntu 12.04 server with OnApp, and everything works and is damm ...
0
votes
4answers
4k views

Can't disable error logging in php5-fpm

Is there any way to disable error logging in php5-fpm? I changed the /etc/php5/fpm/php.ini file with: log_errors = Off display_errors = Off and restarted php5-fpm. My nginx logfiles are still ...
0
votes
2answers
346 views

Set nginx to answer for all domains

I have this setup with apache but want to move over to nginx. I'm not sure how I can accomplish this. In apache I had it as ServerAlias * What would be the nginx equivalent? I've tried server_name ...
1
vote
0answers
504 views

Server crashing after Wordpress upgrade to latest version (nginx+php-fpm)

I upgraded Wordpress on my huge blog (around 300 000 visitors per day) from 2.8.4 to latest 3.3.2. Everything went well but my server started returning lot of Errors 502 although it worked perfectly ...
0
votes
1answer
206 views

High server load with ngix+php5-fpm

I successfully installed nging+php5-fpm. Everything works fine but on the same machine server load is higher than with Apache2+php. With Apache2+php I was running 2 websites and average server load ...
0
votes
1answer
151 views

Blank wordpress page for default server on nginx

I recently upgraded to php 5.3 tor the purpose of using php-fpm. All my sites are working except for the default one which is showimg a blank page. Defined in nginx.conf as follows. What is te ...
0
votes
3answers
206 views

PHP using lots of memory/time outside of script?

I'm working with a site that was built in Drupal and generally runs well. After some optimization it takes 20-75MB of memory and 0.5-2s for most requests. But once in a while it will take 15-20s and ...
1
vote
4answers
806 views

nginx rewrite rules for lithium php framework

I have been trying to get lithium running with Nginx with no success. The directory structure of lithium is like this lithium |-> app libraries .htaccess |-> webroot .htacess --other ...
1
vote
3answers
3k views

Nginx + PHP-FPM on Ubuntu giving “upstream sent invalid status” on uploading Joomla extension zip file

I have a Ubuntu server running in an ESV VM emvironment and I've installed a webserver with this configuration: Nginx 1.0.5 PHP 5.3.6 with PHP-FMP Mysql 5.1.62 I have an installation of latest ...
4
votes
3answers
2k views

PHP-FPM and APC for shared hosting?

We are looking into finding a way to get APC to only create one cache per account / site. This can be done with Fastcgi (last update 2006…) but with Fastcgid APC will have to create multiple caches ...
2
votes
3answers
796 views

MySQL Execution Time Spikes

I am having issues with MySQL all of the sudden today. Details: OS: CentOS release 5.7 Server type: Parallels virtuozzo container running on mediatemple DV 4.0 package Average total memory usage: &...
7
votes
1answer
18k views

How to configure php-fpm to log logs to log files configured in nginx virtualhosts

I have Fedora 16 with nginx and php-fpm. Everything is working very good. All logs with php notice,warnig error etc. are in /var/log/php-fpm/www-error.log. Is there a way to configure php-fpm to write ...
2
votes
1answer
490 views

Apache + mod_php 4x slower than Nginx + PHP-FPM

I've been benchmarking a Drupal 7 site and I've found apache is up to four times slower in terms of page execution than an Nginx set up I've created. As it's page execution time my understanding is ...
0
votes
2answers
1k views

nginx + php-fpm + apc … compression?

I have a VPS running nginx 1.1.19, php-fpm 5.3.10, and APC 3.1.9. The server is primarily running PHP scripts (vB, SMF, IPB) I'm also using Cloudflare as a CDN if that matters. From what I can tell, ...
4
votes
2answers
4k views

Disable FastCGI Read Timeout in Nginx?

Is there a way to disable the read timeout for FastCGI? (fastcgi_read_timeout) Setting it to zero does not work and just causes an immediate timeout. Nginx 1.0.5 PHP-FPM 5.3.6-13ubuntu3.6 The ...
1
vote
2answers
2k views

Varnish and Connection Flood (DoS - DDoS) [duplicate]

I've been playing around with the Varnish cache server and I got my webpage up lightning fast, it gets 97 Points in Google's Pagespeed and 100 @ Pingdom's. I used Varnish (proxies to nginx), NGINX (...
0
votes
1answer
223 views

Configuring nginx and PHP5-FPM

I have a VPS with 1 CPU Core, when I was searching around for some nice documentation on configuring nginx and php5-fpm I constantly came across stuff like "I have a dual core CPU so I will limit this ...
0
votes
1answer
2k views

nginx upstream: pass directly to PHP-FPM on another server

Background: 3 servers, 1 load balancer and 2 PHP app servers. Do I need to install nginx on the 2 app servers? Or can I pass directly from the load balancer to PHP-FPM running on the app servers?
0
votes
1answer
1k views

nginx rewrite with php-fpm

I have debian server with nginx + php-fpm on board. nginx version: nginx/1.0.15 PHP 5.3.10-1~dotdeb.1 with Suhosin-Patch (cli) (built: Feb 3 2012 00:21:57) Copyright (c) 1997-2012 The PHP Group ...
1
vote
2answers
122 views

php security on a system with only known php software (or: need alternative non-PHP CMS)

I have a deep antipathy for PHP due to its security record and the way the project handles security in general. Unfortunately I have to deploy a CMS and I need a modern theme for it. So far I have ...
3
votes
1answer
9k views

Resource temporarily unavailable while connecting to upstream (php5-fpm)

I frequently get this error on random pages when the are like ~+10K connections (netstat -an |grep 80 |wc -l). This happens while there is still +10GB of free memory and server load is less than 3. ...
0
votes
1answer
863 views

Nginx redirecting to (seemingly) random domain

My brain is breaking over this. Every site I have is redirecting back to one of my other ones... I would say it was the /default site, but it wasn't until I just made it the default site, which ...
1
vote
2answers
2k views

php-fpm: very high server load

Since today my webserver (nginx + php-fpm + mysql on a VPS) is very slow. htop says: 1 [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%] Tasks: 63 total, 13 running 2 [...
8
votes
3answers
10k views

Php5-fpm Crash if much visitors

I decided to change my OP to Nginx from Litespeed because i read much about the low resource that Nginx would cost. Im running a Wordpress site with 500 users online Okay thanks Guys for that much ...
3
votes
1answer
2k views

How to free PHP-FPM memory?

There are several discussions complaining high memory usage of PHP-FPM, without any practical approach to overcome. As I explored the problem with numerous tests, the problem is related to the age of ...
2
votes
3answers
5k views

Magento, NGINX, PHP-FPM, APC, MEMCACHED, 16gb Ram CentOS, Spiking PHP-FPM to 100% CPU

I have been trying to resolve my issue of spiking cpu caused by php-fpm processes. I've reduced the php-fpm config settings to: pm = ondemand pm.max_children = 12 pm.start_servers = 2 pm....
0
votes
1answer
140 views

php FastCGI process killing server

I have this little problem on my server. Few times a week my server goes down for few minutes (2-3). All i could see was that every time one of the php-fpm processes is on 100% in top. As well as that ...
1
vote
1answer
2k views

Nginx returning “404 Not Found” when invoking the upload module

I've set up Nginx and the upload module following Martin Fjordvald's guide, but whenever I submit a file to it, I receive Nginx's generic "404 Not Found" page. The file is not uploaded. Here's my ...
-1
votes
1answer
781 views

why is my centos, nginx, php,mysql server using so much memory

i'm not sure where the problem lies. I have: centos 6 mysql php php-fpm wordpress (1 site). this is a dedicated server i'm learning on. as soon as i ran the web url the memory slammed to 125% of a ...
2
votes
0answers
249 views

PHP-FPM process timeouts but NGINX does not close the session with Client

I am using Magento with NGINX+PHP-FPM We are facing a problem that some of our AJAX call is timing out in the PHP-FPM. The Process in PHP-FPM gets killed but NGINX does not close the session with ...
0
votes
1answer
1k views

nginx php-fpm empty site

I am writing this as I was stuck trying to fix it whole night. We have recently migrated to a new server. Before migration we have been running our site on nginx + cgi (script). After migration we ...
0
votes
1answer
306 views

Can php5-fpm be configured for separate php executables?

Can php5-fpm be configured to use php executables? I want to compile php separately for some websites on the same server where as some of them use the same executable. Can php5-fpm be configured that ...
1
vote
1answer
648 views

Restrict PHP-FPM to serve only files under a certain directory

I’m having trouble with PHP-FPM and Apache 2.4.1 mod_proxy_fcgi. As mod_proxy_fcgi cannot handle Unix Sockets, PHP-FPM has to listen on localhost. Thus, anyone who has access to the server could send ...
2
votes
4answers
4k views

How to avoid index.php in Zend Framework route using Nginx rewrite

I am trying to get rid of index.php from the default Zend Framework route. I think it should be corrected at the server level and not on the application. (Correct me if I am wrong, but I think doing ...
0
votes
1answer
260 views

Error installing xcache '[processor.lo] Error 1'

I am trying to get xcache 1.3.2 installed on my centos 5.8final (64bit) machine. It's running nginx 1.1.13 and php 5.4.0. This is the output of ./configure --enable-xcache --with-php-config=/opt/php/...
4
votes
4answers
22k views

Nginx/FPM/PHP all php files say 'File not found.'

i just installed nginx 1.1.13 and php 5.4.0 on a centos 5.8 final 64bit machine. Nginx and PHP/Fpm are running, and I can run php scripts via ssh command line, but in the browser I keep getting 'File ...
7
votes
2answers
3k views

Apache + PHP-FPM = random “Error parsing script headers” + Seg Faults

I have PHP-FPM setup with Apache 2.4 using proxy_fcgi, all works fine, but every one in 4-6 requests, Apache returns a blank page. This happens on my main site http://danielhe.com/, but not subdomain ...
1
vote
1answer
552 views

nginx serving .php as static files

ok, again apparently a totally ridiculous problem which I just can't seem to figure out. nginx keeps serving my .php files as static files. I've installed nginx via the repositories on ubuntu. I've ...
0
votes
1answer
127 views

Page generation time tuning using NGINX

Most of the blogs I have encountered suggest to use Nginx with PHP-FPM. I have seen benchmarking results, and they all seem to be impressive, when compared to Apache with mod_php enabled. But fact ...