Tagged Questions

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

high load average and cpu usage

I am experiencing high CPU usage here is the stats i got from server, the consumption after every restart in 15 minutes go upto 100%, what could go wrong? I have a site in laravel installed on the ...
0
votes
0answers
126 views

wordpress / php-fpm crashes when uploading images to server

I have successfully migrated a wordpress server to a new VPC ( Amazon ) but looks like php-fpm can't handle the image uploads. When I upload an image, it does partially and then stalls, or it doesn't ...
0
votes
1answer
58 views

Multiple server blocks in nginx: Php not working on server 2

I have a nginx server running on my webserver. I would like to achieve the following: example.com + www.example.com -> /my/web/dir/www pma.example.com -> /my/web/dir/pma The first point is not ...
0
votes
0answers
52 views

What is causing PHP-FPM's connections to our galera cluster to be limited?

On our current live site, we have had a flood of page requests from a single IP over a ~60 second window, which caused PHP to start failing to connect to the database. Our error logs have a lot of ...
1
vote
2answers
242 views

High io with php-fpm

Recently i have been having some issues with php-fpm and i notice that IO is very high for all php-fpm (99.9%) and that's what causing the cpu load to spike. Top command top - 06:28:53 up 8 days, ...
0
votes
1answer
55 views

Mysterious Upstream Client ::ffff:81.70.140.65…changes on each error

I read the following post: nginx errors recv failed 104 ...but have a different question... I'm curious to know why there is ANY reference to this mysterious upstream source: ::ffff:81.70.140.65 ...
0
votes
0answers
70 views

Run multiple nginx servers on different ports by different users

Let me describe the problem I need to solve: There is a sandbox server (Debian), each developer has own user account on it. I need to provide an easy and quick way of running/stopping any number of ...
0
votes
2answers
151 views

nginx use rewrite as dynamic 404 image

I want to get a dynamic 404 response depending on the requested url: foo.jpg doesn't exist http://example.com/img/style/thumbnail/foo.jpg should show ...
0
votes
1answer
75 views

atomic deployments with Nginx and PHP FPM

I'm trying to get atomic deployments, I don't want to lose/drop any requests. I deploy the code using Capistrano, classic situation were you have a 'current' dir that is a symlink to the latest ...
0
votes
0answers
34 views

php-fpm: Maintain php_mod logging format

I recently switched all my lab servers from apache pre_fork/mod_php to apache worker/fcgi/php-fpm, and after getting everything set-up correctly, I noticed one last issue; php-fpm is adding it's own ...
0
votes
0answers
58 views

Wordpress + Nginx + Discourse not working. Socket unavailable

I'm running wordpress 4.0 on latest ubuntu from this docker container: https://github.com/eugeneware/docker-wordpress-nginx wordpress is also running behind another nginx reverse proxy, but on ...
0
votes
0answers
134 views

Apache 2.4 <locationmatch> occuring before .htaccess

I have the following configure in my apache config: <VirtualHost *:80> <Directory "/var/www/site.com"> Options +Indexes +FollowSymLinks +ExecCGI -MultiViews ...
0
votes
2answers
467 views

apache 2.4 + php-fpm + mod_proxy_fcgi + alias

I have the following config: Apache 2.4, php-fpm, mod_proxy_fgci. The problem is that my config is not working with the alias directive: I've installed phpredmin, but the alias directive is not ...
1
vote
0answers
49 views

apache php-fpm - max_children reached -> server unresponsive until php-fpm restart

One of our servers with a very special setting is very sensitivee to an unknown event. Hardware: Xen - VM 22 Cores (build with Intel xeon 4*6 Core) raid 6 SSD 60 GB RAM Configuration: Suse ...
0
votes
2answers
97 views

Serve a custom 404 page generated by PHP

Here is how my php-fpm config is: location @site { fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/index.php; ...
0
votes
1answer
315 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 ...
0
votes
1answer
153 views

404 not found when trying to access index.php

Recently I have reinstalled a server with Ubuntu 14.04 LTS, nginx/1.6.1 and php5-fpm. When I try to access index.html it's working when I try to access index.php i get "404 Not Found". I double ...
0
votes
1answer
361 views

Nginx with php-fpm suddenly started returning 504 Gateway Time-out

We have a staging Ubuntu server running on the Azure platform that just suddenly started timing out. We had created the server some days ago and it was working great. All of a sudden today while it ...
0
votes
1answer
547 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
1answer
23 views

nginx only serves php located in the root

I have the following file paths http://localhost/test.php http://localhost/playground/server.php Both of them simple hold <?php phpinfo(); ?> The issue is, nginx will serve the first one, ...
0
votes
0answers
120 views

Add custom variables to nginx access log from PHP-FPM

With the log_format its possible to include a range of variables such as $http_user_agent: http://nginx.org/en/docs/http/ngx_http_core_module.html#variables But is it possible to include a variable ...
0
votes
2answers
83 views

PHP FPM state Finishing but never completes

We are running a Symfony application on Ubuntu 14.04 with Nginx and PHP-FPM The problem is that individual PHP FPM will occasionally hang on our production servers. I have the output from the status ...
0
votes
1answer
95 views

Nginx and php-fpm trouble again

Dears I try to deploy wordpress on amazon ec2, I am facing the trouble on nginx and php-fpm, thanks for your help in advance. I got the error as the following when nginx and php-fpm are running. ...
0
votes
1answer
115 views

PHP5-FPM Slow Execution on Ubuntu 14.04 (EC2 micro server)

I have a cluster of EC2 servers set up and just one is behaving very strangely. It's a t1.micro server running Ubuntu 14.04. Nginx, MySQL, and php5-fpm are installed. I've concluded that nginx and ...
0
votes
1answer
140 views

php-fpm/nginx giving scripts wrong path info

I use an nginx webserver and I've been trying to stop a problem where sites are given the wrong $_SERVER["PHP_SELF"] variable. This breaks some scripts. The problem seems to be that nginx is giving ...
1
vote
1answer
88 views

NGINX and PHP FPM - general setup and performance issues using open_basedir

I want to configure an NGINX server, which is able to host multiple websites, which are seperated from each other, so vhosta can't access files from vhostb. I installed a fresh Debian 7.5 server and ...
0
votes
1answer
782 views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
0answers
25 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
29 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
34 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
114 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 ...
0
votes
1answer
41 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 ...
-2
votes
2answers
169 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
vote
0answers
98 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
1answer
51 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; ...
0
votes
0answers
34 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
0answers
71 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
1answer
114 views

How do one run PHP-FPM on subdomain?

I run Apache 2.4 and PHP-FPM via ProxyPassmatch in httpd.conf, not vhost (for what it's worth): ProxyPassMatch ^/(.*\.php)$ unix:/var/run/php-fpm.sock|fcgi://127.0.0.1/home/user/www I wanted to ...
0
votes
2answers
98 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
1answer
108 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 ...
2
votes
1answer
97 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
58 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
104 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
90 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
74 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
1answer
152 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
0answers
26 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
96 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
411 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
1answer
78 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 ...