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

Location directive not working when using php-fpm (via mod_fastcgi)

I've configured a virtualhost which should be completely restricted with a SSL client certificate, except one location (/Public). My configuration in my virtualhost: <Location ~ ^/(?!Public)> ...
0
votes
1answer
106 views

Correct nginx virtual host for wordpress that's installed on non-root directory?

Let's say my main domain is example.com. I install SSL on the domain and I can successfully access domain. My preferred version is using www, so all requests will be redirected to ...
0
votes
0answers
36 views

Per-pool php.ini with PHP-FPM without php_value workaround

I'd like to use separate php.ini files for each PHP-FPM pool. I've checked similar questions and they all say to use php_value, but that's a really dirty workaround and would require to manually (or ...
0
votes
0answers
205 views

Wordpress and PHP-FPM slow

I cannot find answer elsewhere. I have plain vanilla Wordpress installation. No posts. Database completely empty. Server 1 is nginx + php-fpm Server 2 is mysql nginx & php-fpm set-up according ...
1
vote
1answer
217 views

Nginx and different versions of PHP FPM + PHP

Due to a better understanding of what I wish to achieve thanks to Mark and his previous answer, I am posting a (hopefully) clearer and slightly different variation of my previous question as that ...
0
votes
0answers
76 views

Unable to open redis 6379 for inbound on AWS EC2

I have two servers on EC2. One hosting my php application and other hosting my redis server. I am managing my php session and data on redis server. So on my php server I gave the ip:port as session ...
2
votes
1answer
151 views

Limit the total memory usage of PHP-FPM

I'm running PHP-FPM on my Debian servers. My question is about the memory usage. I can only set the memory_limit inside PHP, and that shouldn't be too low for some requests. I also can only set the ...
0
votes
1answer
132 views

SELINUX blocking php-fpm and nginx working together?

I'm having some issues with SELINUX. When trying to visit my website I get 403 forbidden from nginx and the server pops up with an error and says to use grep NGINX /var/log/audit/audit.log | ...
0
votes
1answer
16 views

Strange issue with Nginx compiled from source and Nginx from official Fedora repository

TL;DR Nginx, compiled from source, had trouble process .php files, while with the same PHP-FPM configuration, nginx , from official Fedora repository, worked like a charm on DigitalOcean 512MB Fedora ...
0
votes
1answer
54 views

Nginx Configuration

I am trying to setup nginx web server for my web application. Below are the URL's I want www.example.com -----> /var/www/html www.example.com/backend/ -----> /var/www/app/backend/www ...
-1
votes
1answer
320 views

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of ...
0
votes
1answer
105 views

403 Forbidden error with fcgid and PHP

I'm trying to configure php and mod_spdy on Apache 2.4, Debian jessie, x64. I've followed this guide and configured Apache following this other guide and installed these packages: ...
0
votes
1answer
45 views

Nginx hosting with path appended to index.php

I'm hosting an instance on Concrete5, and in addition to using a dynamic paths, they also use URLs in the weird form of www.mysite.com/index.php/path/to/page. I have it mostly working, but I'm ...
0
votes
0answers
41 views

Wordpress low-level mkdir() call failing, despite correct file permissions

When trying to install a theme in Wordpress, I get this error: The file ownership and permissions are correct: # ls -l /var/www/ total 4 drwxrwxrwx. 6 nginx nginx 4096 Feb 24 09:35 wordpress ...
-1
votes
1answer
78 views

Wordpress is unable to write files, despite correct file permissions [closed]

I am unable to automatically install plugins or themes on my new wordpress setup. It gives me this screen: I believe this is usually due to a write permission error on the wordpress directory. ...
0
votes
0answers
8 views

nginx getting php plain unparsed if change to root to subfolder [duplicate]

with this config all files within the /usr/share are accessible and i just want to serve the phpmyadmin folder and not everything. if i set the root to /usr/share/phpmyadmin and set before the ...
1
vote
1answer
109 views

nginx, fpm - Bad Gateway error on php

i'm stuck here with a Bad Gateway issues and PHP I use Nginx 1.6 in combination with FPM on Debian Wheezy. Its a clean and new installation. But everytime if i run a php file it will result in a Bad ...
0
votes
1answer
46 views

