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.

PHP-FPM provides a number of useful features over the traditional FastCGI php implementation. It is implemented as a daemon that controls one or more PHP process 'pools' which can be independently configured. Main configuration options for each pool include:

  • Socket on which requests are received (either local or TCP)
  • Separate php.ini settings for specific application requirements
  • Dynamic process control. FPM can dynamically change the number of worker processes depending on pool load.
  • Uid/gid for the pool workers
  • In-flight configuration updates - a change to the pool configuration will be rolled out gracefully across all pool workers without losing connections.
2118 questions
0
votes
1 answer

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 an error page that reads "Internal Server Error"…
MetaNova
  • 171
  • 1
  • 6
0
votes
1 answer

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 user example). Should I put the html files…
0
votes
1 answer

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, but to no avail. Apache2 and php5-fpm both seem to…
Swen
  • 105
  • 4
0
votes
1 answer

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: nginx/1.8.1 Server Hostname: …
Claytinho
  • 513
  • 1
  • 4
  • 6
0
votes
2 answers

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 hostile, hosts (e.g., AWS, Vultr, DigitalOcean). You…
Paul d'Aoust
  • 101
  • 2
0
votes
0 answers

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 the following error in the error logs. FastCGI: server…
digitaladdictions
  • 1,505
  • 1
  • 12
  • 30
0
votes
1 answer

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 v7.0.3, Copyright (c) 1999-2014, by Zend…
Alexander Kim
  • 597
  • 3
  • 8
  • 21
0
votes
1 answer

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 fastcgi proxy. I find it very slow, so I started…
VsM
  • 123
  • 4
0
votes
3 answers

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 execution like so (sleep 5; sudo service php5-php…
phper
  • 155
  • 9
0
votes
2 answers

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(/|$) { fastcgi_split_path_info ^((?U).+\.php)(.*)$; …
fghj
  • 196
  • 2
  • 8
0
votes
1 answer

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, I don't get the email. I'm new to web servers…
0
votes
2 answers

FPM binary for PHP cli

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 the synology web server app is installed and I do…
Laoneo
  • 274
  • 1
  • 3
  • 13
0
votes
1 answer

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 php5-fpm and nginx.. Now i have removed everything…
nipeco
  • 101
0
votes
2 answers

Symfony Project Nginx

Heey all, I'm trying to host my symfony project but i'm getting a 500 error back from nginx. The error log doesn't show anything. Yet the access log does show something: 46.243.152.13 - - [17/Mar/2016:14:05:45 +0100] "GET / HTTP/1.1" 500 507 "-"…
Baklap4
  • 127
  • 2
  • 13
0
votes
1 answer

PHP 7 Module already loaded warnings

I have a machine running Ubuntu 14.04.3 LTS that is deployed via Ansible. I've got PHP 7 installed using Ondřej Surý's PPA for PHP. $ dpkg -l | grep -i php ii libapache2-mod-php7.0 7.0.3-2+deb.sury.org~trusty+1 amd64 …
DanielGibbs
  • 573
  • 5
  • 13
  • 32