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
2answers
88 views

Error with apache 2.4 and PHP 5.6.14-0+deb8u1 With fpm

I have a Vagrant machine with: Apache/2.4.10 (Debian) PHP 5.6.14-0+deb8u1 and PHP-FPM. In some case I get this error: 500 Internal Server Error. And I have this in message in php5-fpm.log ...
0
votes
0answers
56 views

PHP file causes error if not accessed via symlink

I have a PHP file which randomly causes a 502 Bad Gateway error in Nginx. The Nginx configuration is the following: location ~ ^/dscms3/bo3/(.+\.php.*)$ { client_max_body_size 1000M; include ...
1
vote
1answer
28 views

Include common configuration in several php5-fpm pools

Shortly: how can I include the same settings across several php-fpm pools without repeating them for each pool? Details In php5-fpm there are global directives and per pool directives. In all ...
0
votes
1answer
60 views

Service php-fpm does not get user permissions

I have an issue with php-fpm. It is actually the php7 version. I have drupal and it will complain that some directory is not writtable. Only if I start php-fpm as a service like that: #service ...
0
votes
1answer
20 views

How do i know what curl_exec is slow from slow_log

My applications makes curl fetches html pages using curl.PHP-FPM slowlog shows the following script_filename = /var/www/mywebsite.com/public_html/www/file.php [0x00007f2e36a6fdf8] curl_exec() ...
0
votes
0answers
29 views

Nginx - File uploading with a php backend?

I want to set up a simple nginx server that takes uploaded files and runs a few checks and shell commands on them before moving them to the /files directory. Is it possible to do this with a php file ...
0
votes
1answer
286 views

Configuring php7.0 with apache2

I'm running the newly released php7.0 on debian jessie. By now it works all fine. Enabling the pdo_mysqli, I have found mutliple configuration directories for php7. There are: apache2 cli fpm I'm ...
0
votes
1answer
28 views

Can/should PHP-FPM and Apache be run under the same user/uid and/or group/gid?

I decided to reinstall my box's PHP and Apache today to give FPM a go, never used it before and wanted to do some performance tests as I've heard it is a lot faster. Right after compiling and ...
0
votes
1answer
49 views

Nginx redirects all domains to one website

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
0answers
37 views

nGinx & php-fpm Delayed Response

I'm using PHP 5.6.X with nginx 1.8.0 . Nginx Config: user nginx; worker_processes auto; worker_rlimit_nofile 300000; events { multi_accept on; worker_connections 6000; use epoll; } ...
0
votes
1answer
28 views

Nginx vhost downloads file

I've setup nginx and php as this tutorial suggests. I've created a second vhost which is the following: server { listen 80; root /projects/mydomain/; index index.php index.html ...
0
votes
0answers
101 views

FastCGI sent in stderr: NGINX error upstream

Hoping that anyone can help me with a cryptic error in nginx I have. If you look below I've pasted the error I get when I try to upload a movie, and if it helps it's with this ...
0
votes
2answers
73 views

What's the Relationship Between an nginx worker_process and PHP-FPM

Me: New to nginx and FastCGI in general, apologies if this is old hat and obvious, but Googling shows me a lot of people recommending random configuration values, but no one that explains the ...
0
votes
0answers
60 views

Php5-fpm starts and then fails after a few seconds

After an upgrade from ubuntu 14 to ubuntu 15, if I run sudo php5-fpm start, it hangs in ssh but the webserver is online and I can access the website. After a few seconds (maybe 30) the ssh command ...
0
votes
1answer
43 views

nginx makes /dev/root full

On my server, /dev/root is getting full very fast after each reboot: a munin graph showing it if i type sudo lsof | grep "deleted" i get: nginx 6012 www-data 44u REG ...
0
votes
0answers
37 views

nginx + php5-fpm graceful restart : reload on Ubuntu 14.04 LTS

I tried to find a way to gracvelly restart my server. I tried sudo service php5-fpm reload && sudo service nginx reload But this is not working as reloading php5-fpm on Ubuntu 14.04 is not ...
0
votes
0answers
25 views

postfix / php mail() on ubuntu 14.04: no mail sent, no trace in log

Setup: Ubuntu 14.04 postfix 2.11.0 php 5.6.15 Php's mail() function does not send out emails on my VPS and no issue appears on the log. My test script is very basic: <?php ...
7
votes
3answers
191 views

Webserver randomly serves different vhosts

We've got nginx running on Ubuntu Trusty. It serves several websites over https, running on one ip address. Randomly, although it seems slightly related to work load, sometimes single requests turn ...
0
votes
0answers
19 views

How to use php-fpm just for php scripts

I have problem with php-fpm it run every file also direcotry index not working... here is how my virtula host look loke: <VirtualHost *:80> ServerName example ServerAlias ...
0
votes
0answers
15 views

php-fm can not filnd path on apache

Here is my pool setup for php-fpm: [example.com] ; OUR CUSTOM SETTINGS listen = 127.0.0.1:9002 prefix = /home/example chroot = $prefix ; DEFAULT DEBIAN SETTINGS chdir = /public_html user = example ...
0
votes
0answers
28 views

How to set up php fpm work with apache virtual hosts

When I use default config without vhosts everything works fine. But when I add virtual hosts It not working.. Here is how vhost look like: <VirtualHost *:80> ServerName example ...
1
vote
0answers
49 views

PHP compiled with zlib, but doesn't appear in phpinfo()

I have a program that requires PHP to be configured --with-zlib, so I re-ran ./configure, make and sudo make install PHP 5.6.15 on my Ubuntu 14.04 server. However, the program still says that PHP ...
2
votes
1answer
55 views

Inconsistent download size with PHP + NGINX configuration

I'm building a Joomla website using docman for document management/downloading. The site is built on a Ubuntu 14.04 server running Nginx 1.4.2 and PHP5 (FPM). The issue i'm having is that files are ...
0
votes
1answer
536 views

Install httpd24, php56 and php70 as SCL is not working with error “file not found”

Let's start saying that I have read this, this and this at Remi Blog since the question it related to those repositories. The blog entries is not helping me at all or I am missing something here but I ...
0
votes
0answers
136 views

php5-fpm does not start on Debian Jessie

I just upgraded a Debian server from Wheezy to Jessie but I'm having some problems on php5-fpm: Setting up php5-fpm (5.6.14+dfsg-0+deb8u1) ... debconf: unable to initialize frontend: Dialog debconf: ...
1
vote
1answer
42 views

Does launching more then one web container on a single docker host make sense?

Say there is an application powered by docker. There could be containers for database, redis, etc and actual web containers (in my case it is php-fpm & nginx). Alternatively, it could be a purely ...
1
vote
1answer
67 views

Permissions issue: why is user nobody needed in my second php-fpm pool?

I am running FreeBSD 10.2 with a custom-compiled Apache 2.4.17 with php-fpm. The default pool ([www], almost a stock php-fpm setup) ran on user/group nobody/nobody. Apache runs on user/group ...
1
vote
0answers
8 views

Php-fpm corrupts my socket permission on startup

I've installed Apache2.2 with FastCgi module, and PHP-fpm on a Centos server. I configure FastCgi with an external server using the socket option: FastCgiExternalServer ...
1
vote
3answers
278 views

How can I trace the cause of php-fpm terminating?

I have VPS (4 core, 6GB) running centos, nginx and php-fpm, with very little traffic (I have never published the url). Every few weeks (at different times), php-fpm terminates with only the following ...
1
vote
0answers
48 views

PHP unable to mail() in chroot though I can use sendmail inside chroot

I'm building a php-fpm chroot, and am on one of my last steps before calling this a success. The php-fpm chroot is working like a charm. Also, I have mini_sendmail installed into the chroot (in place ...
3
votes
1answer
83 views

nginx and php-fpm “Primary script unknown”

Smells like a duplicate, I know, but I have now tried this Setup 5 Times over, and still I can't get this to work. Most of the configs are complicated with chroot and multi servers etc., but I have ...
1
vote
0answers
46 views

Nginx url rewrite stops going through location code

I'm trying to configure my Phalcon (php framework) project on Nginx. Unfortunately I can't manage to make the rewrite work. In order to better understand my problem please check out the config file: ...
0
votes
0answers
124 views

Imagick fails to enable on Ubuntu with php-fpm and nginx

Alright, I've followed numerous guides trying to get Imagick PECL extension working on my machine but no matter what I do, phpinfo() or extension_loaded('imagick') doesn't detect it. If I run ...
2
votes
1answer
26 views

Why is my connection to php-fpm.sock being refused?

I've seen a bunch of questions about this problem on here but none of those had answers that helped me out. I kept getting a 502 error from nginx so I took a look at the access.log and saw I kept ...
1
vote
1answer
243 views

Installing php-fpm apache 2.4.6 on Centos 7

I am trying to use php-fpm as I have heard it can increase performance on my webserver, and it appears to be working.. but it doesn't look like it has speeded anything up. I ran through the following ...
0
votes
0answers
33 views

EC2 Nginx PHP-FPM Debian Unusual Monitoring graph

I am currently administering a stack of servers composed of a big MySQL DB (~500gb dataset). That is fead and read by http rest api servers on nginx with php fpm. The all lot of it is hosted on EC2 ...
0
votes
1answer
30 views

Good optimization for Mysql [duplicate]

i have 24gb RAM and 4 core LEMP server for run one application with Websocket PHP/Mysql but the problem is cpu going over 10-18% for just one user I dont know if server can crash with many users ...
1
vote
2answers
48 views

Build and install apache mod_proxy with custom PROXY_WORKER_MAX_NAME_SIZE

I am having a problem with a vhost (php-fpm/apache) config. It throws the error below: name ProxyPass worker name ...
1
vote
0answers
13 views

PHP-FPM stalls if one thread times out

I've noticed this for a while, PHP-FPM works perfectly until one thread stalls. For example if it takes too long to connect to another server or to process a database request all threads will stop ...
1
vote
0answers
36 views

logrotate causes php5-fpm downtime

I've noticed that one of our servers starts returning errors just after logrotate runs, i.e. in nginx error log I can see: [error] 8501#0: *118126869 recv() failed (104: Connection reset by ...
1
vote
3answers
142 views

Apache: “File Not Found” after setting up php-fpm chroot

I'm struggling with the final step in implementing a chroot on php-fpm with Apache 2.4 running on CentOS 7. I've successfully setup and tested the php-fpm connection without the chroot. But as soon ...
1
vote
1answer
59 views

chroot php-fpm process to user's home

I'm in the process of moving each of my websites that are on a single server from a single PHP instance (whereby all of the files in all websites were owned by apache, and just the default php library ...
0
votes
0answers
36 views

Nginx SSL / HTTPS issue

I have had an issue regarding SSL + nginx Here is my actual config: - server1 is the front server, used as a proxy server2 is the big server, contains 2 VM where different apps are stored I have ...
0
votes
1answer
117 views

PHP Apache - Handle 1000 simultaneous request

Question moved from Stackoverflow I have a PHP script which handles request from client. I should be in a situation to handle 1000 concurrent requests (using apache benchmark). When I presently run ...
0
votes
1answer
65 views

Joomla “pretty urls” with nginx allow index.php/pretty/url as well as index.phppretty/url (notice the absence of slash)

I am trying to install my first LEMP stack and, after a lot of hours and reading, it's working pretty well (Damn, the www-data group write permissions issue was a tough one). Anyway, my Joomla site ...
0
votes
0answers
51 views

Cannot log into SilverStripe unless I delete the PHPSESSID cookie key

We have a problem of not being able to log into SilverStripe. When we try, we are returned to the log-in page. We have found that if we delete the PHPSESSID key/value pair from the browser's cookie ...
3
votes
1answer
99 views

PHP OPcache is resetting cache automatically

I started using the built-in PHP OPcache of PHP 5.6 and am facing a problem now. I set it up to use up to 1 GB of RAM, which is highly enough for my websites but it never get get it to use the full 1 ...
0
votes
0answers
32 views

php-fpm/nginx Many Continuously Requests

I'm using nginx/1.7.7 and here is config: user nginx; worker_processes auto; worker_rlimit_nofile 300000; events { multi_accept on; worker_connections 300000; use epoll; } http { ...
0
votes
0answers
34 views

Nginx: Serve PHP files from defined location only

I have an AngularJS app in /home/app/front and a PHP backend in /home/app/back. Now I would like to serve static files from / and PHP from /api/v1/ I tried the following config with no success. Nginx ...
0
votes
2answers
80 views

Can't send mail via php with msmtp

I want the server able to send mail via gmail smtp. The installation of msmtp was successful. I able to send using msmtp via the command line. However, when I try to send via php, it got me this ...