Questions tagged [php-fastcgi]

17 questions
7
votes
1 answer

Nginx fastcgi_cache_valid vs fastcgi_cache_path's inactive

If I've config fastcgi_cache_path /opt/nginx levels=1:2 keys_zone=TEST:100m inactive=40m; .. fastcgi_ignore_headers Cache-Control Expires Set-Cookie; fastcgi_cache_valid 30m; How long will my cache stored in the path above?
Ryan
  • 5,831
  • 24
  • 72
  • 91
5
votes
1 answer

nginx logs php-fpm's stderr output cut off at seemingly random positions

Ever since I started using a PHP library that produces a long call chain it's been increasingly difficult to debug issues caused by it because my error logs end up containing output like this: (some values have been blanked out using *) 2017/08/23…
SeinopSys
  • 532
  • 2
  • 6
  • 19
4
votes
1 answer

Nginx Downloads PHP instead of Rendering

I'm trying to move a Wordpress site to Nginx from Apache. When I go to the main site, it renders as expected. When I click on a post, it tries to download index.php instead of processing/rendering it. I setup nginx according to…
dkusleika
  • 61
  • 2
  • 7
1
vote
0 answers

PHP FastCGI reading php flags from .htaccess? How?

I'm doing some changes on a website hosted on a managed dedicated server from Hetzner and I found that somehow some php flags set in .htaccess are passed to PHP running as fastCGI. As far as I was aware, fastCGI/FPM flags need to be set in php.ini,…
Augusto
  • 225
  • 2
  • 10
1
vote
1 answer

Setting up php7.0-fpm + Apache and multi-user pools: Only 1 site works

I am using Ubuntu 16.04, Apache 2.4.29 and php7.0-fpm. I am trying to create separate pools for multiple users and websites, so that they run under a separate user and each site is protected in case one is hacked. I followed the instructions of a…
peppy
  • 73
  • 2
  • 10
1
vote
1 answer

Routing to subdirectory as new route with nGinx

Here is my current server block (below). I have a separate wordpress blog installed on /blog and need to route /blog to the directory "/home/forge/example.com/public/blog". I've tried a few options and at a loss so any advice is gratefully received.…
1
vote
2 answers

php-fastcgi status: "No input file specified"

# grep pm.status_path /etc/php5/fpm/pool.d/www.conf pm.status_path = /fcgi-status nginx config: location ~ ^/(fcgi-status|ping)$ { access_log off; allow 127.0.0.1; deny all; fastcgi_param SCRIPT_FILENAME…
Putnik
  • 2,217
  • 4
  • 27
  • 43
1
vote
1 answer

web page shows me timeout gateway error FastCGI

I proceed to explain the problem and scenario a bit complex for my limited knowledge. initially I thought it was some problem associated with the performance of my scripts and queries, so I created this post on the site in Spanish: LINK but after…
user543085
0
votes
1 answer

nginx fastcgi_cache_path write access for other users

I'm using a nginx webserver with the fastcgi caching. The fastcgi_cache_path is set to an sub directory of the webroot of each virtual host from nginx. (eg. /var/html/user01/httpdocs/nginx_cache ... /var/html/user02/httpdocs/nginx_cache. The caching…
0
votes
1 answer

Multiple Projects under single Domain Nginx

I have two projects with the different path locations that need to be configured under a single domain with separate upstream PHP 7.1 and HHVM. I am trying to achieve the goal with nginx alias directive, but it renders 403 Forbidden on my specified…
Aftab Naveed
  • 153
  • 1
  • 7
0
votes
1 answer

How compile PHP modules/extensions from source

I have set-up multiple PHP versions on single apache ubuntu instance using below tutorial. https://gist.github.com/jbinfo/d297fcfdb151e25a299c Both PHP versions working fine but php-geoip and php-redis extensions are missing. How can I…
adminz
  • 397
  • 2
  • 6
  • 20
0
votes
0 answers

Stylesheets not loading on Apache2.4 with PHP 5.6 on FastCGI

I have Googled my heart out looking for an answer to this but cannot find one! I know it seems like a Stack Overflow sort of question but I didn't have these problems before I ran it through fastCGI which makes me think it is server related. I have…
Wildcard27
  • 131
  • 6
0
votes
0 answers

What is the proper value of "fastcgi_split_path_info" in Nginx virtual host when using php 7.4 with "cgi.fix_pathinfo = 1" on Nginx v1.25.1 Mainline?

BACKGROUND: I am running a LEMP server with Ubuntu Server 20.04 with Nginx v1.25.1 Mainline and php7.4-fpm. In my virtual hosts file I am trying to set the proper and working fastcgi_split_path_info in the location ~ \.php$ { directive, but I'm not…
DanRan
  • 73
  • 1
  • 3
  • 22
0
votes
0 answers

php-fpm 8.1 on ubuntu 22.04 lamp stack ignores directory ACLs

I've been running a pretty fine lamp stack hosting multiple sites. Pools are running okay. Each website has it's own pool and runs as it's own system-user. These system-users are created without /home/.. directories and without shell. Each users has…
Q2Q
  • 1
  • 1
0
votes
2 answers

Nginx downloads source code instead running it with PHP-FPM over Docker

I'm creating PHP backend app using Docker alpine-nginx, I need to redirect all requests starting with /api to run www/index.php file as it's built on MVC framework. Proxy_pass works great for the rest of the site with NextJS (React, Node) But Nginx…
sjiamnocna
  • 41
  • 5
1
2