Questions tagged [php-fastcgi]
17 questions
5
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,341
- 21
- 71
- 87
4
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
- 512
- 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
- 1
- 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
- 215
- 1
- 9
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.…
Lewis Boyles-White
- 11
- 1
- 3
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,095
- 3
- 23
- 40
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…
ArcanisGK507
- 113
- 5
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…
vuenoob
- 1
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
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
- 53
- 2
- 5
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
- 4
- 19
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
- 111
- 5
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
- 21
- 3
0
votes
0 answers
Nginx not loading usernames
Good day, on my site users, can create usernames for their profiles but every time they try to visit their usernames on the browser to shows a 404 page, and on top of that it does not show the defined 404 while at it. For…
Henry
- 1
- 1
0
votes
0 answers
Premature end of script headers due to response header length
My question is very similar to this unanswered question: Apache 2.4 + PHP-FPM + Chromelogger (how to increase HTTP header length limit?)
Initially I was getting:
[proxy_fcgi:error] Premature end of script headers
Then after disabling the…
Eaten by a Grue
- 282
- 4
- 22