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

Securely configuring nginx for php

I want to use nginx for both Symfony2 sites and other software like phpMyAdmin. I've read the nginx docs on setting up Symfony2 and came across this issue: ...
-1
votes
1answer
88 views

File Permission on /var/www/html [closed]

I changed the file permission. Now I am not able to access the website. nginx + php-fpm previously, chown -R user1:user1 /var/www/site.com I read in internet, and then i changed the file ...
0
votes
1answer
617 views

php-fpm + persistent sockets = 502 bad gateway

Put on your reading glasses - this will be a long-ish one. First, what I'm doing. I'm building a web-app interface for some particularly slow tcp devices. Opening a socket to them takes 200ms and an ...
0
votes
1answer
93 views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on ...
0
votes
2answers
442 views

Can't communicate with nginx from Vagrant host machine

I am using Ansible to compile and configure Nginx inside a Vagrant box. If I run curl http://localhost/ from inside the box I get the expected response (phpinfo()). If I access the URL ...
1
vote
0answers
59 views

nginx - php5-fpm - woocommerce => settings dont save - only after restart of php5-fpm

We are unable to save settings in woocommerce when php5-fpm is running for more then 12 hours. Sometimes the changes are reflected in the DB but then don't show in the backend, other times the ...
1
vote
2answers
72 views

Standalone / separate server as PHP processor for other nodes

From what I've seen in various docs and example configurations, you could have PHP-FPM set up on a different server/hardware, separate from your webserver (nginx in my case). While most examples list ...
1
vote
2answers
247 views

Having trouble increasing WordPress memory limit on nginx server

I am trying to increase the memory limit on my nginx php-fpm server for wordpress. Specifically the Wordpress plugin WooCommerce needs more available memory. I've set the following in ...
3
votes
2answers
260 views

How To Use User Directories With Nginx With Authentication

I am using Debian based host and using Nginx and PHP-FPM, I wants to enable user directories in nginx and wants multiuser support with basic authentication also. That means when Alex open ...
2
votes
3answers
184 views

Caching PHP pages, Varnish, nginx, other?

I have a web application running on a low end box (1gb RAM), serving a mixture of static and dynamic (php) pages. These PHP pages are querying a MYSQL database which does not change often at all - ...
0
votes
2answers
128 views

Nginx Maintenance Mode (503) in Subdirectory with PHP-FPM

I'm using Nginx with PHP-FPM, and I want to restrict access to a subdirectory of PHP files on my site so that only traffic from my IP address is allowed. Here is what I have tried, assuming my IP is ...
0
votes
0answers
289 views

PHP-FPM / NGINX high CPU load after switch to Debian 7

I wanted to ask if someone can give me a hint how to identifiy a "high" CPU load problem with an PHP application. We are running our application with PHP-FPM PHP 5.3.27-1~dotdeb.0 with Suhosin-Patch ...
1
vote
1answer
174 views

After Enabling User Directories On Lighttpd I Got Failed After Restart Lighttpd Server

I am using Debian 7 64 as host, And i installed Lighttpd and PHP-FPM with mysql support, After fresh installation of lighttpd and PHP-FPM, I tried to enable user directories and i run following ...
0
votes
1answer
197 views

how to get rid of xdebug cannot be loaded error

How do I get rid off this error when I run php-fpm In my phpinfo, xdebug is mentioned, so why do I get this error Failed loading xdebug.so: dlopen(xdebug.so, 9): image not found I have php54 ...
1
vote
0answers
69 views

PHP file upload failure for large files

Using a simple php script, when I try to upload files larger than 1MB it fails by giving this undescriptive error: General upload failure. Nginx error log does not show any evidence. I have ...
0
votes
1answer
367 views

centos 6.4 php-fpm install [duplicate]

I've bought a VPS from a hosting provider and I want to set it up. The server is a CentOS-6.4 and the provider installed WHM on it, so it has apache installed as well. I have 3 IPs available and I ...
1
vote
3answers
265 views

ELB, nginx, and multiple HTTPS applications

Let's say I have 3 different applications that all do HTTPS. Not all of them are high traffic so I run all 3 on the same "pool" of 3 EC2 instances. domain1.com/domain2.com/domain3.com all have their ...
0
votes
1answer
214 views

