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
68 views

session.save_path and open_basedir in PHP 5.6

I've been playing around with PHP 5.6 and configuration options "open_basedir" and "session.save_path". I noticed that "session.save_path" doesn't have to be included in "open_basedir". I tried this ...
0
votes
1answer
158 views

NGINX error when using external PHP-FPM

I am currently trying to setup an 3 servers, 1 for nginx and 2 for php-fpm. the nginx server also have php-fpm since i tested if everything works well. while using upstream php-external{ server ...
2
votes
1answer
208 views

Flarum on a sub-directory along with Laravel (Nginx)

I've been trying to put Flarum on a sub-directory with Laravel being on the root directory. I've tried a number of things and the only response that I get from the server is either a 404, or the ...
1
vote
1answer
110 views

FastCGI sent in stderr: “Primary script unknown” + Owncloud

I experience a weird error with my nginx/php5-fpm configuration. I already posted this question on the owncloud forums and asked the nginx forum, but they have no idea. As i searched serverfault, the ...
1
vote
1answer
605 views

Updated cURL not taking effect in PHP

I have an application running through Docker, based on the official PHP Docker image. I've extended it to update cURL and get it working with nghttp2 and openssl, which is what I need for HTTP/2 ...
0
votes
0answers
80 views

Apache with mod_php fpm fastcgi, which is most secure?

I have a web server to install and I would like to have your minds about my choice of using mod_php instead of fastcgi of fpm. On the web server there is only one Drupal website and only one system ...
0
votes
0answers
32 views

php-fpm Reload Breaks up everything

I'm using PHP 7.0.3 FPM Service on Centos 7.2 I have currently 300 different FPM pools under 300 different users that all runs with ondemand. The problem is when i add a new pool i have to ...
0
votes
0answers
124 views

error 524 timeout cloudfire in linux server?

My plan in a VPS digitalocean is: 4 GB RAM 60 GB SSD DISK (And nginx (webserver), php5-fpm, varnish and a store Magento, and Cloudfire for dns) So.... i have a magento store and when i try to make a ...
0
votes
1answer
10 views

Changing the name of php5-fpm pool causes 502

I have a webserver running multiple sites, each site has it's own php5-fpm pool. One particular site is behaving very strangely. I have a conf file setup for it in /etc/php5/fpm/pool.d/ and ...
0
votes
0answers
29 views

Server Specs for browser game that hugs cpu

Our team have developed a web browser game, our servers are using nginx and php-fpm to host the website. the game consist of two parts an api and the game itself. both applications reside on its own ...
0
votes
1answer
96 views

Ubuntu - Nginx + php5-fpm - suddenly times out every request even after restart

Caveat - Newbie nginx/php5-fpm/ubuntu I inherited a couple linux boxes and have had the same thing happen on both. I assume it's user error, but for the life of me I don't know what I did. Symptoms:...
0
votes
1answer
28 views

PHP FPM Timing Out

We have PHP FPM with Apache running Wordpress. Occasionally I have noticed certain plugins that call external URLs have the ability to really mess with FPM resulting in lots of timeouts etc if the ...
1
vote
1answer
41 views

Nginx serving .PHP as a download only when .php is added with arguments

Here is my current nginx config: server { server_name mydomain.example; access_log /srv/www/mydomain.example/logs/access.log; error_log /srv/www/mydomain.example/logs/error.log; root /srv/www/...
0
votes
0answers
28 views

Jail php (nginx + unix socket) in a folder

I have to store two php applications in a single server. Following my current setup: /etc/php5/fpm/pool.d/app1.conf [app1] user = app1 group = app1 listen = /var/run/php5-fpm-app1.sock listen.owner =...
2
votes
1answer
193 views

Run a specivic (older) php version with nginx, php-fpm on debian

In order to migrate old php software, I want to run php 5.3.* so I: Removed php via apt-get purge php* Added the corresponding http://snapshot.debian.org/archive/debian/ to the sources Installed apt-...
1
vote
1answer
375 views

PHP 7 and 5.6 parallel in Nginx

I want to use PHP 7 with newer apps and PHP 5.6 with apps, that doesn't work with PHP 7. So I try to configure Nginx to enable different PHP versions for different pathes. But it doesn't work: # ...
3
votes
1answer
368 views

php-fpm and nginx @ high CPU usage?

My server is with DigitalOcean with the following plan: 2 Core Processor 2 GB Memory My website is receiving thousands of visitors, however, both CPU cores are @ 100%: The issue seems to be with ...
0
votes
1answer
376 views

nginx + php-fpm is extremely slow

I have a very low tier VPS - 1GB ram and 1 CPU w/ 30gb SSD running CentOS (v7.2.1511). The server only servers php-fpm (v5.4.16) and nginx (1.6.3). Mysql and Mongo databases are on another server. I ...
1
vote
0answers
69 views

PHP page refuses to appear despite checking php-fpm, SELinux, and nginx

Problem I have a small web server that hosts a small PHP page that performs a very small function. I used to host this on another machine. I move the website to a new machine with a different ...
0
votes
0answers
18 views

Why was my max_children reset on server restart?

A week ago, I modified my /etc/php-fpm.conf file and changed pm.max_children = 215 to pm.max_children = 130 Last night, I scheduled a reboot and this morning, when I came in we were again at 215....
0
votes
2answers
1k views

PHP 7 cannot connect to MySQL

I have compiled LAMP servers for hundreds of times. However I am facing issues with PHP 7. I compiled it properly, but it cannot connect to MySQL in localhost. phpinfo shows PDO and mysqli are ...
0
votes
0answers
50 views

NGINX returning 404 error for just one file

I have an NGINX setup with virtual hosts running on Ubuntu 15. On one of them, suddently, a file called assigndocs.php returns a 404 error. But just that one file. All the solutions I found answer ...
-3
votes
1answer
24 views

php5-fpm works for a bit and then stops (nginx/wordpress) [closed]

I'm running wordpress on an nginx/php5-fpm setup and every few minutes, php stops working. When someone tries to subscribe, it works at first and then it stops and takes the user to a 500 server ...
-1
votes
2answers
148 views

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX ...
3
votes
1answer
253 views

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi): &...
0
votes
1answer
300 views

Centos 7 nginx php upgrading

My currently running website works great and it currently using php 5.4.45 FPM/FastCGI, however I would like to upgrade to php 5.5.9+ for an api documentation subdomain that has that php requirement. ...
0
votes
0answers
142 views

Apache: A lot of connections gracefully finishing?

at the moment I'm mentioning that a lot of connections are gracefully finishing if I visit my apache2 status-page. What does that mean and why are they gracefully finishing? Some of them are in this ...
-1
votes
1answer
2k views

How to solve “The apache2 configtest failed.” in ubuntu 12.04 lts [duplicate]

After update my php got the error: The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/...
3
votes
1answer
34 views

PHP FPM, location nesting vs unnested for avoiding code execution

Is there any advantage using: location ~ \.php { location ~ \..*/.*\.php$ { return 403; } fastcgi_pass unix:/var/run/php5-fpm....
1
vote
0answers
66 views

High load with Nginx - with low traffic websites

Once in a while (maybe once a day?) I've got a load average of 10. That lasts for like 30 min (where I can't reach any of websites on this server) and then it's fine again. I just happened to be via ...
0
votes
1answer
139 views

Nginx fastcgi_cache not working for one WP site (but working OK for time.php on different vhost)

I am running Ubuntu nginx 1.8 with fpm php 5.5, on one site I am able to get cache working (with a simple time output) <?php echo time();?> shows: Connection:keep-alive Content-Encoding:gzip ...
1
vote
0answers
30 views

nginx + php-fpm/hhvm specific openbase_dir requirement

I have structure like this: user1 - site - public - functions.php user1 - site - public - functions.php appuser - app - index.php nginx sets php to appuser - app - index.php which includes ...
0
votes
1answer
98 views

nginx + php-fpm downloading php (CentOS 7)

I have nginx and php-fpm installed on Centos 7, when i try and go to a test php file it downloads it instead of running and rendering in the browser. All other html, image files etc display fine. If ...
0
votes
1answer
65 views

An other FPM instance listening on php5-fpm.sock

i have set up multiple PHP versions in ISPconfig 3 and the hole thing actually works except i can not start more then one Version at a time then i get this error "An another FPM instance seems to ...
0
votes
0answers
28 views

PHP5-FPM is not working behind Varnish

I've got the following Setup: A Nginx Server which listens on Port 443 with the following Config: server { listen 443 ssl http2; [SSL Part etc.) location / { proxy_pass http://127....
0
votes
1answer
87 views

Simple NGINX setup not working

So I am new to NGINX, and I am trying to setup a simple phpinfo page in /home/codehitman/nginx/phpinfo directory. I have setup the /etc/hosts file with the following directive: 127.0.0.1 phpinfo....
1
vote
2answers
30 views

what are my options for linking directories

I have a configuration file which refers to a file structure. This is what I have <?php // HTTP define('HTTP_SERVER', 'http://XXXX.co.uk/public_html/'); define('HTTP_IMAGE', 'http://XXXX.co.uk//...
0
votes
0answers
70 views

Nginx + php-fpm configuration issue: “Primary script unknown”

I have vagrant box where is running the nginx + apache-fpm. But seems like they doesn't work. When I'm trying to get / on my server I'm receiving 404 HTTP-status with "File not found." body. Error ...
0
votes
1answer
301 views

NginX->Varnish->PHP-FPM Blank pages

I want to put nginx in front of Varnish, which at the same time will go back to nginx to serve some PHP (Drupal). But I am only getting blank pages (from Varnish) with 200 response, but length 0. ...
-1
votes
1answer
841 views

How to upgrade PHP to 5.6.x or 7.0.x on CentOS 7.2?

I'm on CentOs 7.2 with PHP 5.4.16. I'd like to update to PHP 5.6.x or maybe even to PHP 7.0.x if it's safe to do. What are the steps to safely switch to a newer PHP version? These are PHP related ...
1
vote
1answer
193 views

Why nginx alias returnes 404 on .php files?

This configutation works: location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /...
3
votes
2answers
72 views

ubuntu 14.04 Apache 2.4.7 mpm_event Files and FilesMatch not working

We recently switched our Apache 2.4.7 mode from mpm_pre-fork to mpm_event. Since then we haven't been able to get our Files directive to work. <Files "*.php"> Header set Cache-Control "no-...
0
votes
1answer
101 views

File issue with NGinx & PHP-FPM on separate servers

I've done a bit of research on running NGinx and PHP with FastCGI on separate servers, and have successfully set it up on test virtual machines. I've ran into the problem that these articles describe.....
0
votes
1answer
58 views

Php FPM + Apache. Customize 404 for PHP files

I have setup a small Apache instance and configured PHP with FPM. I am using the ProxyPassMatch directive. Now, when FPM does not find the requested file, it will just print out "File not found" and ...
2
votes
2answers
536 views

PHP-FPM occasional “FastCGI: failed to connect to server” error

Ubuntu 14.04.3 LTS Apache 2.4.7 PHP 5.5.9 I switched from mod_php to PHP-FPM about two weeks ago. Everything, for the most part is running smoothly. Except twice now I've had a situation where ...
1
vote
0answers
60 views

php-fpm error log is trucated

I'm setting up test environment where I have nginx and php-fpm on centos 7. I have successfully setup everything and I can run php code. This is my configuration: nginx version: nginx/1.9.9 ...
0
votes
1answer
106 views

Setting up nginx and php-fpm on CentOS 7 - which config file do I alter? I'm so lost

I'm intermediate with Ubuntu and Apache, but a total noob to CentOS. I want to setup a 1 CPU 1 GB RAM test VPS for a phpbb 3.1 forum, and I'm following this tutorial: How To Install Linux, Nginx, ...
0
votes
0answers
45 views

Wordpress showing article title, but content is showing blank

I recovered from a disaster situation on the server, database is not affected. My wordpress files were old, from previous version (maybe 4.3). When I recovered those file and setup nginx with it, I ...
1
vote
0answers
52 views

WordPress on two separate servers, first one with nginx, second one with php-fpm. Where to keep static files?

For example, I have two servers (or VMs). On the first one I have Nginx installed, on the second one - PHP-FPM. And I need to deploy some app, like WordPress, which does not have two separate folders ...
0
votes
0answers
58 views

benchmarking nginx+php-fpm with apachebench fail rate = %99

my server's specifications is 8 core 16 gb ram there is no problem while benchmarking static files but when i benchmark php files i get %99 fail rate not sure what i configrated as false php-fpm....