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
1answer
143 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
2answers
53 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
86 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
33 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
233 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
49 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
63 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
41 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
47 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
46 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
97 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
526 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
109 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
137 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
65 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
44 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
111 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
30 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
0answers
48 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
365 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
53 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 ...
0
votes
1answer
56 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
65 views

nGinx & php-fpm Delayed Response

I'm using PHP 5.6.X with nginx 1.8.0 . Nginx Config: user nginx; worker_processes auto; worker_rlimit_nofile 300000; events { multi_accept on; worker_connections 6000; use epoll; } ...
0
votes
1answer
50 views

Nginx vhost downloads file

I've setup nginx and php as this tutorial suggests. I've created a second vhost which is the following: server { listen 80; root /projects/mydomain/; index index.php index.html ...
0
votes
0answers
126 views

FastCGI sent in stderr: NGINX error upstream

Hoping that anyone can help me with a cryptic error in nginx I have. If you look below I've pasted the error I get when I try to upload a movie, and if it helps it's with this ...
0
votes
2answers
94 views

What's the Relationship Between an nginx worker_process and PHP-FPM

Me: New to nginx and FastCGI in general, apologies if this is old hat and obvious, but Googling shows me a lot of people recommending random configuration values, but no one that explains the ...
0
votes
0answers
114 views

Php5-fpm starts and then fails after a few seconds

After an upgrade from ubuntu 14 to ubuntu 15, if I run sudo php5-fpm start, it hangs in ssh but the webserver is online and I can access the website. After a few seconds (maybe 30) the ssh command ...
0
votes
1answer
47 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
1answer
119 views

nginx + php5-fpm graceful restart : reload on Ubuntu 14.04 LTS

I tried to find a way to gracvelly restart my server. I tried sudo service php5-fpm reload && sudo service nginx reload But this is not working as reloading php5-fpm on Ubuntu 14.04 is not ...
0
votes
0answers
43 views

postfix / php mail() on ubuntu 14.04: no mail sent, no trace in log

Setup: Ubuntu 14.04 postfix 2.11.0 php 5.6.15 Php's mail() function does not send out emails on my VPS and no issue appears on the log. My test script is very basic: <?php ...
8
votes
3answers
209 views

Webserver randomly serves different vhosts

We've got nginx running on Ubuntu Trusty. It serves several websites over https, running on one ip address. Randomly, although it seems slightly related to work load, sometimes single requests turn ...
0
votes
0answers
21 views

How to use php-fpm just for php scripts

I have problem with php-fpm it run every file also direcotry index not working... here is how my virtula host look loke: <VirtualHost *:80> ServerName example ServerAlias ...
0
votes
0answers
17 views

php-fm can not filnd path on apache

Here is my pool setup for php-fpm: [example.com] ; OUR CUSTOM SETTINGS listen = 127.0.0.1:9002 prefix = /home/example chroot = $prefix ; DEFAULT DEBIAN SETTINGS chdir = /public_html user = example ...
0
votes
0answers
37 views

How to set up php fpm work with apache virtual hosts

When I use default config without vhosts everything works fine. But when I add virtual hosts It not working.. Here is how vhost look like: <VirtualHost *:80> ServerName example ...
1
vote
0answers
78 views

PHP compiled with zlib, but doesn't appear in phpinfo()

I have a program that requires PHP to be configured --with-zlib, so I re-ran ./configure, make and sudo make install PHP 5.6.15 on my Ubuntu 14.04 server. However, the program still says that PHP ...
2
votes
1answer
128 views

Inconsistent download size with PHP + NGINX configuration

I'm building a Joomla website using docman for document management/downloading. The site is built on a Ubuntu 14.04 server running Nginx 1.4.2 and PHP5 (FPM). The issue i'm having is that files are ...
1
vote
1answer
1k views

Install httpd24, php56 and php70 as SCL is not working with error “file not found”

Let's start saying that I have read this, this and this at Remi Blog since the question it related to those repositories. The blog entries is not helping me at all or I am missing something here but I ...
0
votes
0answers
264 views

php5-fpm does not start on Debian Jessie

I just upgraded a Debian server from Wheezy to Jessie but I'm having some problems on php5-fpm: Setting up php5-fpm (5.6.14+dfsg-0+deb8u1) ... debconf: unable to initialize frontend: Dialog debconf: ...
1
vote
1answer
58 views

Does launching more then one web container on a single docker host make sense?

Say there is an application powered by docker. There could be containers for database, redis, etc and actual web containers (in my case it is php-fpm & nginx). Alternatively, it could be a purely ...
1
vote
1answer
112 views

Permissions issue: why is user nobody needed in my second php-fpm pool?

I am running FreeBSD 10.2 with a custom-compiled Apache 2.4.17 with php-fpm. The default pool ([www], almost a stock php-fpm setup) ran on user/group nobody/nobody. Apache runs on user/group ...
1
vote
0answers
10 views

Php-fpm corrupts my socket permission on startup

I've installed Apache2.2 with FastCgi module, and PHP-fpm on a Centos server. I configure FastCgi with an external server using the socket option: FastCgiExternalServer ...
1
vote
3answers
350 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 ...
1
vote
0answers
114 views

PHP unable to mail() in chroot though I can use sendmail inside chroot

I'm building a php-fpm chroot, and am on one of my last steps before calling this a success. The php-fpm chroot is working like a charm. Also, I have mini_sendmail installed into the chroot (in place ...
3
votes
1answer
160 views

nginx and php-fpm “Primary script unknown”

Smells like a duplicate, I know, but I have now tried this Setup 5 Times over, and still I can't get this to work. Most of the configs are complicated with chroot and multi servers etc., but I have ...
1
vote
0answers
54 views

Nginx url rewrite stops going through location code

I'm trying to configure my Phalcon (php framework) project on Nginx. Unfortunately I can't manage to make the rewrite work. In order to better understand my problem please check out the config file: ...
0
votes
0answers
214 views

Imagick fails to enable on Ubuntu with php-fpm and nginx

Alright, I've followed numerous guides trying to get Imagick PECL extension working on my machine but no matter what I do, phpinfo() or extension_loaded('imagick') doesn't detect it. If I run ...
2
votes
1answer
30 views

Why is my connection to php-fpm.sock being refused?

I've seen a bunch of questions about this problem on here but none of those had answers that helped me out. I kept getting a 502 error from nginx so I took a look at the access.log and saw I kept ...
2
votes
1answer
590 views

Installing php-fpm apache 2.4.6 on Centos 7

I am trying to use php-fpm as I have heard it can increase performance on my webserver, and it appears to be working.. but it doesn't look like it has speeded anything up. I ran through the following ...
0
votes
0answers
39 views

EC2 Nginx PHP-FPM Debian Unusual Monitoring graph

I am currently administering a stack of servers composed of a big MySQL DB (~500gb dataset). That is fead and read by http rest api servers on nginx with php fpm. The all lot of it is hosted on EC2 ...
0
votes
1answer
32 views

Good optimization for Mysql [duplicate]

i have 24gb RAM and 4 core LEMP server for run one application with Websocket PHP/Mysql but the problem is cpu going over 10-18% for just one user I dont know if server can crash with many users ...