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
1answer
12 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 ...
0
votes
2answers
21 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. ...
1
vote
1answer
19 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]/...
0
votes
1answer
21 views

403 Forbidden on JS/CSS files after switching Apache to use Event MPM and php-fpm

(I see there are several existing questions about 403 errors and one or two of the rest of the parts of my configuration, but nothing that seems to match up to my exact situation that I've seen so far,...
2
votes
1answer
51 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
1answer
25 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 ...
1
vote
0answers
22 views

nginx pfp-fpm - “No input file specified.” when serving files from /home/user/**

I have a setup where the user uploads multiple PHP sites to a projects folder in the user's home directory (/home/{user}/projects). And the sites are individually configured; serving things like ...
0
votes
0answers
25 views

PHP-FPM doesn't create the socket when run as non root user

I am creating a Docker image that run NginX and PHP-FPM (with Supervisor). The container is run as www-data, but the PHP-FPM socket is not created. Here are my config files : www.conf [www] listen =...
0
votes
1answer
37 views

How to Remove php-fpm for mod-php

We have a site that's performing very slowly. I have a suspicion that it's php-fpm configs, but rather than play with it if it's not the issue, I want to do performance tests first. So I cloned one ...
0
votes
2answers
41 views

Browser not rendering css and JS

I'm using: CentOS 7 Apache 2.4 php56-php-fpm php72-php-fpm on my dev server. I managed to get it so I can specify a handler and it will put that vhost on the correct PHP version, however CSS and JS ...
0
votes
2answers
51 views

php72-php-fpm failed to start

I have two versions of PHP on my CentOS 7 Apache server: 5.6 7.2 It was working but now I'm getting some weird errors that I can't decipher or use to debug. Doing: $ sudo service php72-php-fpm ...
0
votes
0answers
14 views

Add custom variables to Apache access log from PHP-FPM

In mod_php you can use the apache_note() function to log variables in the Apache Access Log: <?php apache_note('SCRIPT_TIME', '1234'); ?> With the Apache config: LogFormat "%h %l %u %t [%D/%{...
0
votes
0answers
27 views

Unable to send php7.3 fpm-alpine error logs to std within docker containers

I cannot get the php-fpm error logs appear in docker std. So far I've tried many suggestions but for some reason no progress at all. I am posting my whole setup so that someone could kindly help me to ...
-1
votes
1answer
21 views

PHP move_uploaded_file fail

This is a common question but I double checked suggested solutions without success. These are the errors from PHP: Warning: move_uploaded_file(images/img01.jpg): failed to open stream: Permission ...
0
votes
0answers
16 views

Why does cache usage change abruptly on Apache PHP-FPM server

I have a server that is dedicated to running a web site based on Joomla. It is being monitored using munin. The slab cache and the cache change abruptly. There are no notable changes in the Apache ...
0
votes
0answers
32 views

First time setting up PHP-FPM User Pool… is this config a security risk?

After some fooling around with PHP-FPM user pools, I got a configuration that works... but is right? I'm self hosting a PrivateBin. Obviously, I'm trying to get this install as secure as possible but ...
0
votes
0answers
12 views

php fpm log executed script

when taking a look at my /var/log/php-fpm.log I notice a lot of [02-Apr-2019 18:01:16] WARNING: [pool wordpress] child 26356 exited on signal 11 (SIGSEGV - core dumped) after 492.828741 seconds from ...
0
votes
0answers
39 views

Periodically 504 timeout with nginx and php-fpm

I have php-fpm 7.0 and nginx 1.11.6 in FreeBSD 10.3. Sometimes I get 504 timeout even when the server has a lot of free resources. Nginx waiting answer from php-fpm 30 seconds. I write application ...
2
votes
0answers
26 views

mod_rewrite on Debian Stretch breaks php7.0-fpm with AH01071: Got error 'Primary script unknown\n'

We've just built a new Debian 9.8 server to replace our 8.11 server in order to test and upgrade to php7. We've installed apache2, php7.0-fpm and brought over out existing virtual host config, which ...
0
votes
0answers
13 views

PHP-FPM stops seeing classes / functions at random

I am experiencing a strange issue with php-fpm (7.0.33). At random times it starts throwing errors like: PHP message: PHP Fatal error: Uncaught Error: Call to undefined function untrailingslashit() ...
0
votes
0answers
36 views

PHP-FPM (>=7.1) + Debian9 + SystemD: don't reload (graceful) with kill -USR2

I'm trying to configure a php-fpm server with Debian9 and SystemD as good as I can, but I have found a problem that drives me crazy. I have searched and researched all as I can, and nothing, I have no ...
0
votes
0answers
18 views

NGINX Apache Setup Won't Run Apache Functions

I've set up NGINX in front of Apache to pass requests to. For one of my subdomains, I've made it so the traffic goes through NGINX and then through Apache, as the PHP system on this subdomain requires ...
0
votes
1answer
51 views

php-fpm generated a lot of load when resetting opcache, rendering server unresponsive

In recent weeks we experienced a negative phenomenon when deploying code: the server becomes unresponsive sometimes for a few minutes. Here's an example of the load on the server when this happened: ...
0
votes
2answers
42 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. ...
0
votes
0answers
24 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
39 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
36 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
62 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
47 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
69 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
133 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
23 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
24 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
1answer
31 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
40 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
218 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
128 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
97 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
88 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
37 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
40 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
188 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
181 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
86 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
380 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
55 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
26 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
29 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
91 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
34 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", ...