Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
11 views

Unable to install PHP 7.2 on Ubuntu 14.04.5 LTS [on hold]

I'm running a server with Ubuntu 14.04.5 LTS and has PHP 5.6 installed and used for a basic site over Nginx. I tried addinng Ondřej's PPA to the system's Apt sources by running: sudo add-apt-...
0
votes
0answers
8 views

Passing PHP headers to NGinx Proxy

I have nginx setup as a proxy in front of APACHE, which in turn talks to PHP-FPM. It turns out, nginx is cutting out (or better to say not passing through) headers that are set directly in PHP via ...
1
vote
1answer
392 views

Xdebug Profiler Aggregate always crashes (xdebug.profiler_aggregate=1 causes coredump in xdebug.so xdebug_profiler_output_aggr_data())

Whenever I go to localhost I get a 404 error, until I mark xdebug.profiler_aggregate=0 The reason why is xdebug.so coredumps (SEGFAULT) [Xdebug] zend_extension=/usr/lib/php/20160303/xdebug.so xdebug....
0
votes
1answer
1k views

NGINX configuration for video streaming server

I have purchased cloud server at digitalocean.com with 2GB RAM and DUAL CORE Processor. I want to set-up video proxy service i.e. to proxy youtube videos. I have installed NGINX + PHP-FPM server and ...
0
votes
1answer
24 views

How I can use variables in nginx config to provide some paths for NGINX?

I want make dynamic subdomains with logs in separate directories, but have a problem with it: If I provide a path to logs like /var/www/demo/subdomains/$sub/logs/access.log and same with error, NGINX ...
1
vote
1answer
27 views

how to know how many children and servers set on PHP-FPM

I realised a big problem today, too much traffic made my website totally down but i have a big server to host it. Here's what i got : [20-May-2019 14:23:02] WARNING: [pool www] seems busy (you may ...
-1
votes
1answer
40 views

Getting high load on LAMP server, any PHP-FPM modifications I can make? [on hold]

We released an enhancement that resizes images on the fly using a php library that uses php-gd. Immediately we started having high CPU load issues. 1 min load has peaked at 28 and 15 minute load at 8. ...
-1
votes
2answers
934 views

Apache returns empty response and must restart [on hold]

I have the classical LAMP configuration on several servers, on one server I can frequently see Apache returned an empty error. I have PHP-FPM running to serve .php file, static pages like .html is ...
-1
votes
0answers
13 views

How do I change the default PHP base-version on ssh? [on hold]

I have Centos 7 and Virtualmin installed, with the tipycal php-fpm 5.4, rh-7.0, rh-7.1. rh-7.2 that you can choice between the versions you prefer for every virtualhost on Virtualmin control panel, ...
0
votes
0answers
20 views

apt-get install package for different distro

My dev environment at work runs ubuntu 14.04 and I need to install php7.2 on it. We use a vagrant machine with a setup script that used to do this automatically. First thing it added the repo with ...
2
votes
2answers
2k views

Configure Centos7 Apache 2.4 php-fpm to run as user

I would like to configure a Centos 7 Apache 2.4 Linode to use php-fpm to execute php as the file owner. The docs for earlier Centos6 / Apache2.2 don't work and the configurations I have seen for ...
0
votes
0answers
30 views

SAFARI error white page with symfony and htaccess with php-fpm all work on chrome,IE, firefox

