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

learn more… | top users | synonyms

2
votes
0answers
31 views

Is the server still vulnerable to attack if we don't turn off cgi.fix_pathinfo?

The /etc/nginx/sites-available/default file that comes with nginx installation has the following content: # You may add here your # server { # ... # } # statements for each of your virtual hosts to ...
-1
votes
1answer
20 views

What is the difference between proxy_cache_ and fastcgi_cache?

I was searching for a simple Nginx microcache solution and I end up seeing two ways to have microcache. Some tutorials use proxy_cache, while others fastcgi_cache. What are the differences, pros and ...
0
votes
0answers
18 views

plesk 11.5 on centos - unable to set php to fastcgi

I am a complete newb to setting up servers so please be kind. I am trying to configure a VPS with a host. My aim is to install php5.4 - current setup is: centos 6 plesk 11.5 php 5.3 Reading a ...
0
votes
0answers
13 views

IIS webpage failing to load | Fast CGI related

I HAVE SOLVED THIS PROBLEM Was missing the c++ package So I am running windows server 2012 with IIS 8. I have tried many things to get PHP working, so I have installed PHP 5.5 via Web platform ...
1
vote
1answer
15 views

Redirect every request to FastCGI script

I have a FastCGI script which I want to every request to be redirect to it, no matter which URL. My current vhost configuration is the following: <VirtualHost *:80> ServerName localhost ...
0
votes
0answers
19 views

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 ...
0
votes
0answers
22 views

Fastcgi request record is too big

I am running an Nginx server, which requires me to accept URI String containing up to 4mb of data. I have configured nginx to accept the params by setting: /etc/nginx/nginx.conf ...
1
vote
1answer
84 views

Does using fastcgi_keep_conn in nginx increase performance for php-fpm?

The nginx docs say that keepalive for fastcgi cannot work if the fastcgi_keep_conn is not on. However, I can't find any further details on this. I already have keepalive enabled server-wide. I am ...
1
vote
1answer
50 views

Catalyst stderr going to the wrong log

I have several vhosts served by Apache 2.2.22 on a Debian Wheezy server. Some vhosts are Catalyst apps; all vhosts run with mod_fastcgi and mod_suexec. Each virtual host is configured to use a ...
3
votes
2answers
172 views

Apache fast-cgi and php-fpm failing to run php file?

I have been trying to switch my server from mod php to fastcgi set up on an apache server running on osx (as a development machine). My problem is that php-fpm doesn't seem to processing the files. ...
1
vote
0answers
42 views

command line alias inside php exec

Is there any possibility to define shell alias for commands executed via php system, exec etc functions? I'm running multiple versions of PHP using fastcgi and I need to run the right version of PHP ...
0
votes
0answers
166 views

Apache 2.4 + mod_rewrite + FastCGI (php-cgi.exe) on Windows

I am trying to port my Mac config on Windows for some of my clients. Since Windows is not Mac OS, I have to use php-cgi.exe instead of PHP-FPM. I have tested each component individually and ...
0
votes
0answers
85 views

FastCGI errors: (104)Connection reset by peer, incomplete headers and others

I am writing web application using cPhalcon. The machine on which I am testing is strictly development, so there isn't any traffic from outside. The problem is that when I am trying to do ...
0
votes
0answers
63 views

Nginx + PHP-FPM fastcgi_cache bypass specific custom header?

Hi I am trying to setup Nginx with PHP-FPM and fastcgi_cache and know I can bypass and exclude specific cookies with map $http_cookie $no_cache { default 0; ~cookiename 1; } and then bypass and ...
0
votes
1answer
107 views

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 ...
0
votes
0answers
43 views

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 ...
0
votes
0answers
69 views

User Uploaded Images– Blank Post – Connection reset by peer / FastCGI: incomplete headers

To give a little background, I have a website that permits users to upload images. WordPress is used as a content management system and the posts are immediately published with the image inserted as ...
0
votes
0answers
58 views

How Should I Properly Handle Multiple Nginx Location Blocks?

I think I am getting close, but I am missing something important in nginx configuration. I would like all files ending in .php to be handled by fastcgi, so I have the following block: location ~ ...
1
vote
1answer
298 views

Apache FastCGI server connection failure

I have a virtual machine base box for Debian wheezy that I've been using with vagrant for the last few months without any issues, however yesterday when I brought up a new machine and updated/upgraded ...
0
votes
0answers
45 views

Can't run django with lighttpd and FCGI

I'm trying to run django on lighttpd but I'm not able to do it. In logs I see this: 2014-05-30 13:45:32: (log.c.166) server started 2014-05-30 13:45:32: (mod_fastcgi.c.1103) the fastcgi-backend ...
0
votes
1answer
77 views

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. ...
0
votes
0answers
34 views

Execute file as owner Apache + FastCGI

How to execute file as owner, because now when I execute it it runs as default user and group of apache. I want for each virtual host to run files as their owners. If now I try to run php script with ...
0
votes
1answer
24 views

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 ...
3
votes
1answer
261 views

Enable FastCGI on Apache with Puppetlabs/Apache

I'm using Puppetlabs/Apache to configure Apache. In the main puppet file, I call and configure it: class { '::apache': } class { '::apache::mod::fastcgi': } apache::vhost { "${::fqdn} non-ssl": ...
1
vote
2answers
140 views

Php file are not parsed by fastcgi in nginx

