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.

-1
votes
0answers
17 views

NGINX falls with a large number of domains

i have a problem with my server: it's old I3-2130 (it's good, really), 8 gigs RAM, Also there is 500 of SWAP. First, i have a huge list of domains now it's about 5k and i planning to increase it to ...
6
votes
3answers
4k views

Nginx/PHP-FPM long log lines get truncated

I am unsure is that is a Nginx or PHP-FPM setting, but long log lines are getting truncated. Is there a setting to increase the max log line length?
1
vote
1answer
995 views

nginx wildcard server_name for subdomain gives index.php 404 error

I've been using this server configuration for wordpress which works great on my local machine: server { server_name example.example root /home/user/sites/example/example/html; index ...
171
votes
17answers
548k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
0
votes
0answers
21 views

Trace routes to find the downtime reason

Our server was down for serving http requests for some minutes. The web server is nginx and php-fpm handles the php processes. So in the middle of downtime duration I took a look at nginx's access.log ...
0
votes
1answer
999 views

php-fpm lot of childs zombies exiting after huge amount of seconds + 502 errors

I'm facing the following problem on my nginx/php-fpm server : I get random 502 (bad gateway) errors on AJAX calls (autocompletion actually). Everything else is working fine, except autocompletion. On ...
67
votes
14answers
238k views

Nginx 1 FastCGI sent in stderr: “Primary script unknown”

My first time using Nginx, but I am more than familiar with Apache and Linux. I am using an existing project and when ever I am trying to see the index.php I get a 404 File not found. Here is the ...
0
votes
2answers
5k views

NGINX+PHP-FPM7 FastCGI sent in stderr: “Primary script unknown”

Can't get it work. I've been reading the forums and trying here and there. It's a fresh installation on AWS Linux2 AMI (redhat based), installed wordpress at /var/www/wordpress, set permissions, have ...
4
votes
2answers
3k views

nginx php-fpm child exited with code 0

Anyone had a similar problem with php-fpm 7 with 11.0-RELEASE-p8 or know how to debug it? Situation starts after few minutes and show only half pages to clients. Any pages show up about ~62kb of ...
0
votes
1answer
1k views

Why does my server running nginx/php-fpm keep losing session capability without generating any errors?

I am managing a server that has a couple dozen websites on it and they have all been working fine until last week when it was noticed that one site had seemingly lost the ability to maintain session ...
0
votes
1answer
40 views

NGINX FastCGI Cache on NGINX > Apache > PHP-FPM

I had failed attempts earlier at getting Nginx Fast-CGI caching to work in Nginx > Apache > PHP-FPM config so I started fresh on a new server but am still having issues. The server has a clean ...
0
votes
1answer
1k views

Joomla Extension Uninstall Causes 502 Bad Gateway

We have a VPS with some PHP websites hosted on our Ubuntu 12.04 LTS servers using NGINX. In a Joomla 3 site, when uninstalling an extension that errors out, the page shows an NGINX error page with a ...
2
votes
0answers
27 views

PHP-Script cannot create directories outside of web root [closed]

I have a strange issue with my drupal 8 installation on Ubuntu 18.4. The Drupal Webform-module is not able to create needed directories. Therefore file upload fails. The error occurs if I use the ...
3
votes
1answer
37 views

How to serve PHP from root dir and userdir?

I tried multiple combinations but I must be missing something. Closer I got is with the following config file, I get static content in /var/www/html and /home/user/www, but php only works in the ...
1
vote
1answer
1k views

Clean Url problems WIth ubuntu apache , php-fpm, fastcgi

Well this is a kind of repost of this, but no one has replied to my question so far, so I am here. I am using Apache/2.2.17 (Ubuntu) mod_fastcgi with php-fpm and I can't enable clean URLs as the site ...
3
votes
1answer
1k views

php-fpm keeps locking up

For some reason, php-fpm keeps locking up and/or hanging. It works for a little while, and then it will randomly just 'hang' for a long time upon trying to load a webpage. There's absolutely nothing ...
9
votes
3answers
4k views

Serve static content using docker + nginx + php-fpm