I have a problem i just finish and upload my site but he not work with safari got white page i check log [Thu May 16 07:56:17.534196 2019] [authz_core:debug] [pid 5671] mod_authz_core.c(820): [client ...
1
vote
0answers
13 views

PHP7.3-FPM with Apache: Unknown script request execution timed out

I configured Apache 2.4 MPM Event with PHP7.3-FPM on a pretty busy web server as follows: Timeout 90 <Proxy "unix:/run/php/php7.3-fpm.sock|fcgi://php-fpm"> ProxySet disablereuse=on timeout=...
21
votes
8answers
53k views

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...
0
votes
1answer
928 views

nginx php-fpm uploaded files have nginx ownership after executing move uploaded file

I have a problem with php 5.3.6 using PHP-FPM and file uploads. My Nginx runs as user nginx PHP-FPM uses pools configured for each vhost. For example a user: test group : test runs one pool. When ...
2
votes
1answer
14 views

If you are running php-from does tuning the apache mpm still do anything?

So I switched to php 5.6 with fpm. I see there are now only 4 apache processes but about 400 php-fpm56 processes. I've been tuning the php-fpm process (to little effect) by playing with the pm.xxxxx ...
0
votes
1answer
949 views

Nginx rewrite URI to remove a prefix?

I have a slim application that I would like to place under a directory path on a domain. Currently I have it working fine using the default slim file provided, but I would like to put a rewrite rule. ...
0
votes
1answer
292 views

only way to clear nginx cache seems to be restarting the entire server

Running into this problem.. nginx seems to persist files that are no longer on disk, its not a browser cache issue as I can test it with curl.. eg.. curl https://staging.xxxx.co/ <!DOCTYPE html>...
0
votes
1answer
55 views

504 Timeout Using to Many cUrl From Website That is Down

I have a dedicated server with 32 gb ram / 8 processors. I use on all my sites cUrl php displaying some code. The website from where I make the cUrl is a VPS where I use another cUrl with multiple ...
1
vote
0answers
16 views

Is it possible to use Opcache to specific website only?

I run few wordpress websites on single Vps server. (Ubuntu 18.04 + Nginx + php7.3 + mariadb) I was changed code like below to use opcache in php.ini. opcache.enable=1 opcache.enable_cli=1 opcache....
5
votes
1answer
2k views

PHP Session Storage in Fault Tolerant Memcached Pool

I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session ...
1
vote
4answers
4k views

Prestashop 1.7 too many redirects on frontend shop

I keep getting ERR_TOO_MANY_REDIRECTS when trying to navigate to the frontend shop of a Prestashop 1.7 site. However it is fine when going to the admin backend. Any suggestions would be helpful. ...
1
vote
1answer
352 views

What causes Opcache to manually restart

I've setup opcache with php-fpm but for some reason, it keeps manually restarting. I've not actioned a restart and I've set the force restart timeout to 2700 seconds (2 hours) so the cache shouldn't ...
0
votes
3answers
73 views

PHP is stopping a web-based script after 60 seconds

I'm working in a Bitnami installation of Apache2 and PHP (5.6) and we have trouble with a script that's taking longer than 60 seconds to complete. This script in question is failing after 60 seconds, ...
-1
votes
2answers
6k views

AH01071: Got error 'Primary script unknown

Debian Linux 8.10, Apache version 2.4.10, FPM/FastCGI. I have created a 1st virtual host. After hours, I could get it working. Then I have created another virtual host, with almost the same config =...
0
votes
0answers
18 views

css & js being seen as text with nginx sub location

I have a websiteA which is working juste fine. When going to websiteA/backend, a sub location is used within nginx to serve another website. With my config, a blank page is returned when going to ...
1
vote
1answer
3k views

Codeigniter URL only work for default router

I've installed Codeigniter on Nginx with this configuration : server { listen 80; server_name myserver; root /usr/share/nginx/html; index index.php index.html index.htm; error_log /var/log/...
1
vote
1answer
470 views

MongoDB or mongoclient not closing connections

I'm having an issue with our mongodb server having too many connections open. We have tracked down the problem to be related to the incoming connections from the vhost with the php server. sudo lsof ...
1
vote
1answer
974 views

Nextcloud 14 does not upload files bigger than 1MB

I am running Nextcloud 14 on Debian Stretch with nginx, php-fpm7.2, mariadb and redis inside a LXC container (Proxmox VE, lvm thin storage). On another LXC container, alpine linux 3.8 runs an nginx ...
1
vote
2answers
8k views

Nginx upgrade to 1.8 - Now getting 502 bad gateway

Today I upgraded my localhost server from nginx 1.6.3 to 1.8.0 and now all my local websites are getting a 502 bad gateway. A standard nginx config file is as follows server { charset utf-8; ...
1
vote
2answers
2k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use PATH_INFO ...
0
votes
1answer
2k views

another php.ini for domain with nginx php-fpm working in fastcgi

I working with nginx and php-fpm and use unix:/cls/php-fpm.socket; I have enable xcache for hole server setting it in php.ini and want to disable xcache for 1 domain I did it with this in server ...
1
vote
2answers
9k views

php7.0-fpm not working with apache2.4 on Ubuntu-16.04

I'm using Ubuntu-16.04 to establish an apache server. I use php-fpm to handle php files. I followed this post. After configuration, my apache2 and php7.0-fpm services restarted correctly. But when I ...
1
vote
0answers
102 views

What is causing my php-fpm child workers to hang?

A low-traffic website on a web server I manage is periodically down with a 503 error until php-fpm is restarted. The setup is: DigitalOcean droplet CentOS 7.6 Apache 2.4 (Event) PHP 5.6.40 (FPM) (...
1
vote
1answer
18k views

nginx: FastCGI sent in stderr: “Primary script unknown”

Using the latest version of nginx (1.10.0) and php-fpm (PHP 7.0.6) on 64-bit arch linux. When attempting to request index.php for a DokuWiki installation, I get the following error: 2016/05/21 22:...
1
vote
2answers
4k views

Nginx + php-fpm - recv() error

I get the follow error in the nginx log [error] 17734#0: *6643 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [cut], server: [cut], request: "...
2
votes
2answers
1k views

nginx + PHP-FPM (7.0) hangs on some requests

I'm experiencing a weird issue with nginx + PHP-FPM hosted web app build with Symfony2. Basically, from time to time, there's a request that is not handled, instead the browser shows that it's waiting ...
1
vote
1answer
2k views

Nginx CentOS 7 PHP-FPM 7 502 Bad Gateway

I have configured Nginx, PHP-FPM 7 on CentOS 7. I am now having a 502 error. In www.conf: user and group are nginx. listen = /var/run/php-fpm.sock listen.owner = nginx listen.group = nginx listen....
0
votes
1answer
2k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
8
votes
6answers
18k views

PHP FPM gives permission denied?

I read several entries on why PHP-FPM might give me permission denied but I can not solve it. The error logs read like: 2013/04/20 23:33:28 [crit] 15479#0: *6 open() "/var/lib/nginx/tmp/fastcgi /...
1
vote
1answer
2k views

Nginx reverse proxy causing file downloads to take excessive time to start

Overview My web app allows users to upload files which are stored on s3 via my servers. When a user requests a file my web server retrieves it from s3 then sends it on to the client. I recently ...
0
votes
2answers
3k views

Temporarily website outages, fastcgi PHP communication aborted

I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid 2599:...
0
votes
1answer
2k views

nginx php-fpm blank page

I know, there are many questions related to this topic, but for some reason none of the other solutions worked for me. So here it goes: When I'm accessing a subfolder in my root folder /dev/ ...
2
votes
1answer
7k views

Server Reached MaxRequestWorkers Setting

New 8 GB Dedicated Server stopped working during peak time and in Apache error.log, I found following errors: [mpm_prefork:error] [pid 7565] AH00161: server reached MaxRequestWorkers setting, ...
0
votes
1answer
18 views

Server with Froxlor UI; Permission error with PHP FPM and nginx

I'm running a vhost that provides a Froxlor web UI for configuration. Froxlor generates the config files for everything in its scope automatically. The problem I'm currently facing is that Froxlor ...
2
votes
1answer
79 views

How do I get Nginx to work with subdirectories? [Nginx, Let's Encrypt, basic auth]

What I want: I want to install Mautic in a subfolder of my web root. I have a domain https://example.com and I want Mautic to be accessible from https://example.com/mautic. What I have: I have a ...
0
votes
2answers
45 views

Line breaks in PHP's stack trace in nginx error logs disturbing logstash analysis

I am using nginx with PHP-FPM and ELK as log file analysis. When a PHP script causes an error the interpreter the error will be send back to nginx and nginx puts the error into the error.log file. ...
0
votes
1answer
44 views

Kerberos authentication not working with Apache and PHP-FPM

I have configured kerberos authentication in apache with a php-fpm drupal backend. Checking the apache logs it looks fine at first glance but somehow it seems that the authenticated user gets lost ...
0
votes
1answer
4k views

Nginx throws a 404 error when trying to access a CodeIgniter (PHP) controller

I'm trying to use CodeIgniter with Nginx. I'm on development so I'm running on localhost. This is my /etc/nginx/sites-avaiable/default file: # You may add here your # server { # ... # } # ...
1
vote
1answer
42 views

PHP Not working through Symlinks (CentOS, Nginx, PHP-FPM, PHP7)

When I use this config, PHP files work in the base folder (/var/www/dmcblue.com/www). But I added a symlink there as data from /usr/share/phpMyAdmin. Files are accessible (like http://[IP_ADDRESS]/...