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
0answers
36 views

Site unreachable due to attack - xmlrpc.php

Today our server was not reachable. It was returning a 502. We are running Nginx 1.10 on Ubuntu 14.04. We also use PHP7 (only, no PHP5). In the logs, we got the same error from the same client (2 ...
1
vote
1answer
40 views

Nginx & PHP in a subdirectory

I have an app behind nginx. But i need a specific path in this app redirect to a Wordpress Blog Example : example.com/ -------> Redirect to my app example.com/whatever/ -------> Redirect to ...
0
votes
1answer
86 views

nginx: FastCGI sent in stderr: “Primary script unknown”

Using the latest version of nginx (1.10.0) and php-fpm (PHP 7.0.6) on 64-bit arch linux. When attempting to request index.php for a DokuWiki installation, I get the following error: 2016/05/21 ...
0
votes
1answer
49 views

what is causing wordpress file empty error on uploads?

I can't seem to figure out why I get the following when I try to upload anything in wordpress... for both media uploads and wordpress import xml: "Sorry, there has been an error. File is empty. ...
0
votes
1answer
18 views

Nginx - can't open php files from a different directory -ERR: failed (13: Permission denied)

I have set a nginx, php-fpm, mysql and phpMyAdmin on my laptop (running Arch Linux). Everything was ok till I tried to move the root in my home directory. Here is the nginx configuration file I'm ...
0
votes
1answer
22 views

NGINX accessing the files in the wrong path

I have a codeigniter application that has the following directory structure <HOME> |_ <web> | |_<API> | |_index.php |_<admin> The developers have an ...
0
votes
1answer
14 views

How to log request forwarded to fpm at Nginx

How to configure Nginx to log requests send to php-fpm into log? Goal is to have e.g. script path information ofter Nginx location etc. have been applied to.
0
votes
0answers
20 views

Listening to 127.0.0.1:9000 but var/run/php5-fpm.sock failed (2: No such file or directory)

I have a webserver configured to accept FastCGI requests at 127.0.0.1:9000 like below. /etc/php5/fpm/pool.d/www.conf: listen = 127.0.0.1:9000 /etc/nginx/sites-enabled/mysite: location ~ .php$ { ...
0
votes
1answer
15 views

postfix/opendkim not sign email from php on second domain

I have two domains, called them example1.com and example2.com on example1.com all emails sent with dkim sign. on example2.com emails from php sent without dkim sign, but if send email from console, ...
0
votes
1answer
59 views

ownCloud Unable to Connect to Local Database on Fedora 23 (LEMP stack, selinux permissive)

The Problem I am having a very strange issue where ownCloud seems unable to access my SQL database, using nginx, mariadb, and php-fpm running on Fedora 23. When I attempt to access the page, I get ...
0
votes
0answers
39 views

Slow PHP with PHP-FPM or HHVM [on hold]

I have a Ubuntu 12.04 server that is under quite a heavy load and trying to fine tune it. PHP-FPM did work really well and I upgraded to HHVM over a year ago now which improved performance. I now ...
0
votes
0answers
18 views

Nginx & php5-fpm configuration according to need?

I recently moved from Apache to Nginx web server. I am using Joomla CMS with nginx & php-fpm. I don't really know to configure both of the services according to my server need. My amazon cloud ...
0
votes
1answer
27 views

Directory structure with php-fpm

What's the best directory structure (aka "where to put websites html files") when php-fpm is running? Actually I have one user per website (so for example there is the website example.com and the ...
0
votes
1answer
57 views

Cannot get php5-fpm to work on Ubuntu 14.04 with Apache 2.4.7

I have been trying for two days now to upgrade my regular LAMP stack to use php5-fpm and event-mpm, but it just doesn't want to work! At this point seems like I've tried everything to make it work, ...
0
votes
0answers
45 views

no apache http headers with php5-fpm

I've migrated from standard fastCGI to php5-fpm. Now all headers that are set via Apache (mod_expires, mod_header, and so on) are being discarded (or not set, resp.). For example, I need to parse ...
0
votes
1answer
40 views

NGINX / PHP-FPM + SSL very slow

My application is served on an Amazon EC2 t2.small instance. When using the ab command to test performance. ab -n 3000 -c 100 mydomain.com HTTP Finished 3000 requests Server Software: ...
1
vote
1answer
43 views

php error [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers)

I am using ubuntu 15.04 in my dedicated server with 40 cpu cores and 160GB of RAM with one heavy traffic wordpress site running. I am using Nginx as the webserver and varnish as the cache server. My ...
0
votes
2answers
26 views

Is it necessary to secure TCP traffic for PHP FPM over shared private VPS network?

There are lots of recommended practices and tutorials for securing various components of a LEMP/LAMP stack when running in a cluster whose private network traffic is shared by other, potentially ...
0
votes
0answers
15 views

MongoDB or mongoclient not closing connections

I'm having an issue with our mongodb server having too many connections open. We have tracked down the problem to be related to the incoming connections from the vhost with the php server. sudo lsof ...
0
votes
0answers
38 views

Drupal along side Magento on Nginx

I have successfully setup Magento 2.0 and trying to install Drupal along side. My Nginx configurations: upstream fastcgi_backend { server unix:/var/run/php/php7.0-fpm.sock; } ...
0
votes
0answers
59 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> ...
2
votes
0answers
41 views

502 Bad Gateway Error - exited on signal 11

I have an issue on a particular Magento store, on two different servers. The issue is that when I save admin panels, I get a 502 error. The values actually save to the database, as pressing back on ...
0
votes
2answers
49 views

Apache returns empty response and must restart

I have the classical LAMP configuration on several servers, on one server I can frequently see Apache returned an empty error. I have PHP-FPM running to serve .php file, static pages like .html is ...
1
vote
0answers
24 views

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: ...
0
votes
0answers
33 views

nginx shows 404 on form submit, i.e. on all post requests

I have an nginx v1.2.1 together with php-fpm hosting the magento system for me. The current nginx config looks like this, and this config works fine for me, or at least I think it works fine. server ...
0
votes
2answers
160 views

“sudo apt-get install php7.0-dev” not working

I am trying to install Xdebug to server and pre-requisite in tutorial I am following is php5-dev but I am using php7.0.5 so I tried sudo apt-get install php7.0-dev. It gives me Reading package ...
0
votes
0answers
83 views

Nginx/PHP5-FPM master process - high CPU usage

I've been having some weird issues with PHP-FPM and high CPU usage from the master process. I normally have CPU spikes from traffic since we have a lot of websites but I also run heavy caching with ...
0
votes
0answers
45 views

mysqli non-standard socket location configuration for php5-fpm on ubuntu 14.04LTS

Feel free to migrate this. Its ambiguous to me if it belongs in serverfault, stackoverflow, or Unix & Linux. I recently deployed a handful of wordpress sites for a client. I started to notice ...
0
votes
1answer
24 views

ioncube not working with php-fpm nginx

php version: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache ...
0
votes
0answers
53 views

Nginx memory profile

I'm using nginx 1.9.2 (with pagespeed and geoIP) inside a docker container, running on Google container engine. It serves as a proxy for another container running php-fpm (php7). I'm also using ...
1
vote
0answers
28 views

apache php-fpm: How to run scripts on same domain w/ different users

I have a number of directories containing php scripts that need to be run as separate users. Example directory structure is as follows: /var/www ├── project │ ├── item1 │ │   └── script1.php │ ...
0
votes
3answers
76 views

restart php5-fpm from php script

Ok, this is a tricky one (I think) I need to reload php5-fpm from a php script The obvious issue is that once the reload command is executed, the current script is disturbed, I tried to delay the ...
0
votes
0answers
50 views

PHP/FastCGI: Is “&QUOT” the cause of fatal error?

I'm trying to set up Wallabag, a PHP application, for the users on my site. This is one of a number of PHP applications running on a LEMP setup with PHP 7.0 (default on Ubuntu 16.04) When I visit ...
0
votes
0answers
25 views

open_file_cache causes slow response every x times

I'm testing a server on t2.micro ec2 I set this in nginx.conf open_file_cache max=2000 inactive=20s; open_file_cache_valid 60s; open_file_cache_min_uses 5; ...
0
votes
2answers
39 views

nginx+fastcgi+php-fpm step from standard config = 404

I want to work simple url like http://host/test.php, note there are no trailing / at the end. I start from standard config from nginx site + serverfault: location ~ [^/]\.php(/|$) { ...
2
votes
2answers
173 views

Setup nginx for owncloud and other services on the same server?

Right now I have nginx working with 3 services: 1. My webpage on my.example.com/~ignacio, my Rstudio server on my.example.com/rstudio, and my Shiny sever on my.example.com/shiny. This is my config ...
0
votes
1answer
46 views

Apache: “Service Not Available” after setting up php-fpm chroot

I'm running Debian Jessie with Apache 2.4.10. I have been through the "File not found" problem, and ended up referencing this question. The only difference between my setup and his is that I would ...
0
votes
0answers
29 views

php-main.sock file not found in php version 5.6.20

I have successfully installed nginx version 1.9.11 on my remote server, running CentOS 7. I also installed PHP version 5.6.20 by following this link. I am trying to use a PHP socket for running PHP, ...
0
votes
0answers
49 views

php-fpm or nginx are not cooperating well (multipart issue)

I setup a: nginx as https and as upstream php-fmp on ubuntu server 15.10 - 1 core now: nginx receives simple multipart request via ssh POST [path] HTTP/1.1\r\n Host: [host]\r\n Connection: ...
1
vote
2answers
79 views

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the ...
1
vote
0answers
103 views

How do I allow users to override X-Frame-Options when using Apache + PHP-FPM?

I have an Ubuntu 14.04 server running Apache + PHP-FPM + FastCGI, serving user home pages. For security, I have enabled in Apache's configuration: Header set X-Content-Type-Options: "nosniff" Header ...
0
votes
0answers
55 views

Nginx + Php-fpm stuck High Traffic & not all cores are used

My website has a hight traffic up to 8k online users on Google Analytics but from time to time (30-40min) i have to restart php-fpm because it get stuck and the traffic from analytics begin to ...
1
vote
0answers
30 views

nginx stub status SPIKES “writing” for a few seconds, causing 504 error. Why?! Bad VPS neighbour?

I am using Apache and nginx as reverse proxy, with php5-fpm. The latest week we've been receiving the following error in nginx's error.log: upstream timed out (110 connection timed out) while reading ...
1
vote
0answers
34 views

php-fpm chroot setup with apache mod_proxy_fcgi

i'm looking for recent instructions on how to set up apache with mod_proxy_fcgi and chrooted php-fpm. i was successful for the whole process except for the chroot part. i'm trying to use the most ...
0
votes
0answers
20 views

Is it safe for nginx-php-fpm servers in a pool to share config files on a GlusterFS volume?

I'm in the middle of setting up a pool of webservers using nginx with php-fpm. I'm using a glusterfs volume to hold php/html files. I've realized that keeping things like php.ini, and sites-enabled ...
0
votes
1answer
65 views

Postfix won't send PHP mail() function from form

I got postfix to send me emails from my server via console using echo "body example" | mail -s "subject example" my@email, but when I try to send an email from my website via mail(), the php function, ...
0
votes
2answers
147 views

FPM binary for PHP cli [closed]

The newest Synology NAS DSM 6 version has a strange PHP set up. The command line binary is PHP version 5.6.11 with almost no enabled modules and the tokenizer part is not compiled into it. But when ...
0
votes
1answer
37 views

Server reached pm.max_children setting

I am running a WordPress website under Nginx and FPM. In case of traffic it kills the php process and website stop working for all the user. Here is what i found from the log. Is there any way that ...
1
vote
1answer
132 views

Nginx reverse proxy causing file downloads to take excessive time to start

Overview My web app allows users to upload files which are stored on s3 via my servers. When a user requests a file my web server retrieves it from s3 then sends it on to the client. I recently ...
0
votes
1answer
43 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...