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

learn more… | top users | synonyms

-1
votes
0answers
15 views

How to auto recover server, Memory exhausted, Connection reset by peer: mod_fcgid

I've got a mySQL / PHP script eating all the memory and crashing a VPS. After the memory error, every request results in (104)Connection reset by peer: mod_fcgid: After restarting the server, it's ...
-1
votes
0answers
22 views

Can't login to apc.php

I'm trying to get APC configured properly for a large site, using Magento, FastCGI, suexec. phpinfo.php is showing apc running, apc.shm_segments=1, apc.shm_size=128M as desired. But my apc.php is ...
1
vote
1answer
35 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
37 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
96 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
24 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
61 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
24 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
39 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
54 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
30 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
36 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
48 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
136 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
28 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
59 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
28 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
21 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
190 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": ...
0
votes
2answers
90 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
121 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
38 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
24 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
18 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
98 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
71 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
32 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
27 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
891 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
90 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
31 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
1k 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
71 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
45 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
82 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
65 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
110 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
467 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
68 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
81 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
53 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
61 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
106 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
133 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
165 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 ...
0
votes
0answers
279 views

Apache - Seg Fault or Similar Nasty Error Detected in the Parent Process

Every Sunday Morning (03.00 am) my apache get stuck (process goes dead trying to do a restart itself). Strange thing is this restart is not happened due to a cron job, but unknown process or apache ...
1
vote
2answers
206 views

Another PHP NGINX error: “No input file specified”

I looked through about 5 questions and blog posts already and tried everything they told me without luck. I can browse to www.example.com/phpinfo.php, but not www.example.com/index.php. I even went so ...
0
votes
1answer
248 views

fastcgi php and memory limit

I have a web server apache 2.2 with fastcgi and php 5.3, I have memory limit set to 256MB in php.ini and with php-cgi -i I got 256MB. So the configurations is correct, my process read it without ...
0
votes
0answers
12 views

Calling FastGCI from java standalone app

I am looking at some way to call FastGCI services from Java. Existing codebase in C/ProC has to be called from java to limit rewriting cost. I though adapting the codebase to the FastCGI loop could be ...
0
votes
2answers
219 views

nginx: fastcgi_cache_path empty

I wanted to try fastcgi_cache on my nginx 1.5.8 setup as shown here. In nginx conf, http section, I added: fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m max_size=1000m ...