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

Can't get php-fpm with Nginx to work

Server: CentOs x86_64 /etc/php-fpm.d/webuser1.conf [webuser1] listen = 127.0.0.1:9001 listen.allowed_clients = 127.0.0.1 user = webuser1 group = webuser1 pm = dynamic pm.max_children = 15 ...
0
votes
0answers
12 views

php-fpm stuck at state: Finishing

The site use nginx+php-fpm. Today, accessing some pages returns 502 state in a few seconds (different from 502 caused by php script timeout), while other pages stay in service. Status page of php-fpm ...
0
votes
1answer
22 views

nginx / fpm and PHP_VALUE not working

I am trying to alter some php.ini values for a single site of my web server: fastcgi_param PHP_VALUE "auto_prepend_file=/var/www/profile/external/header.php \n ...
0
votes
0answers
8 views

ISPConfig 1 User/Group All Sites

Question below got closed in Stackoverflow, more appropriate here. I'm running ISPConfig 3, Nginx, PHP5-FPM, and Ubuntu 12.10. The purpose of the VPS is to serve multiple websites for our clients. I ...
0
votes
0answers
15 views

Correct rewrite rules from Apache to Nginx? [closed]

I'm having quite a difficult time translating some .htaccess rules to Nginx. My .htaccess codes are: RewriteEngine on Options -Indexes RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ ...
1
vote
2answers
49 views

Ram issues with NGINX, PHP-FPM+APC and Varnish

I'm running a 512MB and i have lot of ram issues. I think is due to my configuration. root@s1:~# free -m total used free shared buffers cached Mem: 1024 ...
0
votes
1answer
24 views

Making Nginx send 4xx/5xx errors from PHP-FPM

I have Nginx setup to reverse proxy all files ending in .php. In some scripts, I check for parameters and send "406 Not Acceptable" as a generic error which needs to be picked up on jQuery/from Ajax. ...
3
votes
2answers
53 views
+100

nginx try_files processed twice and fails if error fallback set

