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
0answers
5 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 ...
0
votes
0answers
6 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
0answers
10 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
11 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
44 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
52 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
21 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
18 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
36 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
0answers
3 views

How to upgrade php-fpm on OSX Yosemite 10.10.04? [migrated]

Currently I have this on my machine Milans-MacBook-Pro:local vaske$ brew install php56 Warning: homebrew/php/php56-5.6.11_2 already installed Milans-MacBook-Pro:local vaske$ php -v PHP 5.6.11 ...
0
votes
1answer
43 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
55 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
24 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
53 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
26 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
68 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
48 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
63 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
15 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
18 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
21 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 ...
0
votes
0answers
27 views

Many php-fpm processes created and they do not go away

I have PHP (5.5) using Laravel framework on NGINX with PHP-FPM. Here is what I do. I have a script myscript.php <?php while(true) { @file_get_contents('http://myserver.com/api/data'); } ...
0
votes
1answer
59 views

PHP-FPM will not start in Docker: “shmget failed: invalid argument”

I am getting the following error when trying to start php-fpm56w in a Docker container running CentOS 6.6: [root@1b9ec42c577b conf]# service php-fpm start Starting php-fpm: [24-Jul-2015 19:37:53] ...
0
votes
0answers
46 views

intermittent php-fpm 'exit with code 1' issue

We have a number of RH EL6 boxes running apache 2.4 and php-fpm 5.5 (installed through Software collections) where a PHP application is intermittently failing with a "service unavailable" message ...
0
votes
1answer
63 views

After upgrade of NGINX and PHP-FPM, PHP stopped working and there is no error anywhere

PHP-FPM is running, NGINX is running. NGINX does read the socket for PHP-FPM. I stopped PHP-FPM and I got bad gateway error. However, nothing gets displayed. I have checked nginx/error.log and ...
0
votes
3answers
27 views

Convenient WordPress Web Directory Permissions?

