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
0answers
5 views

PHP FPM Timing Out

We have PHP FPM with Apache running Wordpress. Occasionally I have noticed certain plugins that call external URLs have the ability to really mess with FPM resulting in lots of timeouts etc if the ...
1
vote
1answer
31 views

Nginx serving .PHP as a download only when .php is added with arguments

Here is my current nginx config: server { server_name mydomain.example; access_log /srv/www/mydomain.example/logs/access.log; error_log /srv/www/mydomain.example/logs/error.log; root ...
0
votes
0answers
13 views

Jail php (nginx + unix socket) in a folder

I have to store two php applications in a single server. Following my current setup: /etc/php5/fpm/pool.d/app1.conf [app1] user = app1 group = app1 listen = /var/run/php5-fpm-app1.sock listen.owner ...
-1
votes
0answers
8 views

Php-fpm pools configuration for multiple websites in Centos 7

After following this tutorial for installing Lemp on Centos 7, I decided to host multiple sites on the same Virtual Server. Using Nginx i created a server block for each site, and everything worked ...
2
votes
1answer
28 views

Run a specivic (older) php version with nginx, php-fpm on debian

In order to migrate old php software, I want to run php 5.3.* so I: Removed php via apt-get purge php* Added the corresponding http://snapshot.debian.org/archive/debian/ to the sources Installed ...
1
vote
1answer
49 views

PHP 7 and 5.6 parallel in Nginx

I want to use PHP 7 with newer apps and PHP 5.6 with apps, that doesn't work with PHP 7. So I try to configure Nginx to enable different PHP versions for different pathes. But it doesn't work: # ...
3
votes
1answer
38 views

php-fpm and nginx @ high CPU usage?

My server is with DigitalOcean with the following plan: 2 Core Processor 2 GB Memory My website is receiving thousands of visitors, however, both CPU cores are @ 100%: The issue seems to be with ...
0
votes
1answer
23 views

nginx + php-fpm is extremely slow

I have a very low tier VPS - 1GB ram and 1 CPU w/ 30gb SSD running CentOS (v7.2.1511). The server only servers php-fpm (v5.4.16) and nginx (1.6.3). Mysql and Mongo databases are on another server. I ...
1
vote
0answers
22 views

PHP page refuses to appear despite checking php-fpm, SELinux, and nginx

Problem I have a small web server that hosts a small PHP page that performs a very small function. I used to host this on another machine. I move the website to a new machine with a different ...
0
votes
0answers
18 views

Why was my max_children reset on server restart?

A week ago, I modified my /etc/php-fpm.conf file and changed pm.max_children = 215 to pm.max_children = 130 Last night, I scheduled a reboot and this morning, when I came in we were again at ...
0
votes
2answers
58 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
0answers
28 views

NGINX returning 404 error for just one file

I have an NGINX setup with virtual hosts running on Ubuntu 15. On one of them, suddently, a file called assigndocs.php returns a 404 error. But just that one file. All the solutions I found answer ...
-3
votes
1answer
19 views

php5-fpm works for a bit and then stops (nginx/wordpress) [closed]

I'm running wordpress on an nginx/php5-fpm setup and every few minutes, php stops working. When someone tries to subscribe, it works at first and then it stops and takes the user to a 500 server ...
-1
votes
2answers
43 views

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX ...
3
votes
1answer
71 views

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi): ...
0
votes
1answer
82 views

Centos 7 nginx php upgrading

My currently running website works great and it currently using php 5.4.45 FPM/FastCGI, however I would like to upgrade to php 5.5.9+ for an api documentation subdomain that has that php requirement. ...
0
votes
0answers
24 views

IPTables Reverse Proxy Breaking PHP-FPM | nginx/php-fpm/iptables/centos

Information: I have been trying to make a reverse proxy on my server using iptables rules. I use nginx to reverse proxy on SSL to port 8080 where I run another nginx server. The problem: IPTables ...
0
votes
0answers
24 views

Apache: A lot of connections gracefully finishing?

at the moment I'm mentioning that a lot of connections are gracefully finishing if I visit my apache2 status-page. What does that mean and why are they gracefully finishing? Some of them are in this ...
-1
votes
1answer
63 views

How to solve “The apache2 configtest failed.” in ubuntu 12.04 lts [duplicate]

After update my php got the error: The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of ...
-1
votes
0answers
16 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 ...
1
vote
0answers
39 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 ...
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
15 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 ...
0
votes
1answer
24 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 ...
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 ...
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
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 ...
0
votes
1answer
97 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. ...
-1
votes
1answer
299 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 ...
1
vote
1answer
78 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 ...
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 ...
0
votes
1answer
71 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 ...
2
votes
2answers
66 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
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
38 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
26 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
45 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 ...
-1
votes
1answer
171 views

Switching from MPM Worker to Event with PHP-FPM

CentOS 7, Apache 2.4, FPM/FastCGI, MariaDB My 512M VPS is eating up memory with one development WordPress site, so I'm hoping this will lead me down a path of better tuning; if not, please inform. I ...
0
votes
0answers
85 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 ...
0
votes
2answers
85 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 ...
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 ...
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
57 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 ...
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() ...