Questions tagged [fastcgi]

FastCGI is an open interface web servers can use to execute applications in a secure and isolated manner.

FastCGI is an open interface web servers can use to run applications as separate isolated processes. It is an enhancement of the original NCSA CGI interface specification, with a range of improvements. The primary improvement over the standard CGI approach offered by FastCGI is performance, hence the name.

FastCGI is supported by a broad range of Web Servers (such as Apache, nginx, lighttpd).

730 questions
4
votes
1 answer

mod_spdy problems and speculations

I'm trying out mod_spdy and I've run into a problem - it seems to be incompatible with AJAX requests and mod_php as in this: https://www.modspdy.com/blog/2012/04/15/using-mod_spdy-with-php/ The solution seems to be to run php scripts through…
donk
  • 163
  • 1
  • 10
4
votes
2 answers

Init script & the green [ OK ]

I am trying to install fast-cgi for nginx on an EC2 instance. I followed the steps explained here, but that is meant for Debian and does not work out of the box for a red-hat based system. I modified the script a bit to look like - #!/bin/bash ###…
Lord Loh.
  • 1,089
  • 3
  • 16
  • 25
4
votes
1 answer

stopping fastcgi-mono-server gracefully, website content updating with no need to restart it

I've been playing a lot recently with Mono 2.10.5 with .NET 4 and MVC 3 with razor views. I am now hosting my website with nginx and fastcgi-mono-server4 configured. Although the website is still not known to public (and will not be until it reaches…
Marcelo Zabani
  • 201
  • 1
  • 5
4
votes
0 answers

php-cgi.exe and/or php5.dll crashing - PHP 5.2.17, Win2k8 & IIS7

A specific part of my PHP script crashes randomly and I'm not sure why. The only difference on this page and the rest of the pages, is that I'm doing a PDO SQLSRV call. But 80% of the time there are no issues, and then suddenly IIS7 will just start…
Slowfib
  • 41
  • 1
  • 4
4
votes
2 answers

nginx leads to 504 error, but my app is still running

So, we're using Node.js to power CompassionPit.com, and it's all served up by nginx. nginx is throwing a 504 Gateway Time-out The interesting thing, however, is that if I navigate to http://compassionpit.com/index.html, then I can access the page (I…
Zack Burt
  • 201
  • 1
  • 3
  • 6
4
votes
1 answer

How to configure nginx+php (fcgi) to run every subdomain with a different user?

Im pretty new to nginx and - more for learning purpose - im trying to configure Nginx in order to run php with a different user for every subdomains. For example, i would like to use user john for all scripts on foo.example.com and user jack for…
Strae
  • 457
  • 1
  • 8
  • 22
4
votes
2 answers

mod_headers not working for php + mod_fastcgi pages

I'm running PHP through mod_fastcgi & mod_suexec, and I added Header set X-UA-Compatible "IE=edge env=best-standards-support" to my .htaccess file. It works fine for static content, but the PHP files lack the header. How do I fix this problem?
Eric
  • 593
  • 3
  • 8
4
votes
3 answers

Can Nginx handle php (or similar fcgi) requests inside of an alias?

I am converting a legacy Apache server to Nginx and do not have the luxury of changing URL's or rearranging the filesystem. Is it possible to use nested location{} blocks in the Nginx configuration to tell it to feed the .php files in an aliased…
allaryin
  • 323
  • 4
  • 10
4
votes
3 answers

Nginx fastcgi problems with django (double slashes in url?)

I'm deploying my first django app. I'm familiar with nginx and fastcgi from deploying php-fpm. I can't get python to recognize the urls. I'm also at a loss on how to debug this further. I'd welcome solutions to this problem and tips on debugging…
reconbot
  • 2,455
  • 3
  • 25
  • 30
4
votes
3 answers

nginx 502 bad gateway - fastcgi not listening? (Debian 5)

I have experience with nginx but it's always been pre-installed for me (via VPS.net pre-configured image). I really like what it does for me, and now I'm trying to install it on my own server with apt-get. This is a fairly fresh Debian 5 install. I…
Sean
  • 379
  • 2
  • 3
  • 8
4
votes
0 answers

Proxy_pass vs Fastcgi_pass

With one server/container on with nginx and another one with fpm, is it better to fastcgi_pass from the nginx to the fpm or proxy_pass to the fpm with addional installtion of nginx on the fpm? Both methods can load balance right? In that case does't…
4
votes
2 answers

What specifically does FastCGI do (for Ruby, Java, and Python)?

If I have a server running Apache, and I install FastCGI, would that let me run Ruby and Python scripts? If Python is already installed on the server, wouldn't I just be able to add .py to the CGI section in the httpd.conf file to have Python…
SJaguar13
  • 937
  • 1
  • 6
  • 13
3
votes
1 answer

Does Nginx show X-Accel headers in response?

I try disabling Fast CGI buffering by setting X-Accel-Buffering: no header but don't see this header in Nginx response. Is it by design or there's something wrong with my Nginx config? I don't have fastcgi_ignore_headers directive.
chingis
  • 243
  • 3
  • 14
3
votes
1 answer

Howto return 502 error code instead of 404 when PHP-FPM fails

My server configuration looks like this: Nginx1 (proxycache) <---------> Nginx2 <-> PHP-FPM When PHP-FPM fails because of the process is down ( errorconnect to unix:/run/php/php7.0-fpm.sock failed: No such file or directory while connecting to…
brainsqueezer
  • 81
  • 1
  • 5
3
votes
3 answers

Rewrite all *.php to single index.php before php-fpm processes it (apache)

A legacy application is passed through Slim framework by passing all legacy PHP file requests to index.php in a .htaccess file. Further, a Symfony application is set up in a folder with an Alias set up. VHost configuration with PHP-FPM
jdog
  • 121
  • 7
  • 29