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
2
votes
5 answers

Own server, multiple website: most secure PHP setup

We have a company server with a variety of websites. They are maintained by different people from within our company. All websites are public. The server access is limited to our company only. This is NOT a shared hosting environment. We are…
user60129
2
votes
1 answer

Install FastCGI on IIS7.5 Windows 7 Home Premium

I would like to install FastCGI on IIS 7.5 on my Windows 7 Home Premium box I use at home to do some random coding. However WPI doesn't show the FastCGI option and I can't find it in IIS at all... How do I do this just one installer, I've seen…
Jaap
  • 367
  • 3
  • 16
2
votes
1 answer

mod_fcgid, perl script output going to apache error_log

I'm trying to get an old Perl script running again after installing mod_fcgid. I had to install mod_fcgid for a new client, but it seems to have broken some of my other cgi scripts. When going to the page, its now a 500 error. I checked the error…
LinuxGnut
  • 217
  • 3
  • 9
2
votes
2 answers

Is it feasible/practical to run a Comet-style/long polling application served by nginx + PHP/FastCGI?

I'm interested in running a web service, that while I could implement via traditional AJAX, it would be better served with a more continuous stream of data, such as long polling or Comet stuff. I understand that Comet effectively requires a process…
Arantor
  • 123
  • 3
2
votes
2 answers

fastcgi_param SCRIPT_NAME not working when included from external configuration file

After upgrading nginx on my server, all PHP sites stopped working. Before, I had just this in the file "fastcgi_params": fastcgi_param SCRIPT_NAME $fastcgi_script_name; And then the PHP site config files had a block like this inside: …
ZoFreX
  • 308
  • 1
  • 3
  • 9
2
votes
2 answers

PHP-CGI Not working on CentOS 5?

While trying to configure php-cgi on a CentOS 5 server running nginx, I run into this: [root@~~~~~~~ run]# /etc/init.d/php_cgi start Starting php-cgi: spawn-fcgi: child exited with: 255 …
EJay
  • 21
  • 3
2
votes
1 answer

How can I debug what's causing lighttpd errors with fastcgi?

I tried enabling mod_fastcgi in my lighttpd server (running on Ubuntu), with the following config (straight from the example in conf-available): fastcgi.server = ( ".php" => (( "bin-path" => "/usr/bin/php-cgi", …
Chris B.
  • 337
  • 1
  • 8
  • 18
2
votes
1 answer

How do I configure OS X's built-in Apache server to use FastCGI?

I want to serve a FastCGI based Perl script using Snow Leopard's built-in Apache server (2.2.14 apparently). I've heard something called MacPorts is required; which is some sort of 'apt'-like package manager for Macs. Previously, I've configured…
GeneQ
  • 407
  • 2
  • 8
  • 17
2
votes
4 answers

Deploying django under a sub-URL with Nginx/Fastcgi

I can't for the life of me figure out how to deploy a django site under a non-root location with Nginx/fastcgi, e.g. localhost:8080/myproject/ instead of localhost:8080/; all the examples I have seen either assume Apache or mounting at the root of…
gsakkis
  • 121
  • 1
  • 3
2
votes
3 answers

Running multiple FCGI/Django on Nginx for load sharing

I am running a web-service on Nginx/FastCGI/Django. Our processing time is fairly long and CPU intensive and I would like to be able to run multiple processes of Django/FastCGI to share the load. How do I set Nginx to rout requests from a single…
Barry
  • 31
  • 4
2
votes
1 answer

Can't find Role Services in Windows 7

I'm trying to install PHP on Windows 7 Home Premium using these instructions: Using FastCGI to Host PHP Applications on IIS 7 and a 1/3 of the way down on the page I have to do this: Server Manager -> Roles -> Add Role Services and just cannot…
Pete Alvin
  • 281
  • 2
  • 4
  • 12
2
votes
1 answer

Nginx and multiple wordpress instances with fastcgi under same domain

My site is running on apache. two instances of wordpress exist under paths /tr/ and /eng/. I want to move the setup to nginx but could not manage to get it working. My setup consists of nging 0.7.66, php 5.3.2, and php-fpm. /tr/ and /eng/ are two…
altunyurt
  • 153
  • 3
2
votes
1 answer

Trying to run an ASP.NET MVC application using Mono on Apache with FastCGI

I have a hosting account with DreamHost and I would like to use the same account to run ASP.NET applications. I have an application deployed in a subdomain, a .htaccess with a handler like this: # Define the FastCGI Mono launcher as an Apache…
Arda Xi
  • 71
  • 5
2
votes
3 answers

In Djano, why do I get a 500 server error when browsing, but "python mysite.fcgi" from SSH works fine?

If I browse to my site, I get a 500 "internal server error." However, if I SSH into my server and go to my site's folder and run "python mysite.fcgi" I see the HTML rendered fine. Obviously, something is wrong, but I'm not sure what. Here is my…
Jim
  • 1,555
  • 7
  • 25
  • 30
2
votes
1 answer

nginx route all 404 requests to a php script

I want to route all 404 requests to a php script, How should I do that? My nginx config is: server { listen 81; listen [::]:81; root /srv/http/paste.lan/www; autoindex on; client_max_body_size 20M; index index.txt index.html…
hanshenrik
  • 236
  • 2
  • 13