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
1answer
1k views

Nginx + PHP-FPM on Centos 6.5 gives me 502 Bad Gateway (fpm error: unable to read what child say: Bad file descriptor)

I am setting up a standard LEMP stack. My current setup is giving me the following error: 502 Bad Gateway This is what is currently installed on my server: Here's the configurations I've ...
0
votes
1answer
1k views

NGINX connect() to unix:/var/run/php-fpm/vhost.sock failed

I use Centos 6.5 (64bit) with Nginx, PHP-FPM. Nginx with fastcgi connect to PHP-FPM using unix domain socket. When I place the socket in a directory with proper permission, it's ok. However when I ...
-2
votes
2answers
122 views

“File not found.” for clean URLS [closed]

I've installed the nginx + php-fpm + mysql stack in my Mac using homebrew. MacOsX: 10.9.2 Nginx Version: 1.6.1 Document Root: /Users/raj/Sites/ Project Dir: /Users/raj/Sites/projects/newproject Url: ...
-1
votes
0answers
29 views

How can I solve php5-fpm WARNING

I'm seeing the following in my php5-fpm.log [20-Jun-2014 16:25:30] WARNING: [pool username] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, ...
2
votes
1answer
64 views

Is the server still vulnerable to attack if we don't turn off cgi.fix_pathinfo?

The /etc/nginx/sites-available/default file that comes with nginx installation has the following content: # You may add here your # server { # ... # } # statements for each of your virtual hosts to ...
0
votes
0answers
20 views

ps wchan column kernel functions

customerI have a situation were php-fpm stops processing requests, and when I do a ps there are over 200 php-fpm processes in a sig_something_wait. What I am looking for is good resource that lists ...
0
votes
0answers
28 views

How to set up Apache with PHP-FPM and Indexes

I have an apache2 set up with php-fpm serving php files. However because the DirectoryIndex contains an index.php and php-fpm is enabled with ProxyPass: ProxyPassMatch ^/(.*\.php(/.*)?)$ whenever ...
0
votes
0answers
24 views

APCu Fragmented sectors unrecoverable

I currently have APCu (v4.0.6) running with nginx + php-fpm (v5.5.16) and it's creating a scenario where the fragmented area keeps on growing and is not naturally recovered by APCu. Eventually, the ...
0
votes
3answers
46 views

Nginx - Work with multiple codeigniter installation

I have a Nginx server (1.6), with PHP-FPM on my local server. I have multiple webapps in my "/var/www/" folder, like site01, site02... My applications use CodeIgniter. I want to have ...
1
vote
1answer
124 views

Apache 2.4/PHP-FPM ProxyPassMatch and access restriction

I've got Apache/PHP setup exactly like this: https://wiki.apache.org/httpd/PHP-FPM It includes the ProxyPassMatch rule as mentioned: ProxyPassMatch ^/(.*\.php)$ ...
-1
votes
4answers
1k views

How To Reduce php-fpm RAM Usage in CentOS 6.4?

I've installed LEMP stack on my server. My server have 1GB of RAM with no load. I've installed php-fpm and it looks like it's using most of the RAM of my server. I've used the below command to get ...
0
votes
1answer
38 views

Server is not responding when single connection is blocked

I'm not sure how to properly specify this problem, I'm not really a server expert. I will be glad to provide additional data on demand. I have a PHP web-application running on Ubuntu Server with ...
0
votes
1answer
88 views

Nothing is written in php5-fpm.log

I have two servers which is Ubuntu 12.04 and Ubuntu 14.04. When I use Ubuntu 14.04 in my new server and enabled the php-fpm log file found under /etc/php5/fpm/php-fpm.conf that reads as follows: ...
0
votes
1answer
35 views

nginx php file being downloaded in second identical case

