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
26 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
1answer
30 views

What functions are preferred to be disabled to increase webserver security?

I'm looking into securing my webserver additionally and thinking I could disable certain PHP functions to prevent potential issues. Could someone share some tips regarding this or guide me in right ...
2
votes
2answers
3k views

Mysterious error with php5-fpm

I'm having a very difficult case with latest php5-fpm (from debphp) and nginx 1.4.3 on Ubtuntu 12.04LTS. In short, I cannot start php5-fp at all, I keep getting this error in syslog: kernel: ...
1
vote
1answer
148 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 ...
1
vote
1answer
1k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
0
votes
1answer
984 views

Vagrant, nginx 404 - fastcgi sent in stderr unable to open primary script

Was googleing a lot of and didn't find solution for this. Have found few accepted answers here on stackoverflow, but they didn't helped me. I am using vagrant for development, or at least trying to ...
0
votes
0answers
30 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 ...
3
votes
6answers
17k views

How do I make Nginx redirect all requests for files which do not exist to a single php file?

I have the following nginx vhost config: server { listen 80 default_server; access_log /path/to/site/dir/logs/access.log; error_log /path/to/site/dir/logs/error.log; root ...
2
votes
2answers
4k views

403 Forbidden when trying to access a folder in document root of nginx

When I access index.php, it works fine. But on localhost/pset7, it gives a 403. Here is the permission log, -rw-r--r--. 1 root root 51 Jul 31 14:21 index.html -rw-r--r--. 1 root ...
8
votes
4answers
10k views

Increase PHP-FPM's max upload/post size

I'm running php5-fpm under Nginx on Ubuntu 14.04. I want to increase the max upload size. I have edited my /etc/php5/fpm/php.ini to have the following lines defined as below: upload_max_filesize = ...
0
votes
1answer
2k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = ...
8
votes
3answers
5k views

Is the PHP option 'cgi.fix_pathinfo' really dangerous with Nginx + PHP-FPM?

There has been a lot of talking about a security issue relative to the cgi.fix_pathinfo PHP option used with Nginx (usually PHP-FPM, fast CGI). As a result, the default nginx configuration file used ...
0
votes
3answers
22 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
1answer
34 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 ...
3
votes
4answers
5k views

Nginx not logging PHP errors

When accessing some PHP scripts on my website, I'm getting the dreaded 500 error message. I'd like to know what's wrong to fix it, but Nginx isn't logging any PHP errors in the log file I have ...
1
vote
1answer
37 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 ...
0
votes
2answers
39 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 ...
0
votes
0answers
16 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 ...
4
votes
1answer
3k views

PHP FPM keeps hanging

I have tried all sorts of options but every couple days (mostly every day) FPM stops serving pages and I get a 502 (from cherokee webserver) The logs are filled with the following: [15-Sep-2014 ...
2
votes
2answers
3k views

Optimize php-fpm and varnish for a powerfull server

My setup is: Intel® Core™ i7-2600 and RAM 16 GB DDR3 RAM varnish+nginx+php-fpm+apc for a not very heavy WordPress blog with W3 Total Cache and CDN My problem is that after 55 hits per second ...
6
votes
2answers
15k views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
0
votes
1answer
43 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 ...
0
votes
0answers
23 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 ...
1
vote
1answer
48 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 ...
1
vote
0answers
39 views

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

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
94 views

Apache ProxyPass worker name too long

I'm passing my php files to php5-fpm within my Apache .conf file however I'm receiving an error message when restarting the Apache server: ProxyPass worker name ...
1
vote
3answers
1k views

Creating Multiple Users on Single PHP-FPM Pool

Have PHP-FPM/FastCGI up and running on my cPanel/WHM server but I'd like have it allow for multiple users off of a single pool. Getting all vhosts to run off a single pool is simple by adding this to ...
1
vote
1answer
5k views

Apache and multiple PHP-FPM pools

I have two sites that I run from apache 2.2 vhosts with PHP-FPM 5.4 on Ubuntu 12.04. Until now I've been using a server-wide (stock) mod_fastcgi config, but now I want to split this into two FPM pools ...
0
votes
1answer
154 views

Errors when enabling zend_opcache on php-fpm with apache 2.4 proxy

I'm setting up a webserver to host several small sites (mostly wordpress) by putting together php-fpm 5.5.9 and apache 2.4.10 on ubuntu. After reading a good amount of tutorials and post, I decided ...
1
vote
2answers
243 views

Configure Centos7 Apache 2.4 php-fpm to run as user

I would like to configure a Centos 7 Apache 2.4 Linode to use php-fpm to execute php as the file owner. The docs for earlier Centos6 / Apache2.2 don't work and the configurations I have seen for ...
0
votes
1answer
138 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 ...
2
votes
2answers
1k views

jetty server executing php

I want to configure so that jetty runs PHP files, but have been unsuccessful so far. I have Jetty WTP tools installed in my Eclipse IDE. When I start up the Jetty server. I got the exception: ...
0
votes
0answers
168 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 ...
1
vote
4answers
1k views

Nginx or php-fpm error?

I found my vps nginx error log like this 2013/04/06 03:28:04 [alert] 8557#0: mmap(MAP_ANON|MAP_SHARED, 5242880000) failed (12: Cannot allocate memory) 2013/04/06 04:05:30 [alert] 10299#0: ...
0
votes
1answer
45 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 ...
3
votes
1answer
542 views

What is difference of PHP handler (CGI vs FastCGI vs Mod_PHP vs suPHP )? [closed]

I understand that there are four different PHP handlers out there (AFAIK). CGI (php-cgi) FastCGI (php-fpm) Mod_PHP suPHP I need to know the pros and cons of these handler and what environments ...
2
votes
2answers
1k views

Setup secure shared hosting (Apache, PHP, MySQL)

So I'm setting up a shared hosting with Apache, PHP, MySQL and the biggest question mark is how to do with PHP, since there is a million options out there how to configure it securely. The plan is: ...
1
vote
2answers
956 views

Is it possible to tell nginx over fastcgi to pass a Connection: close header through unaltered?

TL;DR: How can I tell nginx from my php-fpm backend to a) send a "Connection: close" header and b) to not buffer my response? I have a set up running php-fpm behind nginx. In general, this works very ...
0
votes
0answers
25 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 ...
1
vote
2answers
1k views

