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
2answers
448 views

Php file are not parsed by fastcgi in nginx

I m new to nginx my server block is server { listen 25552; server_name *.example.com; root /usr/share/myPackage; rewrite ^/$ /index.php permanent; location ~ ...
0
votes
0answers
356 views

Joomla Extension Uninstall Causes 502 Bad Gateway

We have a VPS with some PHP websites hosted on our Ubuntu 12.04 LTS servers using NGINX. In a Joomla 3 site, when uninstalling an extension that errors out, the page shows an NGINX error page with a ...
0
votes
2answers
965 views

Nginx + php-fpm and multi-domain

I have 3 domain name, 1 server and 1 IPv4 and 1ipv6. I’ve set a record to my ipv4 (I doesn’t use IPv6 right now). My 3 sites use Wordpress. I have configured Nginx, and php-fpm for a domain. ...
1
vote
2answers
1k 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
0answers
99 views

Nginx + mod_security without a backend server

I want to start using mod_security for Nginx. However, I have read the official doc and something got my atention: ...
0
votes
1answer
89 views

Connection timing out on webserver?

My server is currently timing out when I try to view the site. I tried restarting nginx. I tried restarting php-fpm. I tried restarting mysql. No dice. I tried rebooting the box. Still no dice. ...
1
vote
0answers
74 views

How can I get openSSL to run on my web server with a PHP5-FPM chroot?

On my web server, I changed the chroot to only have access to the root of my website's home directory as opposed to the rest of the file system, for security purposes. However, I've noticed that since ...
1
vote
1answer
543 views

PHP-FPM service status `stop/waiting` but workers are running?

Starting php5-fpm appears to work, but checking the status immediately shows that it is not running: [root@server ~]# service php5-fpm start php5-fpm start/running, process 4516 [root@server ~]# ...
-1
votes
1answer
229 views

Server is using an excessive amount of I/O

It looks like an application specific issue and my server(Linode) is using an excessive amount of I/O. (config: Ubuntu 12.0.4+Nginx+MariaDB+PHP-FPM+APC+iONCube+igBinary) I'm trying to figure out ...
0
votes
0answers
64 views

nginx Returning 404 After Server Move (AWS)

Moved my site to a larger instance size at AWS which allocated me a new private IP and Public DNS value. The Public, elastic IP is the same. The site loads fine from Apached, but when enabling nginx ...
0
votes
1answer
98 views

Static Wordpress Multi-Site Rules From Apache to Nginx

I have been reading and trying things for 3 days, but I can't seem to get the right combination of rules to do what the Apache2 server did. The Apache2 rules are: RewriteRule ...
3
votes
1answer
763 views

restarting php5-fpm on ubuntu 14.04 with chef

I have this in my chef recipe: service 'php5-fpm' do supports :restart => true action [ :enable, :start ] end However my recipe now barfs in Ubuntu 14.04, as "/etc/init.d/php5-fpm restart" ...
0
votes
2answers
1k views

php fpm spawns new children even if limit is not reached

My php fpm process gives me the following warning: [29-Apr-2014 13:06:10] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 ...
1
vote
1answer
332 views

How to conditionally set php session cookie within php-fpm www.conf?

I need to set PHP session cookie domain dynamically using php-fpm configuration, pseudo code like this: <If "%{HTTP_HOST} !~ /[0-9]/"> php_value[session.cookie_domain] = ".mysite.com" ...
0
votes
1answer
93 views

How should I configure nGinx to serve a simple PHP app (routing problems)?

I'm trying to configure my nGinx server (on a Debian Wheezy box) to serve my small PHP app. I have problems with routing. What do I need: / - no PHP allowed, just .html files /api - everything goes ...
0
votes
1answer
410 views

nginx - CPU usage goes to 100% and php5-fpm stops when processing concurrent requests

I am processing php file with nohup command so that it should run in background. But when I process more than 20 nohup commands then cpu usage goes to 100% and php5-fpm crashes results in connect() ...
0
votes
1answer
213 views

Installing php5-fpm but missing www.conf on ubuntu

I am installing php5-fpm on my ubuntu system but could not able to find www.conf file under pool.d directory. In my /etc/php5/fpm folder, there are only 2 directories - conf.d and pool.d Command ...
0
votes
0answers
267 views

Should I be getting “PHP Warning: Unknown: failed to open stream” when URL matches existing directory?

Within the VirtualHost container, I am using the ProxyPassMatch directive to transfer all request having no extensions to PHP on FastCGI: ProxyPassMatch ^/([^\.]+)$ ...
0
votes
2answers
227 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
211 views

Nginx drops connections

I'm having a setup where I use the linode nodebalancer (loadbalancer) for my nginx/php5-fpm servers. This balancer passive checks. These passive checks, check the status code of requests. If there are ...
0
votes
2answers
2k views

Ubuntu running Apache Server (Prefork) PHP Fast-CGi High CPU Usage

I have a server running very slowly due to high CPU usage. I think this must be a configuration issue but I can't put my finger on why. The server is running Plesk and I've configured PHP to run as a ...
2
votes
0answers
157 views

Database hangs when using owncloud on nginx php5-fpm postgresql - i think postgres if responsible

I have strange problem with this setup. Strangely it occurs only when using owncloud from one specific computer. Problem is when user click on "Activities" an "document" icons one after another ...
2
votes
2answers
1k views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
0
votes
0answers
231 views

Nginx with wordpress refused varnish static content requests

I just added another wordpress site to my ubuntu server. 2 wordpress sites, not multisite. They use 2 different fpm pool with same config. Their Nginx config files are basically identical except the ...
1
vote
1answer
196 views

unable to switch off expose_php in ubuntu 14.04 with nginx and php-fpm

According to phpinfo: Loaded Configuration File: /etc/php5/fpm/php.ini # grep expose_php /etc/php5/fpm -R /etc/php5/fpm/php.ini:expose_php = Off ...
0
votes
0answers
65 views

Would PHP5-FPM be faster with more cores?

I'm a bit new with nginx + php5-fpm. I read that with nginx there's an advantage to have multiple cores (CPU) with the use of worker_processes. Is php5-fpm also faster if it uses more cores? Reason: ...
1
vote
0answers
57 views

Best way to handle PHP-FPM with a ton of Pools

We recently upgraded to Apache 2.4 and want to move away from the Prefork + mpm-itk setup we had in 2.2 . The problem is we host about 60 domains, and while we control the PHP development, we still ...
0
votes
0answers
72 views

nginx with php-fpm location settings

Many of the guides for setting up Wordpress (or similar applications) on nginx with php-fpm use a configuration that in part looks something like this: location ~ [^/]\.php(/|$) { ...
1
vote
1answer
440 views

Sudden error with wordpress with nginx only (Uncaught SyntaxError: Unexpected end of input)

I've installed Wordpress on my VPS and is run smoothly with apache2. But recently , I recognized that it consume too much RAM (~600MB for 7-8 session) so I decided to change to Nginx. After changing ...
0
votes
0answers
125 views

Aptitude safe-upgrade hangs on php5-fpm update-rc.d warning

When running sudo aptitude safe-upgrade on my Ubuntu 12.04 LTS server, I keep receiving this warning: update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop ...
0
votes
0answers
366 views

How to restart PHP-FPM from cron?

I'm trying to restart PHP5-FPM periodically using Cron, but am having no luck. I can restart manually with no problems, using service php5-fpm restart or /usr/sbin/service php5-fpm restart However, ...
0
votes
0answers
71 views

Strange Nginx Issue

We are facing a strange issue on our servers. We have servers with 1GB RAM and some drupal sites are running on it. Generally all sites are loading fine but sometimes we are unable to access any ...
0
votes
2answers
777 views

Replicating mod_fastcgi with ProxyPassMatch (PHP-FPM setup)

I want to move from Apache 2.2 to Apache 2.4, but there is no mod_fastcgi, and the recommended upgrade path is mod_proxy_fcgi However I can't figure out how to accomplish the following: <IfModule ...
1
vote
1answer
590 views

how to stop a php-fpm process that started with a cron job but won't die

and thank you beforehand for reading this. I'm pretty new to linux and have just migrated from a shared hosting to a vps for my shop. I set up nginx with fpm and varnish, and some cron jobs to import ...
0
votes
0answers
941 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 ...
1
vote
1answer
274 views

nginx rewrite or internal redirection, primary script unknown

I am converting to nginx from apache. The application in question is as follows /contentlibrary_js /contentlibrary_js/app/index.php --> one page ajax app /contentlibrary_js/pagecreator/index.php --> ...
0
votes
1answer
65 views

nginx rewrite rules for tweetnest

Recently I migrated my last apache to nginx (+ php-fpm). Everything works fine except tweetnest by month links (tweetnest/yyyy/mm). tweetnest provides apache rewrite rules (.htaccess) which works ...
0
votes
0answers
416 views

Apache 2.4 with mod_proxy_fcgi and php-fpm issues using balancer://

Currently, I have Apache 2.4.6 + PHP 5.5.3 working with a RewriteRule sending requests to a single mod_proxy_fcgi backend with a fcgi:// prefix. Additionally, I've recompiled PHP with the patch from ...
1
vote
0answers
167 views

LA problems while serving 40M requests daily with php-fpm, nginx

I have server with FreeBSD (16 cores with HT, SSD, 32Gb RAM) which is getting about 40M http requests daily. All requests are served by nginx + php-fpm. At these graphs you see that we have a ...
0
votes
1answer
505 views

Codeigniter URL only work for default router

I've installed Codeigniter on Nginx with this configuration : server { listen 80; server_name myserver; root /usr/share/nginx/html; index index.php index.html index.htm; error_log ...
0
votes
1answer
2k views

nginx upstream timed out. Multiple servers at the same time

I have several servers serving a single site. Main server runs nginx and php-fpm. And all the other servers run php-fpm. The server that runs both nginx and php-fpm connects via a unix socket and the ...
0
votes
3answers
772 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 ...
0
votes
2answers
3k views

Setting up HHVM for apache2.2 with mod fastcgi in a virtual host

I want to setup a virtualhost running HHVM to try out the new "Facebook Hack" language. I followed the instructions here on Apache 2.2: https://github.com/facebook/hhvm/wiki/FastCGI currently hhvm is ...
0
votes
1answer
45 views

php-fpm creating directory as root

I'm running php-fpm, and I'm having a problem that sometimes my code will create a directory as the root user, even though all the php-fpm processes are running as nginx. The master process itself is ...
3
votes
0answers
91 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
0
votes
0answers
93 views

PHP upgrade always breaks session folder permissions

Every time I upgrade php (via yum upgrade) on my CentOS box, my /var/lib/session folder ownership becomes root:apache with 600 permissions. I use nginx as my web server. This breaks my site and ...
2
votes
1answer
369 views

How to set umask for php-fpm in fedora 19

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
1
vote
1answer
113 views

php-fpm process running when using mod_php

I've been having some out of memory issues. Pretty much there after tuning Apache but I have noticed something odd when analyzing memory usage. php-fpm is running in the background when, as far as I ...
0
votes
1answer
67 views

nginx+php5-fpm .php Pages not reflecting changes

I'm very experienced with Apache, but I wanted to make the switch to Nginx to try and gain experience with a very popular piece of software. Unfortunately I have not gotten very far and this problem ...
1
vote
0answers
161 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...