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
1answer
56 views

nginx rewrite rules for tweetnest

Recently I migrated my last apache to nginx (+ php-fpm). Everything works fine except tweetnest by month links (tweetnest/yyyy/mm). tweetnest provides apache rewrite rules (.htaccess) which works ...
0
votes
0answers
173 views

Apache 2.4 with mod_proxy_fcgi and php-fpm issues using balancer://

Currently, I have Apache 2.4.6 + PHP 5.5.3 working with a RewriteRule sending requests to a single mod_proxy_fcgi backend with a fcgi:// prefix. Additionally, I've recompiled PHP with the patch from ...
1
vote
0answers
94 views

LA problems while serving 40M requests daily with php-fpm, nginx

I have server with FreeBSD (16 cores with HT, SSD, 32Gb RAM) which is getting about 40M http requests daily. All requests are served by nginx + php-fpm. At these graphs you see that we have a ...
0
votes
1answer
133 views

Codeigniter URL only work for default router

I've installed Codeigniter on Nginx with this configuration : server { listen 80; server_name myserver; root /usr/share/nginx/html; index index.php index.html index.htm; error_log ...
0
votes
1answer
550 views

nginx upstream timed out. Multiple servers at the same time

I have several servers serving a single site. Main server runs nginx and php-fpm. And all the other servers run php-fpm. The server that runs both nginx and php-fpm connects via a unix socket and the ...
0
votes
2answers
134 views

phpmyadmin can't login on nginx Centos 6 Server

I've installed phpmyadmin on my ded server with Nginx and MariaDB under Centos 6.i can login into mariaDB cli with root user falwlessly but i can't login through phpmyadmin. it shows me first login ...
0
votes
2answers
1k views

Setting up HHVM for apache2.2 with mod fastcgi in a virtual host

I want to setup a virtualhost running HHVM to try out the new "Facebook Hack" language. I followed the instructions here on Apache 2.2: https://github.com/facebook/hhvm/wiki/FastCGI currently hhvm is ...
0
votes
1answer
34 views

php-fpm creating directory as root

I'm running php-fpm, and I'm having a problem that sometimes my code will create a directory as the root user, even though all the php-fpm processes are running as nginx. The master process itself is ...
0
votes
0answers
41 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
0
votes
0answers
43 views

PHP upgrade always breaks session folder permissions

Every time I upgrade php (via yum upgrade) on my CentOS box, my /var/lib/session folder ownership becomes root:apache with 600 permissions. I use nginx as my web server. This breaks my site and ...
1
vote
1answer
45 views

How to set umask for php-fpm in fedora 19

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
1
vote
1answer
64 views

php-fpm process running when using mod_php

I've been having some out of memory issues. Pretty much there after tuning Apache but I have noticed something odd when analyzing memory usage. php-fpm is running in the background when, as far as I ...
0
votes
1answer
43 views

nginx+php5-fpm .php Pages not reflecting changes

I'm very experienced with Apache, but I wanted to make the switch to Nginx to try and gain experience with a very popular piece of software. Unfortunately I have not gotten very far and this problem ...
1
vote
0answers
75 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
1
vote
1answer
27 views

Is multiple php5-fpm processes normal

