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
0
votes
1 answer

IIS replaces redirect status header from PHP with 302 Redirect

I hope I am posting this in the correct place... I'm having an issue with a 301 redirect in php. Looking at the headers, if I do a simple 301 redirect, it actually appears as a 302 redirect which is not what I am after. This is the php…
Paul
  • 221
  • 5
  • 15
0
votes
1 answer

Cookieless folders with NGINX

I want to force all pages on my WordPress setup to not set any cookies, except for the file and folder: wp-login.php and /wp-admin # disable cookies globally fastcgi_hide_header Set-Cookie; if ($request_uri ~* "(/wp-admin/|/wp-login.php)") { #…
braindamage
  • 101
  • 1
0
votes
1 answer

IIS fastcgi race condition or locking with .py files (file watching?)

I am trying to deploy the python web framework web2py on iis8 on Windows server 2012. I am using fastcgi, downloaded from microsoft, v 2.1 and python 2.7 web2py sometimes creates .py files under the docroot. When this happens, the IIS request thread…
0
votes
1 answer

File cannot be downloaded completely via PHP from my nginx

I have a file on my tiny server (BeagleBoneBlack) which I want to download to another machine. Therefore I try to do it via PHP from my nginx-web-server. The file size is about 1.2 GB and the download always stops at about 410MB. Since both…
LeO
  • 123
  • 5
0
votes
2 answers

Why does google-site-verification go into fastcgi-pass ?

See the below nginx configuration file. Virtual name based hosting (example.com), passing requests for example.com and www.example com to the mono fastcgi-process on port 9000 (127.0.0.1:9000) I've added the file google-site-verification, but the…
Quandary
  • 1,024
  • 4
  • 19
  • 36
0
votes
1 answer

PHP files loading very slowly, even if they have no PHP code

Windows Server 2008 R2 Standard IIS 7.5 PHP 5.3.28 FastCGI I have a WordPress blog in a subfolder of an ASP.NET site that has started running very slowly. After experimentation, I've found that all PHP files load slowly, even if they don't have…
0
votes
1 answer

Apache fast-cgi and php-fpm - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners and groups. Each group had www-data as a member as…
Kshitiz
  • 119
  • 6
0
votes
1 answer

How can I disable FastCGI on a Windows IIS 6 server?

We use WordPress for our company website and it has crashed for no discernible reason. It gives an error message like this: FastCGI Error The FastCGI Handler was unable to process the request. Error Details: The FastCGI process has failed…
0
votes
1 answer

another php.ini for domain with nginx php-fpm working in fastcgi

I working with nginx and php-fpm and use unix:/cls/php-fpm.socket; I have enable xcache for hole server setting it in php.ini and want to disable xcache for 1 domain I did it with this in server config in nginx location ~ ^/.+\.php { …
ezak
  • 13
  • 1
  • 6
0
votes
0 answers

PHP Script Time Out - Fastcgi

I have a PHP script that times out after 7 mins. The page then displays - 500: Internal Server Error. I have tried to increase nginx and fastcgi timeouts but the issue remains. Also nothing shows up on the error logs. My current settings are as…
DMajik
  • 1
0
votes
1 answer

Correct way to open ports for fastcgi using iptables

I'm running a server with nginx and fastcgi. I'm using TCP sockets for fastcgi rather than Unix sockets as I've read that this scales better. The fastcgi server is running on fastcgi://127.0.0.1:9000. I'm trying to figure out what rules I need to…
xtpu
  • 1
  • 1
0
votes
1 answer

What tools available for Ubuntu are best suited for starting a FastCGI application, monitoring, and restarting if it stops?

Note: This is not in regards to PHP; Language is C++ I will be using spawn-fcgi to launch the FastCGI application. I've already found the supervise tool (http://manpages.ubuntu.com/manpages/precise/man8/supervise.8.html) provided by the…
Coder
  • 101
  • 1
0
votes
0 answers

nginx Returning 404 After Server Move (AWS)

Moved my site to a larger instance size at AWS which allocated me a new private IP and Public DNS value. The Public, elastic IP is the same. The site loads fine from Apached, but when enabling nginx fastci php-fpm, some old URLs are throwing 404s…
0
votes
0 answers

Altering Cache value based on php response of an image or html in Nginx

I'have a set up where a PHP script dynamically creates images based on size and the device requesting them. Everything is working fine apart setting a higher cache expiry for images when they are loaded from PHP. I have a location block, shown…
Matt Gaunt
  • 101
  • 1
0
votes
2 answers

Setting up Apache VirtualHost for multiple sites

I'm trying to set up a website on my machine, and am having some trouble. I've prototyped the website using Flask and the debug server, and now would like to host it for a bit while I further debug it. This is only for internal use within my company…
polkid
  • 103
  • 2