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
1answer
57 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
63 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
162 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
67 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
120 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
140 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
133 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
218 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; ...
2
votes
1answer
256 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
140 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
79 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
44 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
38 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
115 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. ...
0
votes
2answers
688 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
45 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
141 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
165 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
92 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
169 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
283 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
148 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
87 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
102 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
85 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
81 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
114 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
55 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
517 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
128 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
1answer
282 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
82 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
303 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
317 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
173 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 ...
0
votes
0answers
283 views

Can't change memory_limit on PHP 5.5.9 on Ubuntu 14.04

I'm running PHP on Nginx using fpm. The reported memory_limit is 128M and i cannot change it for the life of me. PHPInfo: Server API: FPM/FastCGI Config file: /etc/php5/fpm/php.ini Memory ...
0
votes
0answers
15 views

FastCGI sent in stderr: Unable to open primary script, Permission denied while reading response header from upstream [duplicate]

having some issues with 'Permission denied' or FastCGI sent in stderr. /etc/php-fpm.d/www.conf file listen = /tmp/php5-fpm.sock listen.allowed_clients = 127.0.0.1 ;listen.owner = nginx ...
0
votes
0answers
312 views

Random 502 errors only with phpMyAdmin throgh nginx/php-fpm, with php segfault

I'm using nginx and php-fpm on many servers. Some have php 5.4 with APC and others 5.5 or 5.6 with opcache. PhpMyAdmin on servers on 5.4 work without any problems. PhpMyAdmin on servers on 5.5 or 5.6 ...
0
votes
1answer
117 views

Why mail.log is not logging to file? [duplicate]

my server yesterday started sending thousands of spam emails. I blocked it adding default_transport=No transport to the postfix main.cf. But now of course I can't send legit emails as well. I have ...
0
votes
0answers
280 views

Nginx throws a 404 error when trying to access a CodeIgniter (PHP) controller

I'm trying to use CodeIgniter with Nginx. I'm on development so I'm running on localhost. This is my /etc/nginx/sites-avaiable/default file: # You may add here your # server { # ... # } # ...
0
votes
0answers
100 views

Dockerized nginx / php-fpm with custom ports: 500 error

I'm using an Nginx / php-fpm web app with custom ports in a Docker container (with the intention of running multiple containers with the same set-up, that I can access them using different port ...
0
votes
2answers
137 views

Nginx throws 502 intermittently on every page when using fastcgi_finish_request()

I recently inherited administration over 2 Nginx boxes in AWS and am very unfamiliar with how PHP-FPM works (and doens't work). I recently integrated Keen.IO for backend user logging, using: ...
0
votes
0answers
107 views

Yii2 subfolder configuration in Nginx

I would like to create configuration for such serverside folder structure: So I would like to have main site available at site.com/ and separate site available at site.com/subdirectory. I'm using ...
0
votes
1answer
515 views

Nginx Magento config not working, 404 on installation

This is my stack: Nginx 1.7, MariaDB 10, PHP 5.6 (FPM) and CentOS 7. I have used Centminmod for the installation of the above mentioned software. I created a vhost for the magento installation. ...
0
votes
1answer
208 views

Why does my server running nginx/php-fpm keep losing session capability without generating any errors?

I am managing a server that has a couple dozen websites on it and they have all been working fine until last week when it was noticed that one site had seemingly lost the ability to maintain session ...
1
vote
1answer
311 views

504 Gateway Time-out with PHP on nginx [duplicate]

I am trying to move a PHP Laravel application from my development computer running apache to a server running nginx. I have configured the database connection, and my Laravel app (mostly) responds ...
0
votes
0answers
16 views

How to setup cron on Ubuntu 14.04 with php5-fpm [duplicate]

I have php5-fpm installed on Ubuntu 14.04 and I would like to create a cronjob to execute a script every 5 minutes.. Using crontab -e I created the following: */5 * * * * /usr/sbin/php5-fpm ...
0
votes
0answers
120 views

503 error when trying to login joomla 3.3.1

I'm facing a strange issue on joomla and would need help to solve it : The frontoffice side is working fine but when trying to log in backoffice, I get a HTTP 503 Error : [Wed Jul 29 ...
0
votes
0answers
38 views

Extension works only once in PHP FPM

I have two PHP extensions from PECL that are not working well with my PHP FPM. Both gmagick and mailparse seem to work only once. When I call the script a second time I get errors about "Undefined ...