I'm running several wordpress sites in a LEMP (Ubuntu Linux, Nginx, MySQL, PHP) stack. Looking at the running processes I can see there are two php5-fpm processes. Is this normal or have I done ...
0
votes
2answers
345 views

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, *set fastcgi_param SCRIPT_FILENAME and it will work* (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a ...
0
votes
0answers
44 views

Webroot directory separation for Apache: suPHP or suEXEC ?

I've been reading a lot about directory permission setup under apache 2.4. Basically I am running a small number of clients with PHP apps on my dedicated Ubuntu (php 5.5.3 + apache 2.4). I know that ...
0
votes
1answer
1k views

connect() failed (111: Connection refused) while connecting to upstream, client

I get this error message in my log : *329 connect() failed (111: Connection refused) while connecting to upstream, client: 37.24.154.207, server: domain.de, request: "POST /wp-admin/admin-ajax.php ...
0
votes
1answer
382 views

nginx configuration for multiple subdirectories containing zf2/php files doesn't work

My root structure looks like this /root/ /root/projectA/... /root/projectB/... /root/projectC/... Before I configured each of my subdirectories with one extra location block in my nginx file. These ...
1
vote
1answer
182 views

NGINX don't parse .php5 as .php

I have installed nginx with ISPconfig. Everything works fine except some websites I have ported from apache server unfortunately have .php5 extension and I don't know how to make nginx to parse them. ...
0
votes
0answers
38 views

QUERY_STRING string not working nginx ubuntu 12.04 EC2 server

I have migrated from apache2 to nginx on my ubuntu 12.04 EC2 server, But its not working I never receive query_string. I'm running nginx with php5-fpm nginx version: nginx/1.4.5 server { listen ...
3
votes
1answer
114 views

Save PHP opcache to Memcached

Running on small servers it would make sense offloading these as much as possible for performance. Also offloading will prevent from the server becoming a bottleneck. Therefore I use memcached for ...
0
votes
1answer
76 views

nginx php-fpm random/temperamental “No input file specified” error

I've got a page, I'm not using redirects, just going directly to /invite/index.php?code=f13dc6c9be in the browser and it serves up about 50% of the time. The rest of the time the browser displays "No ...
0
votes
0answers
65 views

php-fpm pool selection using vhost_alias

on Debian Wheezy, I'm configuring Apache (2.2) to work with mod_fastcgi, mod_vhost_alias and php-fpm. FastCgiExternalServer connects to a user-specific pool, that's the easy part. However, I use ...
0
votes
2answers
148 views

Django (uWSGI) and php (fastcgi) NGINX

I am new to configuring servers and i'm having issues getting php to work with my django app using UWSGI on nginx. Django works great using uwsgi and php works great when I remove the django site ...
0
votes
1answer
80 views

PHP Settings [pm.max_children, pm.start_servers, pm.min_spare_servers and pm.max_spare_servers]

In the midst of transferring a website from a GoDaddy shared server to an EC2 instance. Handling the traffic, which during peak times on a typical day is around 300 active visitors, has been ...
1
vote
2answers
435 views

php5-fpm optimization for long polling

I'm designing a chat application in PHP. I use nginx with php-fpm environment. The problem is, that after several clients connected, PHP scripts are getting very slow. I have just several (5-10) ...
0
votes
1answer
40 views

Cannot get static file with chroot wordpress

I was trying to configure chroot with php-fpm and mysql. I managed to work it out, however when I try to reach files other than index.php (like css, png etc.) it keeps giving 404. However when I ...
0
votes
0answers
46 views

What is the difference between proxy_buffer and fastcgi_buffer?

I inherited an nginx config and I'm trying to optimise it for security, speed, and/or maintainability by removing rules/directives which are superfluous or not doing anything. With this in mind, ...
0
votes
1answer
153 views

nginx & php-fpm very slow on first access

I have a nginx 1.4.5 webserver with php-fpm 5.5.7 running on my server, but if my server stays idle for a while, accessing it is very slow. It takes about 10-20 seconds to get the response (first ...
1
vote
1answer
97 views

nginx/php-fpm “primary script unknown” when serving from a complex path

I have a web app (simpleSAML.php) wrapped in a Wordpress widget that needs to serve paths like the following: ...
0
votes
0answers
235 views

Nginx + php-fpm + Zend Opcache + php 5.3.10 - Dynamic Generated CSS|JS

I have the Zend Opcache pecl extension working almost completely- except for that I have 4 files that technically are content-types of css and js - but are "php" files and get sent through fastcgi and ...
1
vote
1answer
191 views

Constantly have to reload PHP-FPM

We have a fairly heavily loaded server running nginx and PHP-FPM. We have 6 websites on this server, running PHP-FPM and nginx. Software is all vBulletin 3.8 and Wordpress. Databases are on a separate ...
2
votes
2answers
2k views

Nginx + php-fpm - Each php-fpm process 70-100% cpu when running

I have a situation in which the following is taking place: We are on linode with 8-core, 8gb of ram , 2.6 ghz - using nginx + php-fpm - we are getting extremely high graphs of cpu usage (which we ...
0
votes
1answer
403 views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = ...
2
votes
1answer
693 views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
0
votes
0answers
71 views

PHP-FPM ProxyPass, cannot load proxy module

I have installed Apache 2.4.7 on my CentOS 6.5, and I have also installed php-fpm using --enable-fpm. Now I'm trying to configure proxypass on port 9000 where fpm is listening, but when i add these ...
0
votes
0answers
81 views

FastCGI sent in stderr: “Primary script unknown” file not found

I have installed nginx and php (fpm). static files are being served fine. I created a simple info.php <?php phpinfo(); I browse to my url http://xx.xx.xx.xx/info.php and see a: File not found. ...
1
vote
0answers
74 views

Nginx isn't redirecting right

I'm starting with Nginx and have a lot of problems since things change from Apache to Nginx. Right now I have a application developed in Symfony1.4 which don't work since I get a 404 Not Found error. ...
0
votes
1answer
101 views

Nginx doesn't find subdirectories and also doesn't run index.php at default directory

I changed from Apache to Nginx and now I'm having some problems. When I try to access to any folder as for example http://devserver/monitor/web where I have a Symfony project I get 404 error When I ...
0
votes
0answers
67 views

is gd so much slower than imagemagick on php-fpm?

I had today a real problem with my php-fpm and nginx setup: The server was really slow, the 5 php workers took alot of RAM (about 1GB in total, while i only have 512MB RAM and 2GB SWAP) and produced a ...
0
votes
1answer
484 views

PHP-FPM with Apache 2.2.22 and Ubuntu 12.10 - 500 Error, or returns text (not executing)

I am following this tutorial to try to install PHP-FPM on my LAMP stack. My config in /etc/apache2/sites-available/default contains (as per the guide) <IfModule mod_fastcgi.c> Alias ...
0
votes
0answers
152 views

Apache mod_fastcgi + php-fpm chroot

Im trying to setup Apache + FastCGI + chrooted PHP-FPM on Debian (wheezy). But I'm always geting file not found error. I cannot find the problem, but if I disable chroot, everything runs fine. What ...
0
votes
1answer
106 views

NginX Causing PHP File To Be Executed Twice

I'm between a rock and a hard place trying to figure out why this is going on. For some reason, when I open my website the index.php file is being executed. I have been able to narrow it down to ...
-1
votes
1answer
553 views

Amazon linux package conflict [closed]

I was trying install php55-fpm on amazon linux, but there is a package conflict with php-common. How solve this issue ? [ec2-user@ip-10-0-12-54 ~]$ sudo yum install php55-fpm Loaded plugins: ...
0
votes
2answers
45 views

PHP Files downloading (source code) instead of running Nginx&PHP5-FPM

When browsing to a page on the site the page is being download instead of running Nginx Config - user www-data www-data; worker_processes 4; events { worker_connections 2048; } http { ...
2
votes
1answer
162 views

Nginx $uri variable is truncated during processing

We have NGinX as proxy server for PHP web application. PHP scripts are served by PHP-FPM process. Following is the configuration for the nginx: location /app/ { alias /var/www/html; location ...
0
votes
1answer
55 views

mod_fastcgi not working with <IfModule…> and php-fpm

In the primary httpd.conf file I have the following for loading the fastcgi module: LoadModule fastcgi_module modules/mod_fastcgi.so In a different file for vhosts I have the following: ...
0
votes
1answer
424 views

Larvel on nginx+php-fpm returns blank page

Hello there! (Hopefully this is posted on the right site since it's more relevant to server admins in my eyes) I'm having this issue with Laravel which is served by nginx + php-fpm, it's just ...
0
votes
0answers
43 views

Problems with Server [php-fpm - CPU Overload]

Since then I have switched the system on php-fpm running it pretty well, have now also pm.children perched on 20. Maybe the pm.children is not high enough? The idle timeout is set to 300. ...