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
375 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
136 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
207 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
63 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
237 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
32 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
705 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
40 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 ...
1
vote
2answers
75 views

Build and install apache mod_proxy with custom PROXY_WORKER_MAX_NAME_SIZE

I am having a problem with a vhost (php-fpm/apache) config. It throws the error below: name ProxyPass worker name ...
1
vote
0answers
18 views

PHP-FPM stalls if one thread times out

I've noticed this for a while, PHP-FPM works perfectly until one thread stalls. For example if it takes too long to connect to another server or to process a database request all threads will stop ...
1
vote
0answers
63 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
415 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
119 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
230 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
84 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
146 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
48 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
37 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
139 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
97 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
91 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
73 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
90 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
485 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
94 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
166 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
237 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
183 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
318 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
385 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
292 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
82 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
57 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
155 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
69 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
234 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
263 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
112 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
330 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
542 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
267 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
129 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
141 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
107 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 ...