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

logrotate causes php5-fpm downtime

I've noticed that one of our servers starts returning errors just after logrotate runs, i.e. in nginx error log I can see: [error] 8501#0: *118126869 recv() failed (104: Connection reset by ...
1
vote
3answers
333 views

Apache: “File Not Found” after setting up php-fpm chroot

I'm struggling with the final step in implementing a chroot on php-fpm with Apache 2.4 running on CentOS 7. I've successfully setup and tested the php-fpm connection without the chroot. But as soon ...
1
vote
1answer
106 views

chroot php-fpm process to user's home

I'm in the process of moving each of my websites that are on a single server from a single PHP instance (whereby all of the files in all websites were owned by apache, and just the default php library ...
0
votes
0answers
37 views

Nginx SSL / HTTPS issue

I have had an issue regarding SSL + nginx Here is my actual config: - server1 is the front server, used as a proxy server2 is the big server, contains 2 VM where different apps are stored I have ...
1
vote
1answer
194 views

PHP Apache - Handle 1000 simultaneous request

Question moved from Stackoverflow I have a PHP script which handles request from client. I should be in a situation to handle 1000 concurrent requests (using apache benchmark). When I presently run ...
0
votes
1answer
77 views

Joomla “pretty urls” with nginx allow index.php/pretty/url as well as index.phppretty/url (notice the absence of slash)

I am trying to install my first LEMP stack and, after a lot of hours and reading, it's working pretty well (Damn, the www-data group write permissions issue was a tough one). Anyway, my Joomla site ...
0
votes
0answers
58 views

Cannot log into SilverStripe unless I delete the PHPSESSID cookie key

We have a problem of not being able to log into SilverStripe. When we try, we are returned to the log-in page. We have found that if we delete the PHPSESSID key/value pair from the browser's cookie ...
3
votes
1answer
131 views

PHP OPcache is resetting cache automatically

I started using the built-in PHP OPcache of PHP 5.6 and am facing a problem now. I set it up to use up to 1 GB of RAM, which is highly enough for my websites but it never get get it to use the full 1 ...
0
votes
0answers
37 views

php-fpm/nginx Many Continuously Requests

I'm using nginx/1.7.7 and here is config: user nginx; worker_processes auto; worker_rlimit_nofile 300000; events { multi_accept on; worker_connections 300000; use epoll; } http { ...
0
votes
0answers
36 views

Nginx: Serve PHP files from defined location only

I have an AngularJS app in /home/app/front and a PHP backend in /home/app/back. Now I would like to serve static files from / and PHP from /api/v1/ I tried the following config with no success. Nginx ...
0
votes
2answers
123 views

Can't send mail via php with msmtp

I want the server able to send mail via gmail smtp. The installation of msmtp was successful. I able to send using msmtp via the command line. However, when I try to send via php, it got me this ...
0
votes
0answers
91 views

php5-fpm crashes VM in nginx

I have been having ongoing 504 errors (503s). It has gotten to the point where it is so bad everytime someone trys an update in wordpress they get a 504. When troubleshooting I tried to adjust a ...
1
vote
0answers
21 views

php5-fpm connection timeout/connection refused

We have a webpage with ~20000 pageviews/day. This page usually uses ~15-20 php5-fpm children, but sometimes it reaches the maximum number of children and the site will be unavailable about ~15 mins. ...
1
vote
0answers
83 views

php-fpm pool processes taking 250MB each