I'm setting up a webserver for WordPress. WordPress requires it's stuff to be owned by www user or it has problems installing plugins and themes (asks for server FTP credentials, it's stupid, I ...
0
votes
0answers
24 views

Command with -sigusr1 and kill not restarting gracefully

I have a kill command in my /etc/logrotate.d/php-fpm file: /var/log/php-fpm-5.5.11/*log { missingok notifempty sharedscripts delaycompress postrotate /bin/kill -SIGUSR1 `cat ...
0
votes
0answers
35 views

Cannot recompile PHP on Mac OS X and enable PHP calendar

I compiled PHP 5.6.11. PHP-FPM to be more precise. It works find but I need to enable calendar. So I tried to to do: ./configure --enable-fpm --with-pdo-mysql --with-mcrypt --with-zlib ...
0
votes
2answers
50 views

Nginx. Config two sites on the same port

I'm trying to add a wikimedia site on my server, which already has another site (which doesn't use PHP) on it. I want to put it on a different folder like www.hostname.com/wiki but it would be ...
1
vote
0answers
67 views

Nginx and Apache setup with php-fpm issues. Random nginx bad gateway [closed]

I have inherited a server in which the previous administrator seemed to be using a combination of nginx and apache. I am not sure why the combination, other than someone thought nginx is being used ...
1
vote
1answer
73 views

Two separate PHP-FPM sites seem to be using the same code?

I have two websites with two codebases, yet when I change one codebase, I see the change in both. I have two checkouts of the same website. They are set up to use PHP-FPM through Apache2 with ...
0
votes
1answer
68 views

Get a blank page when view php-fpm staus on multiple pool config

I am trying to enable the nginx and php-fpm status page. I am able to get nginx status page working, but not the php-fpm. I have one site on the server, but two php-fpm pools. I have restarted nginx ...
0
votes
0answers
26 views

nginx php 5 and upload_max_files

Hi i am running up the walls i have nginx and a php-fpm Installation when i run Wordpress i get a 3MB Upload Limit in phpinfo() i find upload_max_filesize 3M At the Top i found Configuration ...
0
votes
2answers
52 views

max file size exceeded nginx php

I have NGINX server with FASTCGI php-fpm 127.0.0.1:9000 which php.ini is under /etc/php5/fpm/php.ini I increased upload_max_filesize and post_max_size in php.ini The Fastcgi params is like this ...
0
votes
1answer
82 views

php-fpm and Nginx dynamic environment variable

FPM configration stats that you can retrieve variables from your current environment. However, on ubuntu using Nginx and PHP-FPM, I can not find a way to retrieve the variable value from the ...
1
vote
1answer
63 views

php slowlog causing ptrace error in docker container

I have an AWS Linux host machine running a centos 7 docker container with 5.5.25 and php-fpm running inside it. Php is exposed outside of the docker container over port 9000 and is serving requests to ...
1
vote
2answers
88 views

PHP5-FPM pm.max_children affect RAM or CPU+RAM?

Recently inherited a Nginx+PHP5-FPM server, and I'm learning and trying to optimize PHP5-FPM settings. Server info: 4 CPUs (8 threads) 7.5 GiB RAM PHP5-FPM info: pm.max_children = 5 ...
0
votes
0answers
32 views

PHP5-FPM - Access Denied after Update

i updatet my PHP5 FPM to PHP 5.4.42-1~dotdeb+7.4. But after that i become now the error Message FastCGI sent in stderr: "Access to the script '/var/www/mysite/index.html' has been denied (see ...
-1
votes
1answer
95 views

502 errors on WordPress / nginx / php5-fpm

I've looked through lots of other Server Fault and Google results that all have talk about generally similar situations, but I can't quite find the insight that I'm looking for. I would appreciate any ...
0
votes
0answers
15 views

Login to apache website fails when using named host

Our issue seems to be when we log into a named sub-website in Firefox everything works as expected; There is nothing special about the login.php script it's simple enter name here, password there and ...
0
votes
1answer
48 views

Can't increase timeout on nginx with php-fpm

Our nginx refuses to increase the timeout for a request from the default of 60 seconds. I've already set the following parameters, but the server still gives me 504 after 60 seconds: ...
0
votes
1answer
22 views

PHP-FPM on Linux, SCHED_BATCH or SCHED_OTHER?

I have a Linux webserver (Ubuntu 12.04, kernel 3.2.0) running Magento with quite a number of PHP-FPM child processes. Since Magento is a heavy framework, I often see several child processes to baloon ...
0
votes
0answers
20 views

Is it safe to upgrade PHP5-FPM from a non-official repository

I am novice to Ubuntu... I have a production server running in Ubuntu 14.04 and I have to upgrade PHP5-FPM version to 5.5.24 from my current version.I cant find the latest version in Ubuntu official ...
2
votes
1answer
43 views

Nginx php-fpm, try_files and GET params

I'm having a problem getting nginx configuration to work. Seems like everything works fine but my php script does not receive GET parameters. The most relevant link I get on my issue is this one nginx ...
1
vote
1answer
186 views

502 errors on random (not all) pages

A few weeks ago I noticed in the Google Webmaster tools that a few of my URL's were returning 502's. One such URL is http://www.sau.com.au/forums/topic/437438-around-the-bay-wrap-up/ This URL ...
0
votes
0answers
71 views

A nginx, php-fpm, and mysql php app is very slow for no explainable reason — times out often

I have a setup of a load balancer, followed by a web server consisting of nginx, hhvm, and php-fpm. The app I speak of is using php-fpm, and all hhvm apps perform fine. When I access ...
0
votes
0answers
293 views

Getting recv() failed (104: Connection reset by peer)

The following issue happens only when i use Laravel's @include to include other blade templates into main layout: /etc/nginx/error.log 015/06/25 23:42:34 [error] 3374#0: *1 recv() failed ...
2
votes
1answer
31 views

PHP/FastCgi - Which is the threshold over which to use nginx instead of apache

I'm a PHP developer, I have always developed on a LAMP environment and it's all gone well 'til now. At the moment, I am developing a PHP web application, still on apache and without the use of any ...
0
votes
0answers
136 views

Can not connect with imap_open but openssl s_client works

So after 2 days of trying all the solutions I could find that seemed to apply, I am still scratching my head. There must be something I am missing. I am trying to connect to a postfix/dovecot mail ...