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

Nginx conf with php-fpm alias not working

i cant get the kohana aplication working. Server specs: ubuntu 14.04, nginx, php7.0-fpm I have the following structure: build: (static website) ,server: (php-kohana application) |-- build | |-- fonts | |-- images | |-- index.html | |--…
Renato Prado
  • 133
  • 7
0
votes
0 answers

New nginx + phpfpm installation causes PHP files to download

I just finished installing Nginx and PHP-FPM using the steps in guide here. However, the test PHP info page seems to be downloading instead of showing up on the browser. Here's what the config looks like: php.ini [root@localhost ~]# grep…
rahulnair
  • 1
  • 1
0
votes
3 answers

Permission Denied to PHP Files on Centos 7 with nginx

I have problem WHAT I DID Install Centos 7.2 with nginx 1.10 -- create a nginx server block sudo mkdir -p /var/www/example.com/html -- set permission sudo chown -R nginx:nginx /var/www/example.com/html --sudo chmod -R 755 /var/www set setenforce…
vTillmann
  • 11
  • 1
  • 8
0
votes
0 answers

New Apache 2.4 MPM-Event server: (22) Invalid argument: ap_queue_pop failed

After ordering and setting up a new web server (64bit, 4 vCores, 6GB RAM, Ubuntu 14.04) with Apache 2.4.7 (and PHP7 fpm) as event MPM but during busier traffic hours Apache crashes. The error log is filled with hundreds of entries (even during less…
DevDavid
  • 35
  • 1
  • 8
0
votes
1 answer

Using nginx with nagios3, getting blank page

I'm trying to set up nagios3 with nginx on Ubuntu 14.04, and I'm having some trouble that I hope someone can shed some light on. I just get a blank page, instead of the expected Nagios page. It seems to be serving the index.php file, but empty of…
Phyl
  • 1
  • 2
0
votes
1 answer

503 Bad gateway for php only html works fine

I have configured aws instance from amazon ec2 linux image and configured nginx and php on server. Server serves html pages normally but don't serve php pages and also shows 503 Bad gateway error when open in browser. Below is my nginx server…
Shailesh Sutar
  • 1,517
  • 5
  • 23
  • 41
0
votes
1 answer

nginx download php script on HTTP but not in HTTPS

I'm nginx with php-fpm on my server. I configured nginx with SSL (Let's Encrypt) and made HTTPS the default instead of HTTP. The problem is that when accessing the web via HTTP the php file is downloaded, but in HTTPS the script works. I restarted…
apeiron
  • 3
  • 2
0
votes
1 answer

Configuring Jetty for FastCGI has worked, but how to add virtual hosts?

On CentOS 7 Linux I have successfully followed the guide Configuring Jetty for FastCGI. However the $JETTY_BASE/webapps/jetty-wordpress.xml file in the guide serves a single Wordpress installation located in /var/www/wordpress:
Alexander Farber
  • 714
  • 4
  • 17
  • 38
0
votes
1 answer

PHP Fatal error: Maximum execution time of -1 seconds exceeded

I have a script which has a long running MySQL query and PHP returns a huge number of records as it is used to fetch raw logs for users. I am finding it a little strange but i am getting time out after setting max_execution_time = -1. I have also…
Ruchit Rami
  • 333
  • 1
  • 8
  • 15
0
votes
1 answer

PHP-FPM using too much memory

I have a VPS box that runs a few websites for me as well as some scripts and it seems like its running out of memory. It has 1GB total memory. It looks like php-fpm exhausts the memory. Before it was simply killing other processes (like mysql) to…
Mo Beigi
  • 141
  • 1
  • 6
0
votes
0 answers

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 different, but similar IP). connect() to…
jarvis
  • 2,006
  • 4
  • 18
  • 31
0
votes
1 answer

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. Please upload something more substantial. This error…
David L.
  • 3
  • 1
  • 3
0
votes
1 answer

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 using: #user html; #user root…
user355594
0
votes
1 answer

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.
frlan
  • 573
  • 1
  • 8
  • 27
0
votes
1 answer

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, email will be signed. ex. console command: php…
Waki
  • 101
  • 3