server { listen 80; server_name example.com; root /srv/www/example.com; access_log /srv/www/example.com/logs/access.log; error_log /srv/www/example.com/logs/error.log; ...
1
vote
0answers
50 views

Apache + Php-FPM + APC : mode_deflate not compressing HTML output

I have prepared a server to run a Magento instance with: Apache + Php-FPM + APC The problem I have is that Apache is not compressing the HTML output from the Magento PHP scripts. In my .htaccess I ...
0
votes
0answers
23 views

Huge request duration value for a particular php script

We are facing issues with a php-fpm server that spawns too many children. This morning, I set up php-fpm's status page, and got an interesting piece of information : among all the scripts that are ...
0
votes
2answers
57 views

Php runs on server, but not command line: “libssl.so.10: no version information available”

php is running on my server, though I'm unable to get it to run command line. I'm running this file: <?php echo "done"; ?> using this command: php test.php When I do, I get this error: ...
0
votes
0answers
36 views

No Logged in php5-fpm.log File

I'm using ubuntu 14.04 and by default, php5-fpm.log is enabled under /etc/php5/fpm/php-fpm.conf. But I don't see any logged specially warnings like the following: WARNING: [pool web8] child 76743, ...
0
votes
2answers
780 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: ...
0
votes
1answer
61 views

Apache 2.2(mod_event) + php-fpm + apc + fastcgi Max Clients Reached

I'm currently running apache2.2 with mod_event, php-fpm and apc on Debian Wheezy. I've hosting 3 normal websites and 1 really shitty website, which has really bad code and needs sometimes 2 minutes ...
0
votes
1answer
427 views

Why Zend Framework doesn't render layouts after migration?

I'm not sure if this question belongs here or StackOverflow... Some time ago I wrote a web app using Zend Framework and since then it ran flawlessly on a standard shared hosting (lampp stack). I ...
0
votes
0answers
41 views

LIVE Video Streaming with Nginx + PHP-FPM / Process Timeout

I have a live video streaming in my server using nginx + php. the php file reas a live streaming and it directly sends it to the client. I have only one problem. The problem is that i want each ...
0
votes
0answers
70 views

nGinx + PHP-FPM On Demand Processes

PHP Version PHP 5.5.16-1~dotdeb.1 (cli) (built: Aug 22 2014 14:18:50) Nginx Version nginx version: nginx/1.6.1 OS Version: Debian GNU/Linux 7 PHP-FPM Pool [www] user = www-data group = ...
1
vote
0answers
50 views

How does PHP5-FPM send errors to nginx?

I've been experimenting a bit with error logging in php-fpm and nginx since I couldn't find any good explanation on the web. Most guides said I should change catch_workers_output to yes if I want to ...
1
vote
0answers
56 views

Requests are never queued after pm.max_children with Nginx and PHP-FPM

As soon as a pool reached pm.max_children, Nginx starts timing out when trying to send new requests to PHP-FPM. "max listen queue" is always 0 in the php-status page. PHP-FPM 5.5.16 Nginx 1.6.1 ...
0
votes
0answers
22 views

Two identical VPS hosts with different ways of handling file names

I have CentOS 6.5 32 bit, 512 RAM, running Nginx, PHP-FPM, Mysql on two hosts. One for local dev, running inside a VirtualBox 4.3.12 and the other running online with digital ocean. Both of these ...
0
votes
0answers
60 views

Tunning nginx/php5-fpm : why low memory usage with 800 users?

I did optimize nginx with what I found on the internet My specs are 2 servers load balanced : Intel Xeon E5-1620v2 (4c/8t 3,7 GHz+/3,9 GHz+) 32 Go DDR3 ECC 1600MHz 3x 160Go SSD Intel DC S3500 SATA3 ...
0
votes
0answers
103 views

Enable Soap for PHP 5.5.x on CentOS 6.5

Unfortunately I have to support soap on my server for the Fedex webservice. I recompiled PHP enabling support and it works via CLI but not PHP-fpm. They both point to the same ini file and both show ...
0
votes
2answers
56 views

PHP-FPM and ProxyPass disables the possibility to use FilesMatch?

i'm using PHP-FPM and mod_proxy_fcgi for serving PHP files. The system is blazing fast and works flawlessly except i'm not able to use the FilesMatch directive in Apache. Well that makes sense because ...
1
vote
3answers
261 views

apache 2.4, mod_proxy_fcgi not honouring .htaccess, work around needed

I am using apache 2.4.7 with mod_proxy_fcgi for purpose of passing through php to php-fpm (this will be used for shared hosting environment). The htaccess works fine for non php files, but once it hit ...
0
votes
1answer
52 views

kohana 3.1 in subdirectory + ubuntu 14.04 + php-fpm + nginx 404 errors

i have an old kohana app that i'm trying to put on my VPS but can't seem to get it working. i've spent hours googling and looking at cached forum answers. i have tried them all and nothing seems to ...
0
votes
1answer
36 views

Cannot login to zabbix web portal

I've managed to install Zabbix22-server on CentOS 6.x along with php-fpm and nginx. Database is MariaDB on remote, DB user's permission is set to only allow my test machine to access. I can view the ...
2
votes
1answer
61 views

PHP Session Storage in Fault Tolerant Memcached Pool

I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session ...
8
votes
1answer
5k views

The strange case of Mr. Time To First Byte

I've got a webserver on a Linode 1024 VPS based on Ubuntu 11.10 Nginx 1.0.5 PHP 5.3.6 (with PHP-FPM, APC) Varnish 3.0.2 And a couple of blogs there based on WordPress 3.3.1. One of them is a ...
5
votes
1answer
2k views

PHP5-FPM does not create unix socket directory within /var/run

I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm. /etc/php5/fpm/pool.d/www.conf listen = /var/run/php5-fpm/$pool.sock The problem is that it will not automatically ...
1
vote
1answer
40 views

What are (if any) possible scenario whereby hacker can find multiple sites hosted in one VPS?

Let me clarify: Say that I have 10 sites hosted in one VPS host. And for some reason, one of these sites gets famous and a hacker wants to know where it is hosted, and how many other sites are hosted ...
1
vote
0answers
59 views

Nginx out of memory, not loading new vhosts?

I'm having an nginx running on debian. Nginx will reload every 2 minutes to fetch newly created vhosts. After a while new vhosts weren't loading anymore, but old vhosts kept on being served by nginx ...
30
votes
7answers
55k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
1
vote
1answer
34 views

How to avoid PHP errors during server reboot?

I found a PHP error in my server log that says: [02:09:27 UTC] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in ...
0
votes
2answers
152 views

Trying to find bottleneck… 60k onsite visitors

I know this will be hard, but I'm willing to try the Q&A route. I have a Wordpress site that currently has 60,000 visitors on the site at once. I'm using an EC2 m3.xlarge, php/php-fpm 5.5.10, ...
1
vote
1answer
64 views

Slow loading PHP script makes Cloudflare block connections

I use php-fpm and nginx, I am running a slow script but it's blocking all Cloudflare connections, most likely it's a php-fpm issue but I can't find anything via Google. If I run the php script ...
0
votes
1answer
154 views

Nginx error stating connection refused to PHP-FPM port

Newly create LEMP stack running PHP-FPM on Ubuntu 14.04 x64. Attempting to access some PHP in my webroot. Browser is showing 502 Bad Gateway and Nginx error log is showing the following (my IP and ...
0
votes
2answers
140 views

Setting up nginx(Built from source) with php5-fpm

So am new to nginx. On Ubuntu I installed nginx using "sudo apt-get install nginx" then installed php5-fpm sudo apt get install php5-fpm. I followed the steps at: ...
0
votes
3answers
374 views

phpmyadmin can't login on nginx Centos 6 Server

I've installed phpmyadmin on my ded server with Nginx and MariaDB under Centos 6.i can login into mariaDB cli with root user falwlessly but i can't login through phpmyadmin. it shows me first login ...
2
votes
2answers
94 views

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files ...
-2
votes
1answer
138 views

Blank Page while hosting Ampache (streaming service) with nginx and php-fpm [closed]

I have an nginx vhost miss configuration. Whenever I visit my hosted ampache url I get a blank page. No error is logged either on ampache log, nginx log or php-fpm log. Access is being logged on ...
2
votes
1answer
77 views

why is php-fpm running as nobody?

I recently installed php-fpm on my server (CENTOS 6.5 x86_64 standard, WHM 11.44.1 (build 7)) following the instructions here: ...
0
votes
0answers
60 views

Php-Fpm: status URL for all pools

I have an ISPConfig server serving php pages with FPM in ondemand mode. On another server with a single fpm pool I keep daemon monitored using the /status URL and work great. In ISPConfig case there ...
2
votes
2answers
115 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 ...
0
votes
1answer
28 views

Nginx does not have access to centos path

Sorry for the rather confusing title, I am trying to understand this error. I have a php file, inside a folder like site.com/src/app/index.php and this site.com folder is placed in /var/www/html/ in ...