Does php-frm make PHP run faster?

As I understand it, php-fpm makes PHP pages respond faster by managing a farm of pre-loaded PHP interpreter processes so the end user doesn't experience the overhead of initialising the PHP subsystem, ...
0
votes
1answer
71 views

Using fastcgi_split_path_info for a userdir in nginx

I'm trying to execute a PHP file on my server at the url /~nik/t.php (actual file is at /home/nik/public_html/t.php). Here's what my PHP settings look like: location ~ ^/~(.+?)(/.*)\.php$ { alias ...
0
votes
1answer
84 views

Wordpress category links are not working on an Nginx server

I just configured a new server to move my website. After I migrated, everything works fine except for category links. If we visit a category, it will give a 404 error. Page permalinks are working ...
1
vote
1answer
120 views

PHP-FPM max_requests parameter causes 502

On a setup using nginx with PHP-FPM v5.3.3, I noticed the following errors occurring frequently in the nginx' errors log: Feb 16 15:00:22 mymachine www.example.com 2015/02/16 15:00:20 [error] ...
0
votes
1answer
90 views

NGINX, PHP5-FPM, Varnish. WP-Admin becomes unresponsive after a while

wp-admin becomes unresponsive after like 10 hours of not being logged in. In order to get it working i need to restart php5-fpm. I'm using NGINX with PHP5-FPM and Varnish. This is my settings: ...
0
votes
1answer
75 views

Calculate worker connections based on CPU/RAM Utilization

I am new to nginx. My machine is centos 6 with 4 CPU and 8 GB of ram. As per recommendation my worker_process = 4. I have set worker_connections to 500 for 2000 max clients but load average goes upto ...
0
votes
1answer
61 views

How to generate a php.ini file out of current environment?

For some of my running PHP web applications (running under PHP-FPM) I need to setup cronjobs. Currently all those cronjobs are using the CLI default php.ini. Is there any easy way (e.g. script) ...
0
votes
0answers
57 views

VirtualDocumentRoot and ProxyPassMatch

I have the following Apache configuration: ServerName localhost UseCanonicalName Off LogLevel debug <VirtualHost *:8080> ServerName _default_ VirtualDocumentRoot ...
0
votes
1answer
115 views

How to configure Apache to use mod_fastcgi and php-fpm?

Now I am running Apache to serve php files using mod_php. Will I get a performance enhancement while running PHP in fastcgi mode? There are two virtualhosts on this server for now. I followed this ...
0
votes
2answers
124 views

OPcache breaks phpBB registration

I don't know what happended, but whenever a user tries to register himself on one of my phpBB forums nginx throws 502 Bad gateway, but if I disable OPcache everything works fine. This is the error ...
0
votes
1answer
58 views

Bitnami apache + php-fpm stack can't disable buffer

I'm trying to get my service running that requires it output without a buffer. Is it possible to use php-fpm without a buffer with apache? <IfDefine USE_PHP_FPM> <Proxy ...
2
votes
1answer
240 views

NGINX Internal Load Balancing + PHP-FPM Upstream causing random double request / submission

We are having a very serious problem where during seemingly random times, we get a duplicated request that is processed by our application. Typically, a user submits a form and occasionally will save ...
0
votes
1answer
79 views

How to get php-fpm details in the process list

In my process list with "top" command, I am getting a lot of php-fpm processes. Is there a possibility to get more info on that porcesses like: Who initiated the process (IP) Which class is called ...
2
votes
0answers
1k views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
1
vote
1answer
65 views

php5-fpm invoked oom-killer

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
0
votes
1answer
401 views

nginx proxy pass / rewrite with multiple locations to passenger app and php-fpm

On a server for a small team of people (up to 30) I installed several services which have to be accessible from the browser. I want to use nginx because I consider it being more lightweight. All ...
0
votes
1answer
560 views

How to configure php-fpm for php 5.6 and apache 2.2

I installed php 5.6, apache 2.2 and php-fpm on my centos 6.6 by using repo from https://webtatic.com/packages/php56/ I follow this instruction abd try to make php-fpm work ...
0
votes
0answers
143 views

And another FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream,

having some issues with 'file not found' or FastCGI sent in stderr. From what I have searched and researched about the issue it's due to the fastcgi_param SCRIPT_FILENAME not being able to locate the ...
-5
votes
1answer
39 views

Deleted php5 www.conf help please [closed]

I accidentally deleted the php5 www.conf file located at: /etc/php5/fpm/pool.d/www.conf is there any way to get a copy of the original file back? I believe there is an answer to my question ...
0
votes
0answers
70 views

PHP FPM, chroot can't connect to AWS RDS

I've been experimenting with chroot'ing php-fpm pools via the built-in chroot method in php's pool config. This is for the purpose of hosting multiple wordpress websites on the same AWS EC2 instance. ...
-1
votes
1answer
244 views

php-fpm using 100% CPU and nginx gives 404

I am playing around with Magento CE on Nginx and its working fine. Problem starts when I do a 500 user load test. The php-fpm process hogs up all the CPUs to 100% and I start getting 404 as the ...
2
votes
1answer
53 views

php-fpm: What is the bottleneck for accepting connections faster?

On a php5-fpm status page, what is the bottleneck that is preventing my server from accept()'ing new sockets fast enough? pool: www process manager: static start time: ...
1
vote
1answer
118 views

PHP-FPM TCP connections not terminating in time

I'm serving Wordpress pages via nginx/PHP5-FPM using APC caching (through the W3 Total Cache plugin). Nginx communicates with PHP-FPM via TCP sockets on port 9000. I've adjusted the number of max ...
0
votes
1answer
64 views

Nginx Cache with PHP-FPM

I have the folowing niginx config file: server { listen 80; server_name pajilleros.com www.pajilleros.com; access_log off; location / { root ...
1
vote
1answer
45 views

php-fpm log filling with configuration test successful

I have nginx and php-fpm running and I just noticed my /var/log/php5-fpm.log is filling with this message once a second or so: NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful ...
0
votes
1answer
111 views

nginx php-fpm not fully working

I'm using nginx-1.6.2_1,2 with php5-5.4.36 on: # uname -a FreeBSD X.X.X 9.2-RELEASE-p5 FreeBSD 9.2-RELEASE-p5 #0 r265974: Wed May 14 07:57:04 PDT 2014 root@X.X.X:/usr/obj/usr/src/sys/R610 amd64 ...
0
votes
0answers
87 views

How to enable apache userdir when using nginx as reverse proxy

I have a setup using apache 2.4, php-fpm, and nginx. I need to enable the apache userdir module so http://ip-of-server/~user would be equivalent to the http://example.com normal site. I can't get it ...
0
votes
0answers
146 views

OpendBSD HTTP php execution

I just installed openbsd 56 and want to configure the default Reyk Floeter's httpd server. Here are the simple steps I followed: I installed php-fpm via pkg_add I authorized httpd in /etc/rc.conf I ...
0
votes
1answer
58 views

Nginx Load Balancer having two load balanced nginx+php-fpm (Primary script unknown) error

We have two web servers with nginx+php-fpm ( 10.0.0.10 and 10.0.0.20 ), which is load balanced behind another nginx server ( just nginx ), when we try to browse we get file not found error, with error ...
0
votes
1answer
82 views

Apache with Worker MPM AND php-fpm

I am willing to shift my application server from default prefork MPM module to worker MPM. My server configuration is OS - CentOS 6 Apache - Apache/2.2.15 (Unix) PHP 5.4.35 (fpm-fcgi) CPU - 4 RAM - 8 ...
0
votes
2answers
119 views

nginx with php5-fpm and multiple Wordpress in subdirectories

I have a running nginx server with php5-fpm on a debian wheezy. I want /var/www/devel/ to be my development folder served at http://devel.example.com. In this directory I have multiple projects like ...
0
votes
0answers
341 views

Is it really possible to use PHP sessions for authentication with nginx fastcgi cache?

I have recently switched an opencart instance from Apache+mod_php to nginx+fastcgi+php-fpm. I have been trying to leverage caching for most pages through fastcgi-cache. Unfortunately, many users ...
0
votes
1answer
47 views

nginx handle multiple locations for one server

I need to setup a virtual host to run my users.example.com website. It needs PHP support via php-fpm. The ideia is to have a mapping like this: users.example.com/~user1/folder/file.php -> ...