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
3answers
277 views

How can I trace the cause of php-fpm terminating?

I have VPS (4 core, 6GB) running centos, nginx and php-fpm, with very little traffic (I have never published the url). Every few weeks (at different times), php-fpm terminates with only the following ...
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 ...
-1
votes
0answers
18 views

hhvm genrates segmentation fault with high memory usage

I was tring to read a csv file on my 2gb ubuntu nginx-hhvm vps server by using spout develobed by box inc (open source). And my hhvm stopped with segmentation fault. when i tested the same script on ...
3
votes
1answer
22 views

PHP FPM, location nesting vs unnested for avoiding code execution

Is there any advantage using: location ~ \.php { location ~ \..*/.*\.php$ { return 403; } fastcgi_pass ...
4
votes
6answers
21k views

How do I make Nginx redirect all requests for files which do not exist to a single php file?

I have the following nginx vhost config: server { listen 80 default_server; access_log /path/to/site/dir/logs/access.log; error_log /path/to/site/dir/logs/error.log; root ...
0
votes
1answer
73 views

Nginx fastcgi_cache not working for one WP site (but working OK for time.php on different vhost)

I am running Ubuntu nginx 1.8 with fpm php 5.5, on one site I am able to get cache working (with a simple time output) <?php echo time();?> shows: Connection:keep-alive Content-Encoding:gzip ...
1
vote
0answers
41 views

High load with Nginx - with low traffic websites

Once in a while (maybe once a day?) I've got a load average of 10. That lasts for like 30 min (where I can't reach any of websites on this server) and then it's fine again. I just happened to be via ...
1
vote
0answers
16 views

nginx + php-fpm/hhvm specific openbase_dir requirement

I have structure like this: user1 - site - public - functions.php user1 - site - public - functions.php appuser - app - index.php nginx sets php to appuser - app - index.php which includes ...
0
votes
1answer
41 views

nginx + php-fpm downloading php (CentOS 7)

I have nginx and php-fpm installed on Centos 7, when i try and go to a test php file it downloads it instead of running and rendering in the browser. All other html, image files etc display fine. If ...
3
votes
1answer
38 views

ubuntu 14.04 Apache 2.4.7 mpm_event Files and FilesMatch not working

We recently switched our Apache 2.4.7 mode from mpm_pre-fork to mpm_event. Since then we haven't been able to get our Files directive to work. <Files "*.php"> Header set Cache-Control ...
8
votes
6answers
15k views

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...
0
votes
1answer
25 views

An other FPM instance listening on php5-fpm.sock

i have set up multiple PHP versions in ISPconfig 3 and the hole thing actually works except i can not start more then one Version at a time then i get this error "An another FPM instance seems to ...
1
vote
3answers
2k 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 ...
8
votes
4answers
2k views

Can I globally set $_SERVER['REDIRECT_URL'] before script execution?

I'm in the process of migrating many sites from an old to a new server configuration. Each site is based on a similar (but sadly not identical) codebase, using mod_rewrite URLs. Ubuntu 8.04 LTS => ...
2
votes
0answers
315 views

Load Average 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
99 views

NginX->Varnish->PHP-FPM Blank pages

I want to put nginx in front of Varnish, which at the same time will go back to nginx to serve some PHP (Drupal). But I am only getting blank pages (from Varnish) with 200 response, but length 0. ...
0
votes
0answers
21 views

PHP5-FPM is not working behind Varnish

I've got the following Setup: A Nginx Server which listens on Port 443 with the following Config: server { listen 443 ssl http2; [SSL Part etc.) location / { proxy_pass ...
0
votes
1answer
57 views

Simple NGINX setup not working

So I am new to NGINX, and I am trying to setup a simple phpinfo page in /home/codehitman/nginx/phpinfo directory. I have setup the /etc/hosts file with the following directive: 127.0.0.1 ...
62
votes
10answers
153k 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.
1
vote
2answers
27 views

what are my options for linking directories

I have a configuration file which refers to a file structure. This is what I have <?php // HTTP define('HTTP_SERVER', 'http://XXXX.co.uk/public_html/'); define('HTTP_IMAGE', ...
0
votes
3answers
447 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?
0
votes
0answers
28 views

Nginx + php-fpm configuration issue: “Primary script unknown”

I have vagrant box where is running the nginx + apache-fpm. But seems like they doesn't work. When I'm trying to get / on my server I'm receiving 404 HTTP-status with "File not found." body. Error ...
8
votes
3answers
21k views

php5-fpm: server reached pm.max_children

I have Nginx+php5-fpm. Several times per hour my website stucks and in logfile I see the following: WARNING: [pool www] server reached pm.max_children setting (5), consider raising it. ...
-1
votes
1answer
311 views

How to upgrade PHP to 5.6.x or 7.0.x on CentOS 7.2?

I'm on CentOs 7.2 with PHP 5.4.16. I'd like to update to PHP 5.6.x or maybe even to PHP 7.0.x if it's safe to do. What are the steps to safely switch to a newer PHP version? These are PHP related ...
2
votes
2answers
67 views

PHP-FPM occasional “FastCGI: failed to connect to server” error

Ubuntu 14.04.3 LTS Apache 2.4.7 PHP 5.5.9 I switched from mod_php to PHP-FPM about two weeks ago. Everything, for the most part is running smoothly. Except twice now I've had a situation where ...
1
vote
3answers
926 views

How to restart PHP-FPM from cron?

I'm trying to restart PHP5-FPM periodically using Cron, but am having no luck. I can restart manually with no problems, using service php5-fpm restart or /usr/sbin/service php5-fpm restart However, ...
1
vote
1answer
79 views

Why nginx alias returnes 404 on .php files?

This configutation works: location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root ...
0
votes
1answer
72 views

File issue with NGinx & PHP-FPM on separate servers

I've done a bit of research on running NGinx and PHP with FastCGI on separate servers, and have successfully set it up on test virtual machines. I've ran into the problem that these articles ...
0
votes
1answer
18 views

Php FPM + Apache. Customize 404 for PHP files

I have setup a small Apache instance and configured PHP with FPM. I am using the ProxyPassMatch directive. Now, when FPM does not find the requested file, it will just print out "File not found" and ...
3
votes
3answers
3k views

How to get php-fpm to log to stdout / stderr when running in a docker container

I have php-fpm in a docker container and in the Dockerfile I edit the fpm config file (/etc/php5/fpm/pool.d/www.conf) to set up access logs to go to /var/log/fpm-access.log and error logs to go to ...
1
vote
0answers
34 views

php-fpm error log is trucated

I'm setting up test environment where I have nginx and php-fpm on centos 7. I have successfully setup everything and I can run php code. This is my configuration: nginx version: nginx/1.9.9 ...
0
votes
0answers
39 views

Setting up nginx and php-fpm on CentOS 7 - which config file do I alter? I'm so lost

I'm intermediate with Ubuntu and Apache, but a total noob to CentOS. I want to setup a 1 CPU 1 GB RAM test VPS for a phpbb 3.1 forum, and I'm following this tutorial: How To Install Linux, Nginx, ...
0
votes
0answers
29 views

Wordpress showing article title, but content is showing blank

I recovered from a disaster situation on the server, database is not affected. My wordpress files were old, from previous version (maybe 4.3). When I recovered those file and setup nginx with it, I ...
1
vote
0answers
34 views

WordPress on two separate servers, first one with nginx, second one with php-fpm. Where to keep static files?

For example, I have two servers (or VMs). On the first one I have Nginx installed, on the second one - PHP-FPM. And I need to deploy some app, like WordPress, which does not have two separate folders ...
0
votes
0answers
27 views

benchmarking nginx+php-fpm with apachebench fail rate = %99

my server's specifications is 8 core 16 gb ram there is no problem while benchmarking static files but when i benchmark php files i get %99 fail rate not sure what i configrated as false ...
0
votes
1answer
46 views

nginx1.8.0+PHP 5.6.16 on OSX, some php pages links show 500 Internal Server Error

My page documents locate in /usr/local/var/www drwxr-xr-x joshua:admin My nginx configure is nginx.conf and my php and php-fpm configure is this file and I find I can use ...
0
votes
0answers
88 views

nginx configuration: Extremely poor performance of AWS server running Magento

I have an AWS server which is setup with nginx with Magento, and PHP-FPM. The server is currently setup as an on-demand type (which I realize is the wrong type to use). Type: c3.2xlarge CPU : 8 ...
1
vote
3answers
411 views

Apache ProxyPass worker name too long

I'm passing my php files to php5-fpm within my Apache .conf file however I'm receiving an error message when restarting the Apache server: ProxyPass worker name ...
0
votes
2answers
86 views

Error with apache 2.4 and PHP 5.6.14-0+deb8u1 With fpm

I have a Vagrant machine with: Apache/2.4.10 (Debian) PHP 5.6.14-0+deb8u1 and PHP-FPM. In some case I get this error: 500 Internal Server Error. And I have this in message in php5-fpm.log ...
4
votes
1answer
2k views

Munin dynamic graph zoom (dynazoom) not working (Nginx, PHP-FPM)

Debian 7.5 Nginx/1.6.0 PHP 5.6.0RC2 (fpm-fcgi) (built: Jul 11 2014 08:17:52) Munin v2.0.21-2 I been searching all over the net for a few days for answers to my problem but it seems like no one knows ...
0
votes
1answer
49 views

Nginx redirects all domains to one website

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
0answers
56 views

PHP file causes error if not accessed via symlink

I have a PHP file which randomly causes a 502 Bad Gateway error in Nginx. The Nginx configuration is the following: location ~ ^/dscms3/bo3/(.+\.php.*)$ { client_max_body_size 1000M; include ...
0
votes
1answer
60 views

Service php-fpm does not get user permissions

I have an issue with php-fpm. It is actually the php7 version. I have drupal and it will complain that some directory is not writtable. Only if I start php-fpm as a service like that: #service ...
1
vote
1answer
28 views

Include common configuration in several php5-fpm pools

Shortly: how can I include the same settings across several php-fpm pools without repeating them for each pool? Details In php5-fpm there are global directives and per pool directives. In all ...
0
votes
1answer
20 views

How do i know what curl_exec is slow from slow_log

My applications makes curl fetches html pages using curl.PHP-FPM slowlog shows the following script_filename = /var/www/mywebsite.com/public_html/www/file.php [0x00007f2e36a6fdf8] curl_exec() ...
0
votes
1answer
43 views

nginx makes /dev/root full

On my server, /dev/root is getting full very fast after each reboot: a munin graph showing it if i type sudo lsof | grep "deleted" i get: nginx 6012 www-data 44u REG ...
0
votes
0answers
28 views

Nginx - File uploading with a php backend?

I want to set up a simple nginx server that takes uploaded files and runs a few checks and shell commands on them before moving them to the /files directory. Is it possible to do this with a php file ...
0
votes
1answer
285 views

Configuring php7.0 with apache2

I'm running the newly released php7.0 on debian jessie. By now it works all fine. Enabling the pdo_mysqli, I have found mutliple configuration directories for php7. There are: apache2 cli fpm I'm ...
0
votes
1answer
26 views

Can/should PHP-FPM and Apache be run under the same user/uid and/or group/gid?

I decided to reinstall my box's PHP and Apache today to give FPM a go, never used it before and wanted to do some performance tests as I've heard it is a lot faster. Right after compiling and ...
5
votes
1answer
5k views

Nginx throws 404 only on php scripts using php-fpm

I've installed a testing server using nginx + php-fpm. I've tried all of the following: Nginx + Php5-fpm not rendering php files nginx + php fpm -> 404 php pages - file not found When accessing ...