Questions tagged [php-fpm]

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

Filter by
Sorted by
Tagged with
0 votes
1 answer
4k views

NGINX failed to connect to php-fpm socket

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 ...
Dung Nguyen's user avatar
7 votes
2 answers
8k views

SElinux label for php-fpm sockets

I'm attempting to set up multiple instances of php-fpm to run multiple versions of php through apache 2.2 running on centos 6.5. At some point in the future this will end up in a shared hosting ...
Mikk3lRo's user avatar
  • 183
7 votes
2 answers
28k views

Docker + nginx + Php-FPM 502 Bad Gateway

I'm trying to install php-fpm and nginx via docker and I have a problem with nginx which returns me a 502 Bad gateway error, however when I try to go on any HTML file only displays correctly. What ...
Flug's user avatar
  • 131
4 votes
2 answers
4k views

Relation between PHP-FPM settings and mpm_worker (Apache)

I've a site running Magento on the following setup: Apache 2.4 with mpm_worker PHP-FPM Total RAM in server: 14GB (10GB avilable to Apache/PHP) Each PHP-FPM process consumes approximately 80MB of RAM....
JanC's user avatar
  • 153
0 votes
1 answer
251 views

Can't seem to install PHP-FPM5?

I am reading some advice on the internet for a solution to another issue I have. It requires me to change the listen to /var/run/php5-fpm/php5-fpm.sock. I however don't have that folder.. I have a ...
pufAmuf's user avatar
  • 105
2 votes
2 answers
5k 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 ~ ((\.php$)|(^/(...
level_0's user avatar
  • 31
1 vote
1 answer
1k 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 ...
RNickMcCandless's user avatar
1 vote
2 answers
4k 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. /etc/...
Oyabi's user avatar
  • 133
3 votes
2 answers
10k 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 unix:/var/run/php-fpm/php-...
Danny Valariola's user avatar
0 votes
0 answers
602 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: https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#installation-for-...
arg's user avatar
  • 13
0 votes
1 answer
716 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. I'...
Codemonkey's user avatar
  • 1,138
2 votes
1 answer
471 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 ...
Nickersoft's user avatar
7 votes
3 answers
12k 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 ~]# ...
Nick's user avatar
  • 4,656
-1 votes
1 answer
625 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 ...
Locke's user avatar
  • 5
0 votes
0 answers
205 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 ...
user1030135's user avatar
0 votes
1 answer
231 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 ^/about/(wp-(content|...
Nick's user avatar
  • 4,656
3 votes
1 answer
1k 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" ...
Josh Nankin's user avatar
1 vote
2 answers
6k 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 children, ...
Spyros Lambrinidis's user avatar
2 votes
1 answer
4k 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" </If&...
Question Overflow's user avatar
1 vote
1 answer
1k 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 ...
TPJ's user avatar
  • 13
0 votes
1 answer
791 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() ...
Raj Sf's user avatar
  • 121
1 vote
1 answer
1k 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 ...
Raj Sf's user avatar
  • 121
0 votes
3 answers
860 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, ...
Tallboy's user avatar
  • 179
1 vote
1 answer
2k 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 ...
user avatar
0 votes
2 answers
4k 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 ...
Frank Martin's user avatar
2 votes
0 answers
364 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 ...
Lord_JABA's user avatar
  • 161
58 votes
7 answers
79k 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 ...
eComEvo's user avatar
  • 1,041
0 votes
0 answers
689 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 ...
user3254232's user avatar
4 votes
3 answers
4k 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 /etc/php5/fpm/pool.d/www.conf:php_flag[...
Rufinus's user avatar
  • 191
1 vote
0 answers
163 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 ...
David Eisen's user avatar
0 votes
0 answers
135 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(/|$) { ...
matthew's user avatar
  • 1,319
2 votes
1 answer
2k 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 ...
Nam Phung's user avatar
  • 141
1 vote
3 answers
9k 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, ...
Mateo's user avatar
  • 139
0 votes
0 answers
149 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 ...
Geo's user avatar
  • 575
1 vote
2 answers
2k 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 ...
X-Istence's user avatar
  • 762
4 votes
2 answers
3k 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 ...
harryg's user avatar
  • 921
1 vote
1 answer
812 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 --> ...
user2108258's user avatar
0 votes
1 answer
123 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 ...
Terry Wang's user avatar
2 votes
0 answers
533 views

Load Average 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 ...
Kirzilla's user avatar
  • 573
1 vote
1 answer
4k 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 /var/log/...
OnlyMAJ's user avatar
  • 167
1 vote
1 answer
6k 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 ...
Grumpy's user avatar
  • 3,009
0 votes
4 answers
4k 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 ...
OnlyMAJ's user avatar
  • 167
0 votes
2 answers
6k 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 ...
timing's user avatar
  • 111
0 votes
1 answer
863 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 ...
Jeremy Wilson's user avatar
6 votes
2 answers
310 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. ...
Alex Flo's user avatar
  • 1,821
7 votes
1 answer
3k 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 ...
Codemonkey's user avatar
  • 1,138
7 votes
3 answers
10k views

How to set umask for php-fpm in Fedora

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)
leonbloy's user avatar
  • 2,148
2 votes
1 answer
781 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 ...
Chris B's user avatar
  • 23
1 vote
1 answer
802 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 ...
CRK's user avatar
  • 35
1 vote
0 answers
543 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 ...
Marcus's user avatar
  • 11

1
29 30
31
32 33
44