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

NGINX + PHP5-FPM stop responding after some time [on hold]

I have some strange issues using nginx and php5-fpm. I'm running a server on my raspberry pi and it works flawlessly, but after some time the site takes ages to load and shows a 502 or 504 error. I ...
1
vote
1answer
6 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
34 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; ...
-7
votes
0answers
35 views

after ngnix restart,something get wrong? [closed]

PHP message: PHP Fatal error: Unknown: Failed opening required '1024M' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0" while reading response header from upstream, client: ...
0
votes
1answer
23 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
21 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
37 views

FastCGI: incomplete headers (0 bytes) received from server “/php-fpm”, referer: [closed]

PHP-FPM seems to do fine with smaller sites, but I have a Drupal 6 site that's quite large, and when I attempt to log in, I get a 500 error and FastCGI: incomplete headers (0 bytes) received from ...
-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
22 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
46 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
31 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
41 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
30 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
72 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
21 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
48 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
34 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
90 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
34 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
70 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
483 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
30 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
31 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
14 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
69 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
62 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
110 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
37 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
30 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
74 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
29 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
188 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
141 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
58 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
77 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
104 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
46 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
209 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
75 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
32 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
34 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
68 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
81 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
40 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, ...