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
votes
0answers
17 views

Can't install PHP-FPM in CentOS 6.6, using repositories too [on hold]

I don't know what is happening, using repositories too - i can't install PHP-FPM in my CentOS 6.6 Server. Also i created a file /etc/yum.repos.d/nginx.repo with the below code, [nginx] name=nginx ...
1
vote
1answer
26 views

FastCGI cache is always a MISS

So, I've setup FastCGI cache like this: location ~ \.php(/.*)?$ { fastcgi_cache RWI; fastcgi_cache_valid 200 60m; set $nocache 0; if ($request_method = POST) { set ...
0
votes
0answers
10 views

nginx sends 404 instead of waiting for fastcgi

Our nginx is configured to send thumbnails from a folder. If they don't exist, nginx has to pass the request to fastcgi to generate the thumbnail and send it to the user. If the requested doesn't ...
0
votes
1answer
15 views

Nginx refuses to read new directory in /home

I'm on CentOS6.6, installed "Akeneo" and all went well. Installed into /home/pim so the actual location for nginx to use is the web directory where app.php is located. Doing a namei on ...
0
votes
0answers
31 views

php5 fpm consuming lot of CPU

My problem is with php5-fpm processes which are consuming a lot of CPU. Any single request from my website is resulting in CPU consumption of minimum of 20% to the max value. I've observed many times ...
1
vote
1answer
27 views

No Input File Specified with Nested Docroot

