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
2answers
345 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
200 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
149 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
204 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
800 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
789 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
17k 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 ...
1
vote
1answer
489 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
222 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
843 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 ...
0
votes
1answer
139 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
775 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
248 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
293 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
644 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 ...
4
votes
4answers
21k 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 ...
6
votes
2answers
2k 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
551 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 ...
1
vote
1answer
3k views

NGINX + PHP FPM connect() failed (110: Connection timed out) while connecting to upstream

We're running a fairly large site using nginx and PHP-FPM and we're getting a lot of errors as the site load is quite high. We're getting "connect() failed (110: Connection timed out) while connecting ...
2
votes
1answer
175 views

who should own the web root of my server?

I read a book about security in web servers and I found this: If your web server has the ability to write to the files in your WordPress directories, then the automatic upgrade functionality ...
1
vote
1answer
3k views

Using NGINX + PHP-FPM + MySQL and persistent connection

Can I use persistent connection when using combination of NGINX + PHP-FPM?
2
votes
1answer
1k views

APC strange long responses

I have slow response issue on my debian 6 + nginx + apc 3.1.9 + php-fpm 5.3.10 server. My website is based on symfony 1.4. My setup is VPS with 512MB ram which is almost everytime used up to 250MB. ...
0
votes
1answer
378 views

APC + PHP-FPM Memory fragmented even with apc.user_ttl = 0

I'm running 5.3.9-1~dotdeb.3, with APC 3.1.9. APC cache gets totally fragmented after a 2hours of running. Isn't the apc.user_ttl = 0 supposed to keep the files cached until APC is restarted - and ...
1
vote
1answer
1k views

Safest way to run bash script using PHP-FPM

I currently running a websever with Nginx+PHP-Fpm and each sites on its own username/GID. Then I have a bash script that I use to create new user along with other necessary stuffs. I know I can call a ...
0
votes
1answer
511 views

php-fpm lot of childs zombies exiting after huge amount of seconds + 502 errors

I'm facing the following problem on my nginx/php-fpm server : I get random 502 (bad gateway) errors on AJAX calls (autocompletion actually). Everything else is working fine, except autocompletion. On ...
4
votes
2answers
1k views

Denying folder in Nginx causing PHP-FPM to not take precedence

The title says it all, but I have a very interesting problem that I am quite confused on. Basically, I have a simple WordPress installation, and I wish to deny a folder (along with all files in the ...
1
vote
0answers
310 views

Why are my PHP5-FPM pools disappearing mysteriously every couple of months? (Ubuntu 11.10, PHP 5.3.6)

I have a system where each user (about 20) gets their own instance of nginx and their own small pool of PHP5-FPM processes. A front-end nginx instance proxies requests to the appropriate nginx ...
1
vote
5answers
2k views

Keeping Files Synced Across Two Servers

I have setup a web server running nginx and another server running php-fpm on Linode VMs. Nginx proxies all PHP requests off to the PHP backend and this works great. The problem, is that the actual ...
1
vote
2answers
2k views

nginx+php-fpm help optimize configs

I have 3 servers. First server (CPU - model name: 06/17, 2.66GHz, 4 cores, 8GB RAM) have nginx as load balancer with next config upstream lb_mydomain { server mydomain.ru:81 weight=2; ...
-3
votes
1answer
209 views

How do you setup PHP to run as user as CGI?

Been trying lots of examples but nothing seems to be working. I don't wanna use yum/apt-get I want to do everything from source so I get a better understanding. Yum/apt-get just cheats the system and ...
1
vote
1answer
221 views

Tips setting up nginx as proxy for php and node frameworks

We have a current, soon-to-be legacy PHP app installed in production, served with apache. Working fine. Currently trying to add in new Node.js alpha stack, which we're planning to install alongside ...