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

oci_connect(): Error while trying to retrieve text for error ORA-28547

I have this connection string on an older server which works fine and connects to a remote oracle server. On this new server I installed oracle instant client simple and devel and php pecl oci8. ...
-1
votes
0answers
23 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 ...
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 ...
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 ...
2
votes
0answers
28 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 ...
0
votes
1answer
46 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
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
0answers
33 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 ...
0
votes
1answer
62 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 ...
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
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
votes
0answers
62 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
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....
1
vote
1answer
37 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 ...
0
votes
0answers
117 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 ...
0
votes
1answer
90 views

Upgrading simply from php 5.6.x to 7.x on CentOS 7 with Nginx and php-fpm

I am trying to upgrade the PHP version on a Digital Ocean server from 5.6.19 to the latest PHP 7.2. A lot of instructions found online point to "php72", which makes me wonder if 5.6.19 will be ...
0
votes
1answer
41 views

Apache-PHP slow page in one virtual host causes performance degradation or timeout on other

I have multiple PHP applications running under different virtual host on an Apache server. Each application uses MySQL as backend. Each application uses different MySQL servers in the same data center....
0
votes
1answer
53 views

PHP-FPM open_basedir not working with Apache 2.4

Is there any way to define open_basedir to virtualhost file in my Apache Event MPM? I tried everything and it just does not want to work. Tried fastcgi_param PHP_VALUE open_basedir="/home/user/web/:/...
0
votes
1answer
28 views

Migrate legacy PHP to PHP-FPM

I wonder if I could have some feedback from some people that did the migration from php to PHP-FPM. The issue I have is that I have lots of scripts on the service. Some written by customers and I cant ...
1
vote
0answers
21 views

Nginx / PHP-FPM drop ajax requests intermittently, how could one pinpoint the cause?

I have an issue I cannot get to grips with. We have an app server that has mysteriously started "dropping requests". These are ajax requests. I restart php5-fpm, all runs fine for a few minutes then ...
0
votes
0answers
93 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
80 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
49 views

Suexec/Apache user is not php-fpm 'user'

Suexec/Apache user is not php-fpm 'user'. in my php-fpm pool: [cdnmin] user = cdnmin group = cdnmin listen = /run/php/php7.0-fpm.cdnmin.sock listen.owner = cdnmin listen.group = cdnmin listen.mode = ...
0
votes
1answer
140 views

nginx and php-fpm: “Primary script unknown” while reading response header from upstream