I m new to nginx my server block is server { listen 25552; server_name *.example.com; root /usr/share/myPackage; rewrite ^/$ /index.php permanent; location ~ ...
0
votes
0answers
171 views

Joomla Extension Uninstall Causes 502 Bad Gateway

We have a VPS with some PHP websites hosted on our Ubuntu 12.04 LTS servers using NGINX. In a Joomla 3 site, when uninstalling an extension that errors out, the page shows an NGINX error page with a ...
0
votes
0answers
43 views

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 ...
0
votes
0answers
25 views

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 ...
1
vote
0answers
21 views

Lighttpd fastcgi remote instance operation

This article suggests that it is relatively easy to scale an application by getting lighttpd to spawn php-fastcgi instances on multiple machines. What I do not understand is this - how does a PHP ...
0
votes
2answers
230 views

nginx fastcgi rewrite: primary script unknown

I have following nginx configuration: location / { try_files $uri $uri/ index.html =404; if (!-e $request_filename) { rewrite ^/(.+)$ index.php?url=$1 last; } } ...
0
votes
2answers
88 views

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 ...
0
votes
0answers
36 views

Default document not working if file is on different directory, apache, fastcgi

Environment I am on ubuntu 13.10 saucy and using apache 2.4.6. I have installed hhvm on my server and let that serve php files. Situation I have create 2 different virtual hosts in my apache and ...
0
votes
1answer
34 views

nginx: storing a fastcgi php output as file

I'm trying to save the output of a fastcgi, but I seem to be getting a blank output. If a user requests a file like /thumbnail/someuniquefilename.jpg and the file exists, it should just serve it. If ...
0
votes
2answers
1k views

Go(lang) with nginx - Serving Static Files

Currently I have the following HTTP server written in Go: func main() { http.HandleFunc("/", func(response http.ResponseWriter, request *http.Request) { http.ServeFile(response, request, ...
0
votes
0answers
114 views

Running two different PHP fast-cgi instances on windows with OPCache enabled

I'm trying to run two different php 5.5 instances on Windows (one with XDebug, one without, same php executable, different php.ini files) over fast-cgi in Apache 2.4, ideally both with opcache ...
0
votes
1answer
35 views

FastCGI protocol over the network

For a reason that is beyond my control, there is a web server (fairly standard Debian/Apache deployment) sitting on our NAT'd network which takes all traffic to ports 80 and 443. I can't change that. ...
0
votes
2answers
2k views

Setting up HHVM for apache2.2 with mod fastcgi in a virtual host

I want to setup a virtualhost running HHVM to try out the new "Facebook Hack" language. I followed the instructions here on Apache 2.2: https://github.com/facebook/hhvm/wiki/FastCGI currently hhvm is ...
0
votes
1answer
90 views

Redirect with lighttpd and fastcgi on Django App

I have setup my lighttpd in a fashion which redirects all subdomains to my primary domain in following fashion * .domain.com -> domain.com. Unfortunately when i type in a subdomain such as ...
0
votes
0answers
61 views

APC Cache files expire Issue with FastCgi

we have properly installed APC cache on our WHM based server, we have set to expire each file in few hours, but all cached file lost in few seconds. Our APC Settings: apc.cache_by_default 1 ...
1
vote
0answers
104 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
0
votes
0answers
91 views

Using FastCGI can bypass the Lighttp POST cache?

I'm building a web service to configure an embedded device, and it should support firmware upload. That said, I have very limited RAM and storage to upload a file that's nearly 30% of the whole flash. ...
0
votes
0answers
158 views

nginx wont cache images when they are read through php files

i have .php file wich is loading images to hide their location. Every images are correctly caching through this directive: location ^~ \.(jpg|jpeg|png|gif|ico|css|js)$ { expires max; ...
0
votes
2answers
832 views

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, *set fastcgi_param SCRIPT_FILENAME and it will work* (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a ...
0
votes
0answers
81 views

Issue with fastcgi_cache

I find the docs quite difficult to understand in regards to http://wiki.nginx.org/HttpFastcgiModule#fastcgi_cache. This and very few Google hits tell me that fastcgi_cache simplies declares the share ...
0
votes
1answer
101 views

nginx php-fpm random/temperamental “No input file specified” error

I've got a page, I'm not using redirects, just going directly to /invite/index.php?code=f13dc6c9be in the browser and it serves up about 50% of the time. The rest of the time the browser displays "No ...
0
votes
0answers
68 views

What is the difference between proxy_buffer and fastcgi_buffer?

I inherited an nginx config and I'm trying to optimise it for security, speed, and/or maintainability by removing rules/directives which are superfluous or not doing anything. With this in mind, ...
0
votes
3answers
64 views

Most efficient way to serve less than 10 http requests per day using cgi

Our company manages over one hundred servers and we would like to "ask" these servers for basic usage info once or twice a day using http. The usage info can be easily found with a perl cgi script ...
0
votes
1answer
155 views

php/mod_fcgid script terminating after 30 seconds

I have the following issue : When running a long-running php script (file upload) it timeouts after exactly 30 seconds of activity. Bizzarely, it only occurs in certain cases - the one i know for ...
0
votes
1answer
181 views

Using Puppet with complex Nginx VirtualHosts

I'm trying to use Puppet and a Nginx plugin to manage a virtual host config file. I have everything working, but now that I need to add some rewrite rules I'm running into issues. I know I can use ...
0
votes
0answers
190 views

Apache mod_fastcgi + php-fpm chroot

Im trying to setup Apache + FastCGI + chrooted PHP-FPM on Debian (wheezy). But I'm always geting file not found error. I cannot find the problem, but if I disable chroot, everything runs fine. What ...