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
2k views

Centos is using all memory for cache and not giving it up

total used free shared buffers cached Mem: 1024 1020 3 0 0 859 -/+ buffers/cache: 160 863 With 863 "free" for ...
9
votes
2answers
7k views

pecl install mongo - keeps compiling with wrong module API

Working with Ubuntu 12.04 here, nginx and php5-fpm I had mongo working well on php 5.3, then I added the ondrej/php5 ppa and updated to php5.4. It kept GD and CURL extensions, but not mongo. I re-...
1
vote
3answers
1k views

Caching: Varnish vs fastcgi_cache on Nginx in a multiple websites envirnment

I have a setup of a VPS with several websites. Some of the websites are WP websites and some of them are other dynamic websites. I'm interested in adding a sort of reverse proxy/caching layer. ...
3
votes
1answer
629 views

php-fpm keeps locking up

For some reason, php-fpm keeps locking up and/or hanging. It works for a little while, and then it will randomly just 'hang' for a long time upon trying to load a webpage. There's absolutely nothing ...
1
vote
2answers
13k views

I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed

I got a lot of these: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] [...
11
votes
5answers
30k views

Nginx + php5-fpm = “File not found”

I've hit a wall whilst setting up a site using nginx / fpm. The page displays "File not found", and this appears in the nginx error.log: FastCGI sent in stderr: "Primary script unknown" while reading ...
1
vote
1answer
621 views

PHP-FPM timezone in the log files

The PHP-FPM logs have different timezone. The time in the PHP-FPM logs is one hour behind the system time. Is there any option to configure time/zone in the PHP-FPM? System: CentOS # date Mon Jul 9 ...
3
votes
1answer
6k views

Setting php values in php-fpm confs instead of php.ini

I'd like to set values in php-fpm conf files what are normally set in php.ini. I'm using nginx. I've created the following setting, but I'm not sure if this would work. php_value[memory_limit] = 96M ...
0
votes
1answer
642 views

nginx php-fpm uploaded files have nginx ownership after executing move uploaded file

I have a problem with php 5.3.6 using PHP-FPM and file uploads. My Nginx runs as user nginx PHP-FPM uses pools configured for each vhost. For example a user: test group : test runs one pool. When ...
0
votes
1answer
158 views

Python urllib2 and php port conflict

I have python script that is called by PHP via exec. It uses urllib2 and beautifulsoup. The php-fpm runs on port 8000, i have different ports for different pool and I assume they are ok when php-fpm ...
1
vote
4answers
2k views

webserver horrible slow, sometimes incredible fast

i am running a small community ( 6000+ Members ) on a non-virtual 64-bit ubuntu 11.04 system. I am not a Linux-pro, not even advanced, i just tried to setup a webserver, which does nothing special ...
3
votes
1answer
4k views

nginx & php-fpm and custom header

I would like to pass some custom header (ACCESS_TOKEN) from client RESTful application (JS) to application server (php-fpm). I had read that nginx should pass all http headers to php, but somehow it ...
3
votes
1answer
1k views

WordPress not resizing images with Nginx + php-fpm and other issues

Recently i setup a Ubuntu 12.04 VPS with 512mb/1ghz CPU, Nginx + php-fpm + Varnish + APC + Percona's MySQL server + CloudFlare Pro for our Ubuntu LoCo Team's WordPress blog. The blog get about 3~4k ...
3
votes
2answers
8k views

What does apc.mmap_file_mask really do?

I want to use APC in a shared environment, but the main problem is of course, opcode sharing. To overcome this, I've thought about using different apc.mmap_file_mask for each user (they're chrooted ...
0
votes
1answer
550 views

Deploying concrete5 on nginx

I have a concrete5 site that works 'out of the box' in apache server. However I am having a lot of trouble running it in nginx. The following is the nginx configuration i am using: server { root ...
2
votes
1answer
606 views

Nginx/php-fpm processes falls in Uninterruptible sleep

I got nagios critical warning about a server, and when i checked ps -aux i found that all of nginx (php-fpm) are in Uninterruptible sleep www-data 1330 0.4 0.3 299992 108560 ? D 16:06 ...
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
12k 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
724 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
226 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
649 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
347 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
152 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
208 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
808 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
802 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: &...
8
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
493 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
5k 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
10k 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
876 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 [...