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
vote
2answers
6k views

Nginx upgrade to 1.8 - Now getting 502 bad gateway

Today I upgraded my localhost server from nginx 1.6.3 to 1.8.0 and now all my local websites are getting a 502 bad gateway. A standard nginx config file is as follows server { charset utf-8; ...
-1
votes
0answers
14 views

Apache + Php-fpm +wordpress Errors

Hey Guys i have blog that running on apache2.4 php5.6 and php-fpm to handle my wordpress blog. Iv been running the setup for sometime with no problems but off late i have been noticing the following ...
1
vote
2answers
2k views

Nginx + php-fpm - recv() error

I get the follow error in the nginx log [error] 17734#0: *6643 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [cut], server: [cut], request: ...
4
votes
1answer
2k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
-1
votes
0answers
11 views

PHP 7 as PHP-FPM application, user and groups are www-data [on hold]

I would like to switch from FastCGI application to PHP-FPM, but if I do so from the PHP settings of a domain that I manage under Plesk 12.5, the user that is executing the application is www-data, ...
1
vote
2answers
73 views

.htaccess file not loaded for PHP files

I am trying to work out why my .htaccess is not being considered when loading a .php file. Below files sit in the webroot of my localhost. .htaccess # Cause a HTTP 500 test file.html <html>&...
-1
votes
0answers
13 views

How can I check PHP7 FPM file Syntax on Centos

Hi I am using Centos 7 with PHP7 on a staging server and PHP5.X on another server. On the Centos 7 with PHP7 I get in touch with a problem that could be a permission problem but everything is ok ...
2
votes
1answer
1k views

Can not optimize php5-fpm to work without errors

I have installed ngix + php5-fpm. I am happy with it but I can not optimize php5-fpm so that it works without errors. Each fixed error creates a different error. First I had the the default settings ...
0
votes
0answers
17 views

WordPress slow through CloudFlare with PHP-FPM

I am running multiple WordPress sites and one Symfony app on the same server, all of them are using CloudFlare. While the Symfony app has the expected loading time etc, the WordPress sites are ...
0
votes
1answer
1k views

Configure Monit to monitor PHP5-FPM on Ubuntu/Nginx setup

System: LEMP running on Ubuntu 14.04 I'm trying to configure the tool Monit to restart Nginx or PHP-FPM if ever there is a problem. It is correctly monitoring Nginx however under status for PHP-FPM ...
1
vote
2answers
1k views

Replicating mod_fastcgi with ProxyPassMatch (PHP-FPM setup)

I want to move from Apache 2.2 to Apache 2.4, but there is no mod_fastcgi, and the recommended upgrade path is mod_proxy_fcgi However I can't figure out how to accomplish the following: <IfModule ...
0
votes
0answers
22 views

New Apache 2.4 MPM-Event server: (22) Invalid argument: ap_queue_pop failed

After ordering and setting up a new web server (64bit, 4 vCores, 6GB RAM, Ubuntu 14.04) with Apache 2.4.7 (and PHP7 fpm) with worker but during busier traffic hours Apache crashes. The error log is ...
0
votes
2answers
36 views

Permission Denied to PHP Files on Centos 7 with nginx

I have problem WHAT I DID Install Centos 7.2 with nginx 1.10 -- create a nginx server block sudo mkdir -p /var/www/example.com/html -- set permission sudo chown -R nginx:nginx /var/www/example.com/...
0
votes
1answer
1k views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on /home/...
4
votes
1answer
6k views

PHP FPM keeps hanging

I have tried all sorts of options but every couple days (mostly every day) FPM stops serving pages and I get a 502 (from cherokee webserver) The logs are filled with the following: [15-Sep-2014 10:...
0
votes
2answers
1k views

Chroot doesn't work in PHP5-FPM + nginx

I have added two line in: "/etc/php5/fpm/php-fpm.conf". There are: chroot = /home/user/www/public_html chdir = / In the server section of my: /etc/nginx/sites-available/default: root /home/user/...
0
votes
1answer
1k views

One unix socket for all php-fpm pools

I want to set only one listening unix socket for all php-fpm pools, but fpm requires them to be different. Production server has 2GB ram and I noticed that it is running out of RAM, adding more ...
3
votes
1answer
1k views

nginx & php-fpm [debug] 11: Resource temporarily unavailable

New Development The core php error logs are below, but the site specific error logs show this. The memory on my php.ini file is : memory_size 1024; so it's not php's memory limit. I've also ...
6
votes
1answer
2k views

Nginx + PHP-FPM produce 502 bad gateway instead of fatal error?

I'm currently testing Symfony2 with Nginx and PHP-FPM. I also use Xdebug. Symfony2 comes with a Demo bundle, I wanted to test the new handling of fatal errors which comes with Symfony 2.2.0 by ...
3
votes
1answer
1k views

PHP Session Storage in Fault Tolerant Memcached Pool

I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session ...
0
votes
1answer
1k views

Nginx Magento config not working, 404 on installation

This is my stack: Nginx 1.7, MariaDB 10, PHP 5.6 (FPM) and CentOS 7. I have used Centminmod for the installation of the above mentioned software. I created a vhost for the magento installation. ...
0
votes
0answers
12 views

Configuring nginx + Laravel to not execute any other PHP files

I have a Laravel application hosted on nginx, using a fairly standard php-fpm configuration. There should be no need to execute any other PHP files on the server, except for one specific script that ...
5
votes
5answers
22k views

Nginx/FPM/PHP all php files say 'File not found.'

i just installed nginx 1.1.13 and php 5.4.0 on a centos 5.8 final 64bit machine. Nginx and PHP/Fpm are running, and I can run php scripts via ssh command line, but in the browser I keep getting 'File ...
0
votes
0answers
18 views

Varnish: Ignore cookies

I currently run a site running WordPress (in the document root) and a forum script (in site.com/forums/), and I'm using Varnish to cache WordPress. I don't, however, want to use Varnish to cache the ...
2
votes
1answer
41 views

Trouble with nginx and PHP-FPM

I am having trouble getting my webserver (nginx) to work with php-fpm. The page keeps loading and then the loading time expires. I hope one of you can help me resolve this issue. I have made an ...
2
votes
2answers
3k views

Optimize php-fpm and varnish for a powerfull server

My setup is: Intel® Core™ i7-2600 and RAM 16 GB DDR3 RAM varnish+nginx+php-fpm+apc for a not very heavy WordPress blog with W3 Total Cache and CDN My problem is that after 55 hits per second ...
3
votes
2answers
46 views

Start PHP-FPM with root option automatically

I was trying to get PHP-FPM running a pool as root, but I can't seem to adjust the init.d startup params. It works when starting PHP-FPM from the CLI (with sudo php-fpm7.0 -DRy /etc/php/7.0/fpm/php-...
0
votes
1answer
3k 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 = unix://...
0
votes
1answer
2k views

Temporarily website outages, fastcgi PHP communication aborted

I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid 2599:...
0
votes
0answers
16 views

Using nginx with nagios3, getting blank page

I'm trying to set up nagios3 with nginx on Ubuntu 14.04, and I'm having some trouble that I hope someone can shed some light on. I just get a blank page, instead of the expected Nagios page. It seems ...
1
vote
1answer
46 views

nginx php5-fpm doesn't show PHP message

I looked in my nginx error.log and saw that it is overfilled with these errors: FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ..., server: ..., request: "...
2
votes
2answers
2k views

jetty server executing php

I want to configure so that jetty runs PHP files, but have been unsuccessful so far. I have Jetty WTP tools installed in my Eclipse IDE. When I start up the Jetty server. I got the exception: java....
1
vote
0answers
18 views

How to specify FastCGI parameters with Apache mod_proxy_fcgi?

The PHP-FPM documentation says that it's possible to pass custom php directives from the web server, and there's an example for Nginx. Is it possible, and how, to do the same using Apache-2.4 and ...
0
votes
1answer
24 views

503 Bad gateway for php only html works fine

I have configured aws instance from amazon ec2 linux image and configured nginx and php on server. Server serves html pages normally but don't serve php pages and also shows 503 Bad gateway error when ...
0
votes
4answers
2k 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: mmap(...
0
votes
2answers
1k views

PHP 7 cannot connect to MySQL

I have compiled LAMP servers for hundreds of times. However I am facing issues with PHP 7. I compiled it properly, but it cannot connect to MySQL in localhost. phpinfo shows PDO and mysqli are ...
0
votes
1answer
20 views

nginx download php script on HTTP but not in HTTPS

I'm nginx with php-fpm on my server. I configured nginx with SSL (Let's Encrypt) and made HTTPS the default instead of HTTP. The problem is that when accessing the web via HTTP the php file is ...
1
vote
2answers
13k views

I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed

I got a lot of these: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] [...
0
votes
1answer
2k views

PHP-FPM Can't create enough children and stops serving requests

I'm new to PHP-FPM and I've noticed at random intervals it will seemingly just lock up. [26-Dec-2014 22:50:16] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/...
1
vote
3answers
2k views

Creating Multiple Users on Single PHP-FPM Pool

Have PHP-FPM/FastCGI up and running on my cPanel/WHM server but I'd like have it allow for multiple users off of a single pool. Getting all vhosts to run off a single pool is simple by adding this to ...
0
votes
1answer
127 views

how do i start php7.0-fpm with supervisord?

I am trying to build a dockerized ubuntu 16.04lts with apache2 and nginx with php7.0-fpm commands i have used but did not work [program:php-fpm7.0] command = /usr/sbin/php-fpm7.0 --daemonize --fpm-...
0
votes
1answer
1k views

Nginx alias or rewrite for Horde Groupware ActiveSync URL does not process the rpc.php file

I'm trying to setup a Horde groupware with Nginx. The webinterface works but I do not get the ActiveSync specific URL to work. The Horde Wiki explains how to use it with an Apache Webserver here. My ...
0
votes
1answer
1k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
75
votes
11answers
197k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
0
votes
1answer
13 views

Configuring Jetty for FastCGI has worked, but how to add virtual hosts?

On CentOS 7 Linux I have successfully followed the guide Configuring Jetty for FastCGI. However the $JETTY_BASE/webapps/jetty-wordpress.xml file in the guide serves a single Wordpress installation ...
0
votes
2answers
1k 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: libapache2-mod-...
12
votes
6answers
12k views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
0
votes
2answers
139 views

Setting php_value in VirtualHost on Debian Squeeze Apache 2.4.10 + mod_proxy_fcgi + php-fpm?

After updating our server to Debian Jessie (8.3), I switched Apache 2.4.10 from mpm_worker/mod_php to mpm_event/proxy_fcgi/php-fpm. I have the handoff configured for all virtual hosts as such: # cat ...
1
vote
1answer
119 views

PHP7 + OpenSSL-1.0.2h on CentOS 7 [Nginx 1.11.1]

Since yesterday, I've applied OpenSSL-1.0.2h to my Nginx server, which I both recompiled from source. For the OpenSSL part, I've followed this guide: https://syslint.com/blog/tutorial/how-to-upgrade-...
5
votes
2answers
4k views

PHP-FPM does not automatically start after reboot

I'm running PHP-FPM and Nginx, occasionally, for whatever reason, I have to reboot the server. Once the server is running again, the nginx service automatically starts, however, PHP-FPM does not. This ...