I want pass any api/* route to php-fpm. Specifically to index.php as I use Symfony. This is the only route that should use php. Anything else will be loaded from /usr/share/nginx/html/public (just ...
1
vote
2answers
45 views

php-fpm service disabled by default - why?

Background: The other day our webhost (AWS to be specific) did a reboot due to hardware maintenance and one of our sites went down. It returned a 503 and after some time we figured out that the php71-...
0
votes
0answers
23 views

PHP-FPM is slow only for the sub domain

We have a project running in nginx/php-fpm which is basically a multi-site setup build on Symfony 2.7 and we're working on the next version of the site which is basically adding an another site to the ...
0
votes
0answers
27 views

should I rewrite my htacces when migrating to php-fpm?

I'm trying to migrate an application written in PHP and running over Apache 2.0 with mpm_prefork and mod_php to Apache 2.4 with mpm_event and php-fpm via mod_proxy_fcgi. It is an application that ...
0
votes
1answer
72 views

How to resolve Fatal error: Call to undefined function hash()?

I have this error message on my website: Call to undefined function hash() on line 738 in .../public_html/dbtech/dbseo/includes/class_db.php #0 .../public_html/dbtech/dbseo/includes/rewrite/...
0
votes
0answers
28 views

css and js files are being served by php-fpm

i have nginx and php-fpm installed and i have problem with css ans js files are being served by php-fpm this is strace for php-fpm process open("/home/user/public_html/he-2018-cache-v27.js", ...
0
votes
0answers
19 views

php-fpm status shows listen queue 0 when it is delaying requests

I have a php-fpm server running on a high-traffic website (behind nginx). It is frequently reaching a point where the active processes are equal to the maximum number of processes, which is the most ...
0
votes
0answers
13 views

Change source file still leads to crash even with cache

Setup: Wordpress with WordFence on Nginx with FastCGI enabled + PHP7.0 with opcache enabled (validate timestamps is false) Story: With the above setup and confirmed that both FastCGI has HTML cached ...
0
votes
0answers
91 views

Nginx only serves an empty response with 200 status code after i started to use CORS configuration

I'm trying to use wide-open CORS configuration for Nginx. Since i started to use this configuration Nginx only serves an empty response with 200 status code. I'm using Nginx with PHP-FPM. I have ...
1
vote
1answer
68 views

Unable to verify fpm seeing pm.* configuration settings

I'm trying to enable dynamic process management for php-fpm v7.3. Here's my php-pm.ini [www] pm = dynamic pm.max_children = 25 pm.start_servers = 10 pm.min_spare_servers = 5 pm.max_spare_servers = ...
0
votes
1answer
155 views

Unable to enable mpm-event in httpd | centos 7

I am kind of new to mpm and all so please don't mind. I have a web server running 8 websites (php based) on it. And my RAM usage goes over 90 % and the swap usage goes over 80 %. And when i check ...
0
votes
1answer
77 views

Nginx: rewrite for subdomain to folder AND files inside it

I have nginx rewrite rule - it redirects all subdomain requests from sub to folder: server { listen 77.77.77.77:80; server_name domaincom *.domaincom; root /home/admin/web/domaincom/public_html/...
0
votes
0answers
37 views

110 Connection time out when trying to run a PHP script

I cannot run any PHP script on my nginx server. I set up the usual nginx+PHP infrastructure, following this tutorial How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04 . The usual ...
1
vote
2answers
41 views

Where is the redirection configured?

I have a redirection but I don't know where it is activated? I have installed a PHP application called GARRADIN. There is an .htaccess containing this line: RewriteRule admin/plugin/(.*?)/(.*) /...
-1
votes
1answer
86 views

[alert]: fastcgi request record is too big -Fastcgi receives an error message that the get request is too long

Recently, the program encounter ed a problem, LNMP environment, because PHP in the program spliced GET request uri parameter is too long, resulting in an error, nginx processing uri is too long ...
0
votes
0answers
32 views

Change php user with docker-compose

The documentation for Docker PHP image says "For running the FPM variants as an arbitrary user, the --user flag to docker run should be used". I'm using PHP in docker-compose and want to change the ...
0
votes
0answers
262 views

PHP is not working after installing ModSecurity for NGINX on Ubuntu 16.04

My server is running on Ubuntu 16.04. One of my web app(php app) was running on my nginx server. To install ModSecurity I removed the NGINX completely and then followed the following steps to complie ...
1
vote
0answers
14 views

Nginx serving PHP file as download [duplicate]

I have a website with an index.php file (rhys.ddns.net/php/index.php). Whenever I try to access said file in my browser it is getting served as a download. I have checked my sites-enabled/default file ...
0
votes
1answer
265 views

PHP (7.1) issue with mail , openssl , certificate

In the php.ini I have: [openssl] openssl.cafile= /etc/ssl/cert/mydomaincabundle.crt this line allow email from PHP with SMTP to be sent from PHP es Wordpress or PHP application as i use mydomain.ext ...
0
votes
1answer
203 views

DNS lookup failure for:

I installed my server with virtualmin, and I am using apache with php fpm. When I try to open my website I have this error : Proxy Error The proxy server received an invalid response from an ...
0
votes
0answers
326 views

WebSockets + Apache and Nginx in “reverse proxy mode” + SSL/secure

As I had tried to connect PHP WebSocket from socketme.io through HTTP, since it was successful and again after loading certificates and making HTTPS it didn't work. As my hosting server's ngnix is ...
0
votes
1answer
194 views

Load balance PHP-FPM with HAProxy resulting in service unavailable

I need to load balance PHP-FPM with two backend servers with HAProxy (with Apache running on those backend servers as well). I have this frontend: frontend fr_fpm bind *:9000 mode tcp ...
0
votes
1answer
550 views

Nginx says 404 not found, no error log

I am getting a 404 not found at nginx page, i get no error in nginx error log file too. server { listen 6269; server_name (domain); root /home/temp; index /_h5ai/public/index.php; ...
0
votes
0answers
210 views

502 Bad Gateway with dockerized PHP-FPM

I'm trying to replace my PHP-FPM installation with a docker container. I can build a container and start the FPM service (127.0.0.1:9000). However, I get a Bad Gateway (502) error when I enter the ...
0
votes
1answer
354 views

Cannot find php-fpm to for PHP 7.2 to install on Centos 7.5

Have created a new VM server for a project, it is running Centos 7.5. After following a large number of different articles online to try and get nginx and PHP 7.2 running on this box I cannot get the ...
0
votes
1answer
169 views

issue with server reached max_children setting, consider raising it

I have recently migrated 30 websites from my old server to new one, and now running on nginx as previously was running on apache. Everything works fine for all websites except for 1 website. I don't ...
1
vote
2answers
603 views

understand correctly pm.max_children tuning

I have done some investigations and I have found this to calculate and adjust pm.max_children value https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/ but for example : ...