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
392 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
390 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
150 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
1answer
348 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
119 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
197 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
129 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
832 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
243 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
413 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
162 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
42 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
112 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
409 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
144 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
500 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
39 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
80 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 ...
1
vote
0answers
115 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
620 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
256 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
386 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
88 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
45 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
221 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 ...
1
vote
1answer
428 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 ...
2
votes
1answer
331 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
252 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
160 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
261 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
23 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
138 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
40 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
23 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
109 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
554 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
238 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 ...
1
vote
0answers
660 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
49 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
419 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 ...
0
votes
1answer
705 views

Apache 2.4 Event MPM + php-fpm + php-opcache yields “Connection reset by peer” errors

I have a CentOS 7 server running Apache 2.4.6 with Event MPM and php-fpm version 5.6.10 (from REMI repo). Here's the relevant Apache config to send requests to php-fpm within the vhost (it's the only ...
-1
votes
1answer
60 views

After Rebooting mysite gives blank pages

Mysite is using Ngnix, I just resized my Server's RAM, after rebooting, every thing was normal, but mysite gives me blank white page, i didn't detect any "Error logs" server { listen 80; ...
0
votes
1answer
148 views

Limit PHP-FPM memory consumption

In my php5-fpm/php.ini I have: memory_limit = 512M However, after serving a few requests, ps uxa shows: root 1130 0.0 0.3 339892 8064 ? Ss 05:29 0:00 php-fpm: master process ...
0
votes
1answer
853 views

FastCGI: “comm with server aborted: read failed” only for one specific file

Related question: FastCGI and Apache 500 error intermittently The solution does not work for me. The problem: I have a Laravel 5.1 application (was in production on other servers ...
0
votes
0answers
84 views

No script name passed to php-fpm via nginx/FastCGI

I run a PHP 5.6 instance over php-fpm without a problem (unix sockets and nginx). Today I compiled PHP 7 and also started it as a second PHP instance. While requests get served fine with the PHP 5.6 ...
0
votes
1answer
294 views

Monit unable to restart php5-fpm

Monit is correctly detecting that php5-fpm is unavailable as seen in the logs. However, it does not seem to be able to restart the service. log: [EDT Jun 11 18:04:20] error : 'php5-fpm' failed, ...
0
votes
2answers
254 views

Does Linux, Apache HTTPD or PHP cache frequently / recently accessed files?

Let's say we have a simple index.php file that goes: <?php inclde('file1.php'); inclde('file2.php'); inclde('file3.php'); Presumably, this will ultimately result in three additional ...
-2
votes
2answers
1k views

PHP opcache. 100% hits, 100% used memory [closed]

My PHP OPcache hits 100% Memory Usage General info Zend OPcache 7.0.4-dev PHP 5.5.23-1+deb.sury.org~trusty+2 Server Software nginx/1.6.2 Here are my Cache Settings: zend_extension=opcache.so ...