Questions tagged [php-fastcgi]
The php-fastcgi tag has no summary.
17 questions
0 votes
0 answers
633 views
PHP 8.2 FastCGI + IIS 10 recommended settings
We are currently using PHP with IIS (until we can get a Linux server) I haven't found a single post on the internet that has some recommended settings, especially Max Instances and Instance ...
1 vote
0 answers
884 views
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 ...
0 votes
2 answers
803 views
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 ...
1 vote
1 answer
1k views
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 ...
0 votes
1 answer
570 views
Extending an existing location configuration instead of overwriting it
What I have I have Nginx configured to handle the .php files for all virtual hosts, and everything works fine. location ~ \.php { include snippets/fastcgi-php.conf; keepalive_timeout 0; ...
0 votes
1 answer
3k views
Nginx (Ubuntu 18.04) FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream
Well... I know there are so many simular questions asked. But in order to make this post to be somehow userful for community once being solved I would like to list up a working Nginx + PHP-fpm conf ...
1 vote
1 answer
1k views
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 ... /...
1 vote
0 answers
1k views
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 ...
0 votes
1 answer
919 views
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 ...
2 votes
1 answer
7k views
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 ...
1 vote
1 answer
6k views
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 ...
5 votes
1 answer
2k views
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 ...
0 votes
1 answer
903 views
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-...
0 votes
0 answers
1k views
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 ...
4 votes
1 answer
3k views
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. ...
7 votes
1 answer
4k views
fastcgi_cache_valid vs. fastcgi_cache_path "inactive" parameter?
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 ...
1 vote
2 answers
2k views
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; ...