Questions tagged [php-fpm]

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

PHP-FPM provides a number of useful features over the traditional FastCGI php implementation. It is implemented as a daemon that controls one or more PHP process 'pools' which can be independently configured. Main configuration options for each pool include:

  • Socket on which requests are received (either local or TCP)
  • Separate php.ini settings for specific application requirements
  • Dynamic process control. FPM can dynamically change the number of worker processes depending on pool load.
  • Uid/gid for the pool workers
  • In-flight configuration updates - a change to the pool configuration will be rolled out gracefully across all pool workers without losing connections.
2118 questions
0
votes
2 answers

nginx + php-fpm not writing php access log although there is configuration option

I am looking at an nginx server with php-fpm. I see the access.log directive inside the pool configuration /etc/php5/fpm/pool.d/www.conf ; The access log file ; Default: not set access.log = /var/log/$pool.php.access.log However the access log file…
anoopjohn
  • 201
  • 4
  • 5
0
votes
0 answers

NGINX + PHP-FPM uses access_log for 404 instead of error_log

I have nginx 1.4.6 on Ubuntu with php5-fpm 5.5.9 on Ubuntu. Nginx's config for the WebSite contains: ... fastcgi_intercept_errors on; access_log /var/log/nginx/dev-vm.domain.com-access.log; #error_log…
setevoy
  • 334
  • 2
  • 4
  • 15
0
votes
1 answer

Symfony, CentOS, NGINX, php-fpm cache error

I have been searching for two days on google and here and i tried every single solution out there to fix this issue but it seems to be that i am always missing something. I have CentOS 7 installed and running on AWS Server along with NGINX php-fpm…
Yamen Nassif
  • 119
  • 6
0
votes
1 answer

What does this error mean with 5d?

I have a web server with HAproxy for load balancing and two nginx+php-fpm. When I opened my site I saw this error. I know what does 504 error mean, but why there are 5d?
Gani Rakhmatov
  • 227
  • 3
  • 11
0
votes
1 answer

Nginx / FastCGI - Call PHP files in subdirectories

We have an issue with calling php files in subdirectories of domain. What's working without an issue: example.com/mod/eco/file.php but when our domain is placed with a virtual subdirectory it's not working like…
0
votes
0 answers

nginx rewrite or internal redirection cycle while internally redirecting to /index.html

I know this question has been posted many times, but even with the help of those answers, I can't seem to figure this out. I'm a freelance web developer and just started maintaining and administering an existing vBulletin forum site. The site has…
Kenny83
  • 103
  • 6
0
votes
0 answers

NGINX Performance

I have moved my website on a bundle NGINX+PHP-FPM. This all works good, but I have noticed one performance issue. It's delay when I'm asking file via HTTPS. For example: I created blank PHP file () and call it via HTTP and via HTTPS. In HTTPS case…
0
votes
3 answers

chmod 640 in wp-config.php with user:www-data gets white screen on WordPress

I have an Ubuntu 16.04.1 with Apache 2.4.23, PHP 7.1 RC3, FastCGI, PHP-FPM with separate pools for every site, MariaDB, PhpMyAdmin, Webmin and Nginx as a reverse proxy because I have to install Varnish and all my sites are SSL. I've also installed…
Karls
  • 33
  • 1
  • 7
0
votes
1 answer

Nginx/postgres not using all cores

I have an Nginx+Postgres server with 8 cpu cores. I noticed that under load CPU is used only up to ~60%. I looked at top and here is a screenshot: It turns out that only 5 processes are actually run in parallel. What could cause this capping? I…
Džuris
  • 145
  • 1
  • 9
0
votes
2 answers

What does "existence failed (20: Not a directory) while logging request" error log on Nginx mean?

At an webserver with Nginx and php-fpm and Roundcube I'm seeing entries like this: 2016/10/12 11:22:55 [error] 342342#0: *234242 testing "/some/path" existence failed (20: Not a directory) while logging request, client: xx.xx.xx.xx, server:…
frlan
  • 573
  • 1
  • 8
  • 27
0
votes
1 answer

SELinux "anon_hugepage" PHP-FPM Permission Error

Please explain the origin of the following error and why "anon_hugepage" is missing from my file listing. SELinux is preventing /usr/sbin/php-fpm from write access on the file /anon_hugepage (deleted). ***** Plugin restorecon (99.5 confidence)…
Ryan Prentiss
  • 291
  • 5
  • 11
0
votes
1 answer

Limit Wordpress login to certain ip-addresses on Nginx and PHP-FPM

I've seen a lot of bruce force attacks on Wordpress, so I want to limit access to wp-login.php. It's the latest Wordpress on a Ubuntu 16.04LTS Nginx server with PHP-FPM. I've tried the advice from the Wordpress Codex: location /wp-admin { allow …
Janghou
  • 475
  • 1
  • 4
  • 7
0
votes
1 answer

NGINX + PHP-FPM multidomain optimization

I am trying to optimize the parameters of PHP-FPM on a VPS with multiple domains. Each domain is configured with its own user/group, NGINX uses different PHP-FPM sockets. For each domain I have configured the right user/group. I found out that the…
flero
  • 21
  • 7
0
votes
1 answer

phpMyAdmin - blank page with no errors on Debian8, php7.0-fpm

phpMyAdmin does not display the login page on my server: OS: Debian 8.6 Jessie PHP: php7.0-fpm Webserver: Nginx 1.10.1 When I look at source code, it contains login form but for some reason all browsers (Firefox, Chrome, Opera) instead of login…
tfstfs
  • 1
  • 1
0
votes
1 answer

Cannot run Apache 2.4 with libapache2-mod-php5

I have a Vagrant Debian Wheezy running Apache 2.4.10 and Php 5.6.26 I need to install and run libapache2-mod-php5 to make Apache able to read php_value inside an .htaccess file. TL;DR the error is fired as soon as Apache restarts: $ apachectl…
ifthenelse
  • 113
  • 1
  • 2
  • 6