NGINX and PHP-FPM is downloading index.php instead of processing it

php-fpm is running: # /etc/init.d/php5-fpm status php5-fpm is running php-fpm is listening: # netstat -an | grep :9000 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN ...
0
votes
2answers
274 views

Apache 2.4 + PHP-FPM + mod_fastcgi (Problems setting up PHP-FPM)

I have been trying to get PHP-FPM to work with Apache 2.4, but mod_fastcgi does not work with 2.4. Is there any solution to this problem? I want to run it using an UNIX socket, but I cannot find any ...
0
votes
3answers
96 views

Nginx FastCGI on subdirectories

I'm trying to make Nginx proxy multiple web applications (among others, Tiny Tiny RSS and phpPgAdmin) onto different subdirectories under the same domain. For example, TT RSS is under ...
0
votes
0answers
97 views

Apache php-fpm + mod_fastcgi FD_SETSIZE error ubuntu 12.04

So i have an apache configured with mad_fastcgi ( i need FastCGIExternalServer ) I am running ubuntu 12.04 The problem is when i add mores vhosts i get this error from mod_fastcgi [Tue Sep 17 ...
0
votes
1answer
462 views

413: Request Entity Too Large (client_max_body_size is set)

I'm really not sure where else to look for the answer. Every single guide or question online says to check client_max_body_size and that solves it. For me however, I'm trying to do a large PUT ...
1
vote
1answer
85 views

Index file redirects in nginx

Scenario I have a website with the following structure: /index.html /about/index.html /contact/index.php /contact/send_email.php I would have liked to make the URL's cleaner, so I would be the ...
0
votes
0answers
24 views

PHP 5.4 FPM auto failed without error message

I have read this: php5-fpm fails to start and leaves no log message but still have issue. My php-config is: http://goo.gl/KdBrZ9 This is my php-fpm configuration: http://goo.gl/TeFqM2 I tested the ...
1
vote
3answers
93 views

How can I re-use PHP configuration directives in multiple Nginx server blocks?

So I have Nginx & php-fpm serving multiple sites on different domains. The configuration file gets very large due to the repetition of location ~ \.php$ { } blocks in each server { } block: ...
0
votes
2answers
335 views

How can i find out why my php5-fpm failed to start?

i get 504 gateway timeout when i try to reach my server a small check didn't find any logs on php5-fpm logs, but just to make sure, i tried to restart it. when i'm trying to restart it: sudo service ...
1
vote
3answers
488 views

PHP5-FPM /var/run/php5-fpm/ directory not found

Today I rebooted my server and PHP5-FPM failed the start due to /var/run/php5-fpm/ not being found. The /var/run/ is cleared on reboot and most services recreate their /var/run/ directories on ...
1
vote
1answer
3k views

FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream

I know this isn't a unique question, but perhaps the manifesting situation is unique. Answers found elsewhere don't match what I believe are my circumstances. I have a box hosting a few sites and, ...
0
votes
0answers
283 views

One unix socket for all php-fpm pools

I want to set only one listening unix socket for all php-fpm pools, but fpm requires them to be deferent. Production server has 2 gb ram and i noticed that it started to be not enough, adding more ...
1
vote
1answer
441 views

Apache 2.4: mod_php vs php-fpm performance

There are plenty of old benchmarks on Apache mod_php vs nginx with php-fpm However, with version 2.4, Apache can use php-fpm. Are there any sensible benchmarks comparing mod_php with php-fpm (both ...
0
votes
2answers
86 views

I am unable to execute a PHP file via NGiNX

Here is the config I am calling from the browser: location ~ ^/getfileinfo/(.*)$ { proxy_pass http://127.0.0.1/editionspanda_conn/$1; } Here is my config that calls the PHP file: ...
0
votes
3answers
1k views

How to enable OPcache in Debian?

Just installed php5-fpm. All sources say that apc module has been replaced with OPcache and it's compiled by default but not enabled. How can I enable this module. I can not find opcache.so file on ...
0
votes
1answer
163 views

max #process for nginx sync to php-fpm

Apart from memory and cpu limitations, I'd like to keep in mind another number for the nginx and php-fpm setup. If there is process.max set in /etc/php5/fpm/php-fpm.conf, the max number of php ...
0
votes
1answer
330 views

Running php-fpm with httpd 2.4.4 in CentOS 6.4

I upgraded to httpd 2.4.4 from the httpd 2.2 that shipped with CentOS/RHEL 6.4. I'm running into an error trying to serve Roundcube mail using php-fpm. We tried a number of solutions on #httpd at ...
0
votes
0answers
97 views

Nginx 500 Internal Error Joomla

I've just moved a joomla website over to a nginx server with php-fpm from a plesk(apache) server. I have checked the permissions and the configuration.php is correct however I cant access any of the ...
1
vote
1answer
194 views

NGINX / PHP-FPM extremely slow when accessed via https/SSL

Starting around a week ago I began noticing terrible performance from my webapp. My application is served on an Amazon EC2 m1.large instance. Static files of only 4-5kb were often taking in excess ...
-1
votes
1answer
120 views

php script terminated after 30 seconds with internal server error [closed]

after changing the hosting provider (which at this point has no idea what is going on or the intention / interest to solve the problem it seems), we ran into an issue, where every php script ends ...
0
votes
2answers
827 views

php-fpm: hundreds of seconds in the log

I have nginx+php-fpm web server So I've noticed in php5-fpm.log many strange lines: [03-Sep-2013 09:25:23] NOTICE: [pool www] child 23999 exited with code 0 after 321.832329 seconds from start ...
1
vote
2answers
107 views

PHP Gateway Timeout

I need to make PHP execution longer, and whatever else might be a problem. I thought I'd already done so but I'm still getting gateway timeouts from my recent wordpress install. The php-fpm pool has ...
0
votes
2answers
254 views

I'm getting a 403 Forbidding error with phpmyadmin

I'm running ngnix and php5-fpm and I'm on Ubuntu 13.04 server { server_name website.com; access_log /srv/www/website.com/logs/access.log; error_log /srv/www/website.com/logs/error.log; root ...
0
votes
0answers
58 views

Only few stats are showing up in PHP-FPM status page?

Here is the content of usr/bin/fpm-status.sh SOCKET=/var/run/php-fpm/php-fpm.socket CGI2FCGI=/usr/bin/cgi-fcgi # Sets FCGI request environment variables. export SCRIPT_NAME=/fpm-status export ...
0
votes
1answer
143 views

which php-fpm, nginx or related config variable effects whether source file changes are checked by the server?

i am using nginx with php-fpm (on centos) and a while ago i found a variable in one of the various config files that determines whether the server checks for the existence and/or change status of each ...
0
votes
1answer
127 views

Odd permissions issue with php-fpm, session_start failed on some but works on others

Ok, I have php-fpm/apache/apc installed on ubuntu 12.04 with a website running a php shopping cart. I am getting flooded with perrmissions errors like "Failed to write session data (files). Please ...
3
votes
1answer
557 views

Running Moodle with nginx in userdir (slash arguments)

I am moving Moodle (moodle.org) from an Apache host to a Ubuntu 12.04 LTS host running Nginx. The way the host is set up means that it will running quite a few domains where every domain (or other ...
0
votes
3answers
705 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 ...
2
votes
1answer
334 views

PHP-FPM not working as global PHP handler on Apache, CentOS 6.4

I'm trying to switch PHP handler on my server from mod_php to PHP-FPM. But something with my setup is worng. When I'm trying to open server.com/info.php, it's being opened as standard text showing ...
0
votes
1answer
93 views

How To Solve WP-DBManager Permission issue?

I've installed WordPress on a LEMP stack which is powered by CentOS 6.4. I installed WP-DBManager plugin today and it's showing an error which is mentioned below: Your backup folder MIGHT be visible ...
0
votes
1answer
134 views

What is the correct way to deny access to all files with nginx?

This is my configuration of the subdomain dev.mypage.com: server { listen 80; server_name dev.mypage.com; root /home/user/web/dev; index index.html index.htm ...
3
votes
2answers
155 views

PHP Upload File leads to blank page

I have the following code: <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input ...
0
votes
2answers
638 views

How To Install Xcache on CentOS 6 and Nginx?

I've bought a new VPS and I'm not a linux geek. I've already installed LEMP stack on CentOS 6. I just tried to install Xcache on my VPS. I've used the below command to install Xcache but it shows an ...