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

creating php modules load order in centos

In Debian, we can create order for loading php modules that are installed inside /etc/php5/mods-available By creating symbolic links for php-fpm or php-cli or ... Could not find something like that in centos! Do you have any ideas?
madz
  • 123
  • 1
  • 6
0
votes
1 answer

PHP is not being executed by proxy_fcgi and php_fpm on Zabbix frontend

I have installed php7.0-fpm and enabled proxy_fcgi mod for Zabbix frontend. However when I try to get access from any page I get PHP source code of that page instead of normal page. My configs are the next:…
user54
  • 329
  • 1
  • 3
  • 12
0
votes
1 answer

nginx try_files not performing internal redirect

I'm trying to configure nginx so it will load PHP files without an extension, but still pass along requests for missing files to a front controller. I started out with a mostly working config like the following that properly loads URLs like…
Rich Remer
  • 205
  • 1
  • 7
0
votes
0 answers

Command runs on command line but not through webserver

Note: Skip to "EDIT #2" for new info - I'll leave the original here, but it's less relevant now. I need some troubleshooting help - it's infuriating when a system gives me no feedback, so I don't know what to look for. I'm setting up a new server on…
OsakaWebbie
  • 183
  • 2
  • 11
0
votes
1 answer

nginx - cURL retrieves PHP files but accessing via web browser gives source code

I'm having some trouble with nginx. I setup nginx on a Raspberry Pi B+ (Raspbian Jessie) and PHP with FastCGI. When I try using cURL to retrieve pages, it returns the PHP-generated HTML. nginx server block that serves fastcgi requests server { …
xiurobert
  • 1
  • 4
0
votes
1 answer

Amazon Linux with PHP7 and nginx doesn't load php

Installing this on a fresh Amazon AWS micro instance with Amazon Linux. I've installed nginx and php7. I can't seem to get php to load. sudo yum install nginx sudo yum install php70-fpm Created a document root at: /var/www/html User/Group is…
Tom
  • 143
  • 2
  • 11
0
votes
3 answers

configure nginx to so all domain can /phpmyadmin

I'm triyng to setup nginx so every vhost can access phpmyadmin like so example.com/phpmyadmin I tried using this configuration but no luck this is my default file server { #return 404; location /phpmyadmin { root…
phper
  • 155
  • 9
0
votes
1 answer

Nextcloud: Bad Request (expected filesize XXX got 8192)

I am transitioning from ownCloud to Nextcloud. Everything seems to work, only the upload doesn't work, yet. Everytime I upload via the Web Interface, I get the "Bad Request" message. Via the Desktop client, I also get "Bad Request" with some…
Niklas R
  • 123
  • 1
  • 11
0
votes
3 answers

SSL termination Nginx + Backend Nginx not working (get mixed content result in HTTPS)

I set up 2 nginx webserver from this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-load-balancing-with-ssl-termination The problem is, a simple one test php page via SSL is loaded nicely, but when I try to install…
Bonn
  • 43
  • 1
  • 8
0
votes
1 answer

php fpm outbound socket

how to set PHP-FPM (> 7) to bind outgoing connection to specific socket/ip ? i know there is pool directive listen = 127.0.0.1:port but its for incoming connections but what with outgoing ?
ceph3us
  • 135
  • 10
0
votes
1 answer

HTTP 405 Submitting Wordpress comments (Nginx/PHP-FPM/Memcached)

I just realized that the comments are broken on a Wordpress site I'm working on (LEMP+memcached), and can't figure out why. I'm sure it's not related to my theme nor any plugins. Basically, anyone tries to submit a comment, nginx gets stuck on the…
4oo4
  • 303
  • 3
  • 10
0
votes
1 answer

Apache and php7.0-fpm – sporadically error 500

I am running an office server based on Debian (for developing websites based on TYPO3) and have changed from mod_fcgid to PHP FPM – just to have two PHP versions available in an easy way... Now I am working on a project/vhost with PHP 7.0 running…
Kevin Lieser
  • 119
  • 6
0
votes
1 answer

postgresql Cannot assign requested address

I have a site with nginx, php-fpm, postgresql and pgbouncer and it was working for over a year now. Yesterday server went into not responding and after reboot it worked for 5 or 10 minutes and after that not responding and the same error…
Ehphan
  • 111
  • 2
  • 8
0
votes
1 answer

Server running at high CPU usage (100%)

I have a nginx server on a digital ocean droplet, with 2 CPU's and 4gb mem. I'm running a couple of minor WP-sites, without much traffic - but it seems like i can push the server to 100% CPU without much effort. I can actually just spam(1-2/sec)…
Mac
  • 115
  • 1
  • 1
  • 9
0
votes
0 answers

Install script for PHP and Nginx latest versions

I need to create the environment for my PHP code (Laravel) with latest nginx and latest PHP. The script should be optionally the single file able to update the PHP version or Nginx version if these are old. Let me show you what I…
prosti
  • 348
  • 1
  • 6
  • 18