I have the following nginx config for 2 different domains: server { listen 80; root /srv/users/serverpilot/apps/myapp/public; index index.php index.html index.htm; server_name ...
0
votes
0answers
23 views

Nginx Varnish 4.0 SSL Wordpress configuration redirects mydomain.tld to https://127.0.0.1

I have the following stack: (redirect http to https =>) https nginx -> varnish -> nginx http -> php5-fpm When I open my.url.com I get instantly redirected to https://127.0.0.1 Without varnish, ...
-1
votes
0answers
9 views

open_basedir in php wordker [duplicate]

Is there any possibility for setting up open_basedir in my workers in pool.d? I have tried to include open_basedir = /home/xxx/ command, but this is not working for me
0
votes
2answers
21 views

Nginx & PHP-FPM: Query parameters won't be passed to PHP

I am currently setting up a machine for local development using Vagrant. Everything runs as it should, expect query parameters aren't passed to PHP on subpages. That means on www.example.com/?a=b, ...
1
vote
1answer
13 views

ProxyPassMatch and mod_rewrite order of operation

I've got a situation with Apache 2.4, PHP-FPM and Wordpress Multi user in sub folder mode. All non *.php files work fine in the subfolder, as does the main example.com/subblog/ url, however anything ...
0
votes
0answers
37 views

Nginx redirects http request to one vhost

I have installed nginx with php-fpm. When I try to access example.org it redirects me to https://example.com What's wrong with my configs? nginx.conf user www; worker_processes 1; ...
0
votes
1answer
35 views

Centos 7 Apache 2.4 php_fpm 30 second timeout

I need to set execution timeout for Centos 7 Apache 2.4 php_fpm, but there seems to be a hard coded timeout somewhere in the Apache proxy. I see max_execution_time correctly set (to 300) in ...
1
vote
2answers
24 views

Disable Gateway Timeout for Specific Nginx Port / Folder

How can I disable the nginx timeout when accessing through a specific port, or simply a specified folder. Whichever is easier. Basically I have some scripts which need to execute for a long period ...
-1
votes
0answers
27 views

What can cause PHP script to timeout? [migrated]

Today, I found some 503 errors on my Apache log that I have not encountered before occurring within a short time interval: 12:12:37 proxy_fcgi AH01075: Error dispatching request to : (polling) ...
0
votes
1answer
25 views

nginx + PHP-FPM disable PHP functions only for certain virtual hosts

How can I disable some php functions only for some of(currently only 1) virtualhosts on my Nginx+PHP-FPM stack?
2
votes
0answers
53 views

NGINX / PHP-FPM: Ajax slow first request, good next ones

The CMS is Elxis, which comes from a variant of Joomla (PHP). The server is running nGinx with PHP-FPM All requests get logged and executed, eventually, B U T!!! When firing a specific request via ...
-2
votes
1answer
32 views

Make user have same UID as PHP?

I'm running a web app in a FreeBSD jail. Nginx and PHP are configured as user:group www:www. I have a chrooted SFTP user who also is in the group www. (SFTPuser:www) My goal is that the files that I ...
1
vote
1answer
43 views

can't use mail() on nginx but can send mail on console using msmtp

I setup msmtp on my centos 6, i know its working fine because I can send email using bash command: echo -e "Subject: Test Mail\r\n\r\nThis is a test mail" |msmtp --debug --from=default -t ...
1
vote
1answer
34 views

PHP-FPM Primary script unknown, but SCRIPT_FILENAME is set correctly [duplicate]

I'm using Nginx 1.5.12.1 with PHP-FPM for PHP 5.6.5 on CentOS 6.6 x64. When I visit any page, I get a 404 with the error: File not found. My PHP-FPM error log doesn't say anything useful, but ...
0
votes
1answer
77 views

(bad) nginx + php-fpm optimization (done by our provider) review

I asked our hosting provider for nginx + php-fpm optimization on our managed server. I got this answer: Hi, There isn't much optimisation that can be done within Nginx as it is threaded and ...
0
votes
0answers
25 views

Sometimes for Some users 404 Not Found Nginx + PHP-FPM

Sometimes (Not Always) , I Get Nginx 404 not found message on my site. Unfortunately there are no logs written about it neither in php-fpm or in nginx error logs. Can it be due to caching ? I am ...
1
vote
1answer
54 views

Configure Centos7 Apache 2.4 php-fpm to run as user

I would like to configure a Centos 7 Apache 2.4 Linode to use php-fpm to execute php as the file owner. The docs for earlier Centos6 / Apache2.2 don't work and the configurations I have seen for ...
0
votes
1answer
40 views

Nginx PHP-FPM stops after connection timeout

I have a server with Nginx and PHP-FPM for a single web application. Everything works will until I make a request for a page that takes over the 60 seconds allowed. Then PHP stops responding to any ...
2
votes
1answer
99 views

Website not loading static files when NGINX has static cache content enabled

I have a VPS running CentOS with NGINX/PHP-FPM. Everything works fine, except when I add the following lines to enable the static cache content. If I do, the page does not load those files specified ...
0
votes
1answer
41 views

PHP-FPM - problems with the pre-start process

My webserver runs NGINX with PHP-FPM. After (I guess) an update, the service php5-fpm stopped working and refuses to restart/start - even after a reboot. As another webserver does the same updates and ...
-1
votes
1answer
73 views

502 bad gateway after upgrading PHP5-FPM

I just upgraded php-fpm and my server has gone away with a 502 bad gateway I've been searching for solutions and came across some like this: http://stackoverflow.com/a/10470827/1612432 and this ...
1
vote
1answer
566 views

CentOS 6.6 with Nginx 1.6.2 - Suddenly can't restart nginx - nginx: [emerg] open() “/usr/share/nginx/on” failed (13: Permission denied)

This is a new install in which nginx previously started and stopped normally. I believe this error arose after enabling server blocks which tested (nginx -t) successfully. I then tried to restart ...
0
votes
0answers
68 views

How to run 2 fast-cgi (php-fpm) websites on an nginx server?

I have nginx running with a few vhosts for different domains. One of them uses php-fpm. I need to add another vhost(for a new domain) that points to a new directory and that also has to use php-fpm. I ...
0
votes
1answer
35 views

SOA: Is using PHP FPM to serve webservice traffic without NGINX a good idea?

I'm in the processes of developing a service oriented architecture using PHP. A member of my team has suggested that because each of the services serves only HTTP traffic, serving responses only in ...
3
votes
1answer
32 views

nginx locations and precedence (deny ignored for *.php)

I'm a somewhat experienced Apache admin in a past life, but I've decided to take the plunge and learn nginx. So far everything seems fairly intuitive, but it's clear that I haven't quite internalized ...
0
votes
0answers
15 views

php-fpm timeout (ping and status also timed out)

I've problem with my fpm in production server. The fpm keep hanging until I restart the service. After restarting, the problem gone. But it will return in a day or two. Keep it restarting won't be a ...
2
votes
1answer
78 views

Need recommendations on Firewalled DMZ design for PHP web server on Linux

The 3 options we are considering are listed below. Which one is best or is there a better solution we didn't consider. All servers are linux with nginx. Do you see anything particularly wrong with ...
0
votes
2answers
37 views

Why arent these web pages getting processed by PHP?

I have created a fresh install of nginx and php5-fpm on an Ubuntu 14.04 server and made the changes shown below to get configuration working. When I browse to a directory containing an index.php or ...
0
votes
1answer
66 views

SSL on Ubuntu 12 LTS with Apache and PHP-FPM

After reading many tutorials I managed to run successfully Apache MPM-Worker and PHP-FPM on Ubuntu 12 LTS. I have separate pools for each user and everything works like a charm. However I need to ...
0
votes
0answers
130 views

Apache + Event_MPM + FastCgiExternalServer + php5-fpm : php-fpm hangs emergency_restart_threshold does not reset

Sorry if this seems rambled. I have been trying to troubleshoot / solve this for the past 20 hours straight, while having to babysit the server and restart php5-fpm every time it goes down. I imagine ...
0
votes
0answers
48 views

Set php-fpm slow log file permissions

I have a setup of php-fpm on CentOS 7 with each user having their own pool and log files. I want to make sure that each user is able to view their own log files. This works great for the PHP ...
0
votes
0answers
31 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
83 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
31 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
191 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
153 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
62 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
96 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
109 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
15 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
50 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
236 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
83 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
38 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
37 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 ...