Nginx + php-fpm - recv() error

I get the follow error in the nginx log [error] 17734#0: *6643 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [cut], server: [cut], request: ...
1
vote
2answers
61 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 ...
11
votes
5answers
49k views

Nginx 1 FastCGI sent in stderr: “Primary script unknown”

My first time using Nginx, but I am more than familiar with Apache and Linux. I am using an existing project and when ever I am trying to see the index.php I get a 404 File not found. Here is the ...
0
votes
2answers
42 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
2answers
3k views

Nginx PHP-fpm permission

When i'm setting the user in nginx.conf to root root: user root root; then my website is working, but when i set it to nginx nginx i get error in the logs: connect() to ...
0
votes
1answer
3k views

php-fpm[2593] general protection - could someone explain?

Could somebody explain what this error means? What is ip, sp and what does the numbers stand for? If I grep -i "general protection ip" messages* I get below output. It is happening quite often and ...
0
votes
1answer
34 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
0answers
23 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
vote
1answer
763 views

Best way to set up permissions with nginx + php-fpm on shared hosting?

I'm running a shared hosting server with nginx and php-fpm on Debian. Everything works fine, php-fpm has separate pools for each users running as separate users and they each have their own socks. ...
1
vote
3answers
4k views

PHP FPM gives permission denied?

I read several entries on why PHP-FPM might give me permission denied but I can not solve it. The error logs read like: 2013/04/20 23:33:28 [crit] 15479#0: *6 open() "/var/lib/nginx/tmp/fastcgi ...
7
votes
6answers
10k views

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...