I have a location block setup to catch all file requests and send them to PHP-FPM: location / { try_files $uri /routing.php?$args; fastcgi_pass ...
0
votes
1answer
25 views

PHP-FPM Loading Wrong Configuration File

Value of CLI running php --ini Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: /usr/local/lib/php.ini Value of phpinfo from my nginx/php-fpm web server page: ...
0
votes
1answer
24 views

apache+php-fpm and security in shared enviroment compared to apache+suexec+mod_fastcgi

I've been using Apache with suexec and mod_fastcgi. It starts up PHP handlers as the selected system user and listens to request via PIPES (fastcgi protocol). It works well but can't share opcode via ...
0
votes
1answer
42 views

How do I set a PHP-FPM variable inside a nginx location block?

For some reason our website has one .jsphp file that needs to be handed to the PHP-FPM. However, access will be denied because by default PHP-FPM only allows an extension of .php. This can be solved ...
1
vote
2answers
68 views

PHP-FPM is not displayed in phpinfo()

I have installed php-fpm on Centos + Apache using this manual - http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2 but PHP-FPM is not displayed in phpinfo(). And I cannot figure ...
-1
votes
2answers
53 views

nginx + php-fpm: selinux causing “File not found”/“Primary script unknown” [closed]

I was solving this "Primary script unknown trouble" for like 6 hours. Checked permissions like thousand times, checked nginx configuration and messed with it like ten thousand times. Finally I have ...
0
votes
1answer
85 views

php-fpm workers eating lots of memory even on zero traffic

http://i.stack.imgur.com/EgbDt.pngu php-fpm workers are taking large amount of memory even if there has been zero traffic on the server for some time. What is this memory? Is it leaked memory ...
0
votes
1answer
73 views

Apache + PHP-FPM + chroot results “File not found.” error

I want to set chroot to the DocumentRoot using PHP-FPM pools' chroot attribute. With the settings below, whatever I do I get only a "File not found." error: /etc/php5/fpm/pool.d/example.conf ...
1
vote
2answers
50 views

Memory adjustments for magento with php5-fpm , Nginx, APC, Mysql

I am using magento with php5-fpm , Nginx, APC, and Varnish. When there is varnish hit, the load time is very good. But on varnish miss, the site takes toomuch time to load. I have seen through htop ...
0
votes
0answers
30 views

nginx + php-fpm creates additional blank php session on each load

When using 'try_files' or 'rewrite' (like below) to redirect all paths to the base index.php file, it always creates a new (and blank) php session in the background whenever using session_start();. ...
0
votes
1answer
43 views

Nginx doesn't follow symlink properly

I'm trying to automate my deployment process and I'm having this strange issue. Every new version of my web app is placed in /var/www/releases/{timestamp}. After I execute git clone into that ...
0
votes
0answers
32 views

LAMP: too many connections from localhost

I'm running a ISPConfig LAMP server with Apache2 and php5-fpm. I keep wondering, why do I get to see up to 300 connection from 127.0.0.1? I just don't get it. I find out those connections by ...
0
votes
2answers
104 views

apc “open() /www/cache/xxx failed. no such file or directory” error

I think it's because APC because I use only APC system for cache. Here is the full log: 2013/04/23 19:15:05 [error] 539#0: *1305213 open() "/var/www/cache/e4ce8db565491cdcf27ab61a441xxxx" failed (2: ...
0
votes
0answers
27 views

ERROR: Bad or malformed request. Unknown UID command

The weirdest of errors (on a webmail server system I admin) that appeared without me changing a thing on this system (I don't even do automatic updates or anything like that); I run Squirrelmail via ...
0
votes
1answer
83 views

PHP FPM gives permission denied?

I read several entries on why PHP-FPM might give me permission denied but I can not solve it. The error logs read like: 2013/04/20 23:33:28 [crit] 15479#0: *6 open() "/var/lib/nginx/tmp/fastcgi ...
0
votes
2answers
49 views

Apache being used by php-fpm while running Nginx?

I wonder if anyone could help me with why this RAM is being used. I run a low end box, 512mb RAM with Centos 6.3, Nginx, PHP and MySQL but Apache is showing up when I run a ps aux and it is using a ...
0
votes
0answers
16 views

Exclude a php file from php5-fpm slow logging?

I use nginx/php5-fpm on my VPS. I also enabled slow script logging in php5 configuration. I analyze slow logs in periods. However, I have that script which "inteded to be slow". And I want to ...
0
votes
1answer
35 views

Debugging strategy for PHP-FPM

So I'm just setting up nginx and php5-fpm on my VPS, having moved over from Apache. I'm running Debian Squeeze, with the latest PHP from the dotdeb.org repo (that means PHP 5.4.13-1~dotdeb.1). I am ...
0
votes
0answers
48 views

High CPU load from php-fpm on a wordpress website

I'm currently facing an unexpectedly high CPU load on a linode-hosted web server. It's running a wordpress-based website with very moderate load (about 2Mbit/s user traffic), though the list of ...
0
votes
2answers
58 views

Nginx, PHP-FPM and multiple domains

I'm new to nginx and php-fpm. My question: Do I need to create two php-fpm config files or just one? Can both nginx config (different domain/app) point to the same php socket? If so will it cause ...
0
votes
1answer
28 views

Is it possible to display a custom error page for 110: Connection timed out?

We are seeing the following error in our nginx logs. The error is well documented but we have not yet figured out what is causing it. In the meantime, is it possible to display a custom error page ...
0
votes
4answers
65 views

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...
0
votes
1answer
42 views

nginx + php-fpm: how to specify memory limit for an application

With apache+php_mod it was as easy as putting: php_value memory_limit 128M into application vhost. How can I do something like this for nginx+php-fpm?
0
votes
0answers
40 views

One or separate pools for nginx+phpFPM

Need advise regarding pools config for server running nginx+phpFPM. This is a dedicated low cost server - Intel Atom D425 with 2 Gb ram. I plan to move 30 WordPress websites there, so need to ...
0
votes
1answer
41 views

magento php-fpm too many process

in the last 2 days, suddenly the server is very slow. we are running magento, and we have seen 40-50 php-fpm process being run, each taking a few % of cpu, making performance very slow. we have 2 ...
0
votes
1answer
30 views

Security implications of running Apache with php5-fpm as user:user

I just set up VPS to run Apache with php5-fpm which is set to run every user pool as user:user. Reason for this is simply to allow users to actually own their own files created by various CMS ...
0
votes
0answers
28 views

PHP FPM with low resources and Drupal

We're hosting 10 websites with (most of them using Drupal 6 or Drupal 7) using nginx + php-fpm. Our VPS is low end (only 1GB of RAM with 64 bit OS and limited CPU). The amount of visitors is moderate ...
0
votes
3answers
53 views

Nginx or php-fpm error?

I found my vps nginx error log like this 2013/04/06 03:28:04 [alert] 8557#0: mmap(MAP_ANON|MAP_SHARED, 5242880000) failed (12: Cannot allocate memory) 2013/04/06 04:05:30 [alert] 10299#0: ...
0
votes
1answer
29 views

php-fpm SERVER_NAME sub-domains using NGINX

In my PHP app: die($_SERVER['SERVER_NAME']); The request: sub1.example.com The result: example.com My NGINX config: server { server_name .example.com; access_log ...
0
votes
0answers
38 views

UBUNTU/NGINX/PHP downloading a PHP file not executing

I'm having problems with my PHP in Nginx. I have installed PHP5 and PHP5-fpm using apt-get but instead of executing PHP files, they are downloaded in my browser. I have edited ...
-1
votes
1answer
44 views

NGINX empty session [closed]

Video with the error http://youtu.be/FDXXKo5LPy8 I installed the new 1.2.8 Nginx server with the same configurations from 1.2.1 and now I'm getting bugs to get sessions (flash sessions). By default, ...
0
votes
0answers
39 views

How to troubleshoot this server with nginx?

Since last week one of my server is going down every few hours. By going down I mean going to the webpage gives me this error: Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the ...
1
vote
1answer
114 views

php-fpm or nginx capping out?

I'm using blitz.io to basically blast my site with traffic to see how my 'learning sysadmin' holds up under load. I realize this is as effective or relevant to real-world as a sledgehammer, but I ...
0
votes
2answers
69 views

403 forbidden on nginx

I'm trying to create a localhost server with nginx. I'm getting a 403 Forbidden on my page. Here's my nginx error log: 2013/03/30 20:39:18 [error] 12161#0: *1 directory index of ...
0
votes
2answers
54 views

How can I set memory limit and execution timeout for a specific IP address using php-fpm and nginx?

I need to set a different timeout and execution time for a third party server that needs to import the products and prices on my database. Right now, they are telling me the php script is timing out. ...
0
votes
1answer
54 views

Prevent Nginx to serve php files unless php-fpm is also working

Recently I discovered my server is outputting php code out. The cause is that nginx is working but the php-fpm is not. As you can imagine this can be a serious security threat. So is there a way to ...
0
votes
1answer
78 views

nginx, php-fpm on diff server bad gateway (and security too)

This is somewhat of a multipart question. First and foremost, I have 502 bad gateway, but I'm sure that's just because one of these lines I have below is wrong. Second, I would love to know how I ...
0
votes
0answers
35 views

mkdir() permission denied under php-fpm on one site but not on the other

So I created both pools for each domain with the following configs: [domain.com] listen = 127.0.0.1:9001 listen.allowed_clients = 127.0.0.1 user = user1 group = group1 pm = dynamic pm.max_children = ...
0
votes
1answer
57 views

nginx + php-fpm “connect() failed” errors in logs, no visible impact

I'm trying to figure out why I have so many of these error logs: [error] 1545#0: *713626 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server: ...
3
votes
1answer
137 views

Apache 2.4 with PHP-FPM .htaccess redirection

I have Apache 2.4 set up with PHP-FPM on a server. To pass from Apache to PHP-FPM I use the following: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/hosting_files/site.com/admin_secure/$1 ...
0
votes
1answer
96 views

PHP-FPM Pool, Child Processes and Memory Consumption

In my PHP-FPM configuration I have 3 Pools, the eg: Config is: ;;;;;;;;;;;;;;;;;;;;;;; ; Pool 1 ; ;;;;;;;;;;;;;;;;;;;;;;; [www1] user = www group = www listen = /tmp/php-fpm1.sock; ...
0
votes
1answer
33 views

PHP-FPM as a dedicated application server?

Just wondering in terms of scalability .. do you reckon PHP-FPM should run on a standalone server or works as well if you run it with NginX on the same server?
0
votes
2answers
73 views

Accidently set chown “root” to all my server

I'm running 2 magento apps on my web server and I accidently set "chown -R www-data:www-data *" from the root of the server. Meaning, all the files were owned by the user root. This immediately ...

1 2 3 4 5 10