My centos 6.7 server has only my php and mysql based low-traffic websites (total around 3000 page views per day for all websites) using nginx web server and virtualmin (no wordpress or external ...
0
votes
1answer
69 views

setfacl issue on subdirs created by server

I'm facing issues on inheriting the parent permissions for the folders created by PHP script which is executed by the server. I've created the deployer user, added to www-data group and set the ...
0
votes
0answers
79 views

nginx + php-fpm high load - Warning pool www seems to be busy

I'm getting this messages: [26-Oct-2015 21:45:07] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 97 idle, and ...
0
votes
1answer
398 views

Nginx with php-fpm session not working

My php session is to: session.save_path = /var/lib/php/session If i make a simple script to test like: session_start(); $_SESSION['hi'] = 1; var_dump($_SESSION); Well the session is not ...
0
votes
1answer
87 views

Unexpected Redirect in Nginx and php5-fpm

Not too experienced with web hosting, but I wanted to set up a wordpress site, but was having issues with an unexpected redirect, so I purged my entire nginx configuration, but still getting the ...
0
votes
2answers
151 views

How to block access to a folder with php files in it for everyone {deny:all;} on an nginx server BUT allow ajax calls to access files in that folder?

I have my header, footer, and other php files which process ajax requests in the /include/ folder. For a static website, is used to set the nginx default file to location ^~ /include/ { deny all; ...
1
vote
1answer
208 views

Backend fetch failed - varnish wont fetch drupal backend

I run a drupal 7 application(3backends) and i have 3 varnish servers continuously denying to fetch backend. I have read many similar error here but still cant solve my problem, throwing 503 varnish ...
0
votes
1answer
174 views

Getting 502 Bad Gateway, php-fpm takes 100% cpu

Okay, last night, around 2am on one of my servers the cpu usages went up to 100%. When I checked in this morning, I saw 5 php-fpm processes taking up around 100% cpu together. I've rebooted the ...
0
votes
1answer
307 views

HHVM fallback to PHP-FPM

I am running a PHP application on nginx with HHVM as main and PHP-FPM as backup This is my config of nginx regarding the php processing location ~ \.(hh|php)$ { fastcgi_intercept_errors on; ...
3
votes
1answer
346 views

Preventing PHP-FPM from crashing under light load

I'm getting a DoS attack on a wordpress site that I host. 173.192.109.118 - - [30/Sep/2015:22:31:36 +0000] "POST /xmlrpc.php HTTP/1.0" 499 0 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" ...
0
votes
2answers
246 views

How to see what php scripts are running with top or ps aux

Is there a command that I can run that would expose what scripting is showing a php process in top or ps aux
0
votes
0answers
81 views

Nginx server degrades over the course of a day

I am experiencing issues daily with my server slowing down. I believe that it is an issue with nginx or php-fpm giving up at some point and not gracefully recovering. I will include any information ...
1
vote
0answers
54 views

nginx,php-fpm error while with apache no errors

I have a opencart application deployed with nginx,fastcgi. Im using RDS as Mysql server. Lately,I have been having this errors in my log and I ran load test with siege for 400 concurrent users.I'm ...
1
vote
0answers
40 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: ...
1
vote
1answer
141 views

php/php-fpm can't find php.ini

I'm having an issue where php and php-fpm can't find php.ini. I installed 5.6.13 from source. The question PHP doesn't load php.ini is very similar but the solutions there haven't helped me. ...
-1
votes
2answers
2k views

Increasing FcgidMaxProcesses does not help to solve “mod_fcgid: can't apply process slot” error

I have a dedicated apache server with high resources. RAM - 64GB Cores - 20 with CentOS 6.7 x64 and Image - FCGI statistics with phpinfo I run Magento application with MySQL as database ...
0
votes
1answer
61 views

File not foung - Nginx/FPM - Squirrelmail

First off, thanks in advance for reading/helping. I have an Nginx server which I'm trying to get to pull squirrelmail from /usr/share/squirrelmail. The squirrelmail folder is at ...
2
votes
1answer
210 views

nginx + php-fpm: upstream timeout

Setup: I have a virtual box (vagrant) running nginx + php-fpm inside. I have xdebug module loaded. Versions: OS: uname -a Linux vagrant-ubuntu-vivid-64 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 ...
0
votes
1answer
231 views

phpmyadmin fails to load “PHP message: PHP Fatal error: Class 'PMA_Message' not found in /usr/share/phpMyAdmin/libraries/Message.class.php”

After upgrading some of the php libraries on our server phpmyadmin failed to load. I see the following error on my web browser when trying to access browser phpMyAdmin - Error Cannot start session ...
0
votes
1answer
104 views

PHP-FPM unusualy lot of instances spawning

Since a few days our webserver is having some high load pikes around every hours. The webserver is a dedicated server with 32gb ram and 4 core. It is running a heavy web app based on drupal with a ...
0
votes
1answer
283 views

Apache 2.4 virtualhost_alias with php5-fpm and proxy_fcgi

After moving my server from mod_php to mod_fastcgi and php5-fpm, I've found that everything works, except my wildcard virtualhost. My wildcard virtualhost works as such: *.dev.myserver.com ...
0
votes
0answers
485 views

php open_basedir not working as expected on synology nas

I'm trying to install gitlist on my synology NAS (DSM 5.2). I downloaded and configured gitlist in config.ini and pointed it to my repositories folder (/var/services/homes/git/repo). But when I try ...
0
votes
1answer
231 views

Serve php-fpm via nginx for a specific path in URL defaulting to static content

I'm trying to run two websites on the same hostname where one serves static content (an AngularJS application) and the other one routes all requests to PHP (API written using Apigility) but only for a ...
0
votes
0answers
120 views

Occasional OpCache Error, Apache 2.4 MPM Worker + PHP_FPM + PHP 5.4 undefined symbol: compiler_globals

We are receiving the following errors randomly on our server running Apache 2.4 MPM Worker + PHP_FPM + PHP 5.4 Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: ...
0
votes
3answers
130 views

info.php file not found with nginx and php on Mac

I have tried to put php file info.php inside /usr/local/www/nginx folder. For url http://test.com/info.php, it's giving me the error 404 - Not found. I am able to access index.html file in url ...
0
votes
1answer
101 views

PHP5-FPM Core Dumping due to some weird Zend error

I am getting an extremely weird core dump, which refers back to "Not Having Zend" even though zend is installed and working properly. This started showing up today after I did an apt-get upgrade, and ...
0
votes
0answers
18 views

Nginx php5-fpm and Server interaction

I am running an Nginx web server with php5-fpm and a cms on a Debian and I'm not much experienced with web. I want to run cgi scripts on it. For example, I want to have a shut.cgi and when I type to ...
0
votes
1answer
110 views

PHP exceptions cause nginx to leak virtualhosts into each-other

I have multiple nginx virtualhosts set up on my server. tershronalds.com is running vanilla wordpress 4.3, and staging.ninjawars.net is running a custom php codebase. Both are relying on php5-fpm. ...
0
votes
1answer
170 views

How can I get apache to only pass through to fastcgi on .php files?

We're running a different version of PHP for one of the sites, so we've configured fastcgi. But requests to any files, even static css and js is being passed through. How can we limit it to php only? ...
0
votes
0answers
67 views

PHP Cannot Write to Directory the Process User Owns (Fedora LEMP)

I am having a permission issue with PHP running on a Fedora 22 LEMP install. PHP cannot write to a directory owned by user 'nginx' in the group 'nginx' with permissions of '744'. The PHP FPM socket ...
1
vote
1answer
1k views

How can I fix recurring PHP 503 Errors on my Apache-mod_proxy_fcgi-PHP-FPM Server?

i'm having trouble with my php-fpm setup. Maybe you guys can point me in the right direction. First off, everything is working fine. But every now and then, I'll get 503 Errors. Those errors are gone ...
1
vote
0answers
169 views

auto restart php-fpm on segfault

I want restart php-fpm after segfaults. I run php-fpm on ubuntu 14.04 trusty. It uses upstart for checking services. I try to set automatic restart with respawn options, but after SIGSEGV php-fpm did ...
0
votes
2answers
859 views

Php-fpm status page is not displayed

I've try to get php-fpm status page. When i open /status page in a web browser or directly to fcgi - it says File not found. Could you help - how to fix this. # grep -ER "status|ping" /etc/php5/* | ...
0
votes
0answers
100 views

Package libapache2-mod-fastcgi is not available when trying to install FPM on Debian 7.8

I'm using Vagrant with Debian 7.8 and wanted to clone our production server. Our production server has php-fpm installed, however, I'm not able to install it. When trying to install my packages for ...
2
votes
1answer
394 views

Multiple static files directories, single PHP FPM server

I have two directories which I need to serve static assets out of: /srv/web: Static assets which include images, JavaScript, HTML, etc. /srv/php: Dynamic PHP scripts alongside some static assets. ...
2
votes
1answer
599 views

Domain redirects to wrong site in nginx, multiple sites in config files

I have 2 websites setup on nginx, and the correct one should load depending on which domain is accessed. For example: website1.com website2.com However, when accessing either of these domains, they ...
0
votes
0answers
221 views

Suspicious SELinux Audit Log Entries PHP-FPM Write Denied - How to investigate?

I found a few /var/log/audit/audit.log entries which have me a little bit concerned. SEAlert explains them as such: SELinux is preventing /usr/sbin/php-fpm from write access on the directory ...