PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.
Questions tagged [php-fpm]
89 questions
39
votes
4 answers
How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal?
I'm relatively new to the world of unix command line web server management/administration.
Many hosts with control panel administration options allow you to change how PHP is run with a simple option.
The most common options being:
apache…
Evan Mattson
- 699
- 1
- 6
- 9
14
votes
2 answers
Nginx/PHP-FPM "Access denied." error
I'm trying to set up a freshly installed Ubuntu (12.04) server, but I can't get PHP files running through php-fpm. No matter what I do, I always get a "Access denied." page (plain text, not html or anything).
Installed packages:…
Peter Kruithof
- 596
11
votes
2 answers
How do I install PHP-FPM 5.4 on 12.04?
I would like to install PHP 5.4 with FPM on a 12.04 virtual machine. The popular PPA solution for installing PHP 5.4 doesn't seem to include the php5-fpm package.
What's the best way to install this version?
Gerry
- 233
9
votes
1 answer
Can't get nginx to run php on ubuntu 16.04 server
Edit.
Question already got an answer here:
https://serverfault.com/questions/889334/cant-get-nginx-to-run-php-on-ubuntu-16-04-server
I am setting up a server running nginx and I'm trying to get it to run php scripts.
Apparently the greatest article…
john-jones
- 321
8
votes
1 answer
Install php-fpm 5.6 on Ubuntu Xenial (16.04)
I can see various solutions available for php5.6, but is it possible to get php-fpm 5.6 for Xenial?
Or do I have to manually download and build the package?
7
votes
1 answer
What does a2enmod proxy_fcgi setenvif do?
My coworker and I recently spent a long amount of time trying to figure out why PHP 7 was showing as plain text in the browser rather than running. We found an upvoted StackOverflow answer that contained these commands.
sudo a2enmod proxy_fcgi…
Goose
- 189
7
votes
1 answer
sudo dpkg --configure -a Taking forever
I am trying to install php-fpm with sudo apt-get install php-fpm. When I do that commmand, it gives the error: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
When I type sudo dpkg --configure -a it…
Fredthedoggy
- 183
7
votes
1 answer
PHP-FPM does not create socket on service restart
Issue & Question
Ubuntu Server 18.04 LTS.
Using systemctl restart on PHP-FPM doesn't create the required socket in /var/run/php/, but a reboot does.
How can I tweak my setup to allow a service restart without a reboot?
Overview
I'm compiling…
Pete Cooper
- 243
7
votes
6 answers
PHP 7.2 fastcgi doesn't work on Ubuntu 18.04 server
I've just installed LAMP on a Ubuntu 18.04 server and I can't get PHP fastcgi to work.
Here are my settings:
My fpm PHP file: /etc/php/7.2/fpm/pool.d/sites.mydomain.conf:
[sites.mydomain]
...
user = sites
group = sites
...
listen =…
Duddy67
- 535
6
votes
2 answers
How to install php IMAP for php5-fpm?
I'm trying to install Vtiger CRM on Ubuntu. This require IMAP. How to install PHP IMAP for php5-fpm?
user3207076
- 93
6
votes
2 answers
PHP-FPM eating memory & Creating many Pools
I set up my nginx with php-fpm. Each vhost has its own unix-socket and separate POOL.
But the problem is that php-fpm is creating 7 thread for each config pool that I created in /etc/php5/fpm/pool.d/
Why? And how could I define that the pool creates…
r004
- 173
5
votes
4 answers
502 Bad Gateway nginx php-fpm
I tried to install nginx and PHP7 with FPM using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04
When I try to access any .php file I get 502 Bad Gateway.
When I try to restart php7.0-fpm, I…
user320641
5
votes
3 answers
php scripts dont work when called from php tags in html
I have an nginx server, with php5-fpm, on Ubuntu 15.10.
Files that end in .php load properly. HTML files load properly.
But when I put tags in an html file, the PHP scripts do not load properly. I can see no errors in the nginx, or php5-fpm…
j0h
- 15,365
5
votes
2 answers
Unable to get error stack trace or error log while using php-fpm + nginx on Ubuntu 14.04
I am using php-fpm 5.5.9 along with nginx 1.4.6 on my Ubuntu 14.04 machine. I have installed them using apt-get package manager. I am unable to get a stack trace of the error that my index.php script encounters in error log as well as on the…
Tojo Chacko
- 660
4
votes
2 answers
PHP-FPM Constantly Restarting Pools - Zombie's Everywhere!
After a recent incident in which I ran chown -R root:root on my entire /var directory on accident, I've been dealing with php-fpm issues. I've tried fixing permissions in a number of ways with no luck but I'm getting constant restarts spawning tons…
Nate Wienert
- 41