I'm trying to configure a php webapp using docker. The idea is to run the app using php-fpm in a standalone container and have another container that will run nginx. The idea for this setup is to use ...
0
votes
0answers
23 views

Request with Keep-Alive freezes ngnix when issued twice

I have a 3 docker container configuration, NGINX, php-fpm and a mysql db. A request I just added, which involves sending a ~80kb png across HTTP causes nginx to freeze and neither complete the request ...
0
votes
1answer
55 views

PHP-fpm is slow with nginx,

So, I have been running some benchmarks on my docker container (nginx connecting to php-fpm) and it's over 70 x slower than bare metal. I can manage 100 requests a second compared to bare metal which ...
2
votes
1answer
1k views

NGINX / PHP-FPM: Ajax slow first request, good next ones

The CMS is Elxis, which comes from a variant of Joomla (PHP). The server is running nGinx with PHP-FPM All requests get logged and executed, eventually, B U T!!! When firing a specific request via ...
1
vote
1answer
1k views

php-fpm: locale settings change themselves

I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: Array ( [decimal_point] => . [thousands_sep] => [...
3
votes
1answer
261 views

How to check current pm.max_children setting?

I have modified pm.max_children in /opt/plesk/php/7.0/etc/php-fpm.d/domain.com.conf file. I restarted the php70-fpm service and want to check whether my settings are enabled or not. How can I check ...
1
vote
1answer
92 views

Nginx doesn't pick the right php-stack in location

UPDATE 28.02.2019 The problem is the following part inside my server block: # Don't use `$uri` here, see https://github.com/yandex/gixy/issues/77 rewrite /wp-admin$ $scheme://$host$...
0
votes
0answers
30 views

Ubuntu 18.04 Apache 2.4.29 After changing mpm_prefork to mpm_event, apache just serves php source code

I followed this but got crazy results: switch apache from prefork to event in Ubuntu 16, get php 7 working My goal is to also enable http2, which is not compatible with mod_prefork. What happens is ...
7
votes
2answers
7k views

PHP5-FPM does not create unix socket directory within /var/run

I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm. /etc/php5/fpm/pool.d/www.conf listen = /var/run/php5-fpm/$pool.sock The problem is that it will not automatically ...
0
votes
1answer
1k views

How to generate a php.ini file out of current environment?

For some of my running PHP web applications (running under PHP-FPM) I need to setup cronjobs. Currently all those cronjobs are using the CLI default php.ini. Is there any easy way (e.g. script) ...
0
votes
1answer
71 views

'File not found.' after switching to php fpm (apache, ubuntu server 18.04 LTS)

I know this question has already been answered mutiple times, but the answers are almost all diffrent and are sorta confusing. I have tried alot of answers but none of them work. I follow the answer ...
0
votes
1answer
1k views

Apache 2.4 virtualhost_alias with php5-fpm and proxy_fcgi

After moving my server from mod_php to mod_fastcgi and php5-fpm, I've found that everything works, except my wildcard virtualhost. My wildcard virtualhost works as such: *.dev.myserver.com ...
0
votes
1answer
1k views

phpmyadmin fails to load “PHP message: PHP Fatal error: Class 'PMA_Message' not found in /usr/share/phpMyAdmin/libraries/Message.class.php”

After upgrading some of the php libraries on our server phpmyadmin failed to load. I see the following error on my web browser when trying to access browser phpMyAdmin - Error Cannot start session ...
0
votes
1answer
1k views

Configuration Issues with PECL and PHP-FPM

I'm using Ubuntu Natty. I recently installed NGINX 1.0.6 and PHP 5.3.8 (with --enable-fpm) from source. Everything went ok and I tested it with an info.php page with phpinfo(). I then installed APC ...
0
votes
1answer
1k views

Recurrent 502, 504 errors despite low cpu and memory usage

I'm struggling with this problem since quite a while. I have t2.site instance on AWS hosting a very low traffic personal website built with wordpress, nothing extraordinary. I first used Apache2, and ...
0
votes
0answers
12 views

proxy:unix not working with httpd in centos 7

i am using httpd as web server and php language using fpm but all i get blank page with no errors conf file : <Directory /home/admin/web/eslam.eslam/public_html> <FilesMatch \.php$>...
0
votes
1answer
1k views

Apache2 - default php7.2-fpm.conf has to be included in every virtual host?

I'm trying to move from mod_php to php-fpm using mod_proxy_fcgi. After installing the needed modules I tried following the notice I got during install: Not enabling PHP 7.2 FPM by default. ...
3
votes
1answer
1k views

Preventing PHP-FPM from crashing under light load

I'm getting a DoS attack on a wordpress site that I host. 173.192.109.118 - - [30/Sep/2015:22:31:36 +0000] "POST /xmlrpc.php HTTP/1.0" 499 0 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" ...
1
vote
1answer
311 views

Php-fpm7 maximum pools limit reached

I've setup our server so that each site has its own user. This seems to be the standard way to do it (and most secure). I seem to be reaching some sort of pool limit. The php-fpm.conf file clearly ...
2
votes
1answer
1k views

Intermittent error 404 during higher loads. (nginx/php/apc/mysql)

I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php ...
0
votes
2answers
1k views

Nginx error memory

I have a problem with Nginx + PHP. This is error PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 896464024 bytes) in /sistemas/html/...
0
votes
1answer
1k views

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 ...
-1
votes
1answer
26 views

Need to know where the location of PHP-extensions and others

I need to know where I can find the location of the list below : include_path = /path/PHP-pear/ extension_dir = /path/PHP-extensions/ mime_magic.magicfile = /path/PHP-magic....
0
votes
1answer
14 views

Why APCu version mismatch the APC version reported in PHP?

I installed APCu for a MediaWiki website but I get some nasty errors about the caching. I noticed that the version of APCu is not the same as the one reported by APC. I verified the installed ...
1
vote
2answers
1k views

Apache: “Service Not Available” after setting up php-fpm chroot

I'm running Debian Jessie with Apache 2.4.10. I have been through the "File not found" problem, and ended up referencing this question. The only difference between my setup and his is that I would ...
-1
votes
0answers
60 views

PHP-FPM can't connect to mysql through Localhost but can through 127.0.0.1

I have PHP 7 installed with php-fpm and am unable to connect to mysql with PDO or mysqli. Both give the same error: SQLSTATE[HY000] [2002] No such file or directory If I switch over to CLI it ...
1
vote
1answer
1k views

PHP-FPM TCP connections not terminating in time

I'm serving Wordpress pages via nginx/PHP5-FPM using APC caching (through the W3 Total Cache plugin). Nginx communicates with PHP-FPM via TCP sockets on port 9000. I've adjusted the number of max ...
1
vote
3answers
2k views

Docker + Nginx + PHP-FPM error: [emerg] 1#1: host not found in upstream

I have been on this error for 3 (full days) and still trying to figure out the issue and at the same time contemplating suicide :) I have a docker setup for LEMP stack that I cloned from this repo: ...
2
votes
1answer
5k views

proxy_fcgi:error (70008)Partial results are valid but processing is incomplete. AH01075

I have a server running with: Ubuntu 16.04 Apache 2.4.18 WORKER-MPM PHP 7.0.8-0ubuntu0.16.04.3 PHP-FPM OPcache 7.0.8-0ubuntu0.16.04.3 On the browser there is an ajax script that each 5 sec sends a ...
0
votes
1answer
36 views

Apache 2.4 + PHP-FPM + Dynamic ProxyPassMatch

Expect result: If I go to http://foo.local/index.php, file /var/www/html/foo/index.php will be executed. It will be similar if I go to http://bar.local/index.php, /var/www/html/bar/index.php will be ...
3
votes
1answer
5k views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
0
votes
1answer
1k views

PHP-FPM Loading Wrong Configuration File

Value of CLI running php --ini Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: /usr/local/lib/php.ini Value of phpinfo from my nginx/php-fpm web server page: ...
8
votes
5answers
17k 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 /...
0
votes
0answers
96 views

Apache? ERR_INCOMPLETE_CHUNKED_ENCODING 200

I've been trying for several days to find out why the following error is happening to me: GET https://www.******.com/ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) I have also looked at some ...