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

learn more… | top users | synonyms

3
votes
0answers
256 views

Apache : use of Alias directive with mod FastCGI

The server is configured to handle php files with fastcgi : <IfModule mod_fastcgi.c> AddHandler application/x-httpd-php .php Action application/x-httpd-php /fcgi-bin/php-fpm virtual ...
2
votes
0answers
479 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 ...
2
votes
0answers
320 views

How to debug CGI over fcgiwrap/nginx

I serve executable scripts (mainly in C) through fcgiwrap connected with nginx. Since the scripts are complied, I can get the coding errors during compilation, but sometimes I receive CGI errors ...
2
votes
0answers
374 views

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and ...
2
votes
0answers
334 views

Serving videos (mod_h264_streaming) using lighttpd with a fastcgi authorizor causing problems

So my goal is to serve streaming video, but only after authentication. Since authentication could use one of many methods, I'm writing a fastcgi authorizer to handle them. Each part (streaming, ...
2
votes
0answers
1k views

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

lighttpd + FastCGI + Mono not working with evhost enabled

I've started the migration of a Windows VPS to linode.com, choosing lighttpd over nginx and apache to host some sites built on asp.net mvc, and I'm stuck with what I think is a "document-root" ...
1
vote
0answers
14 views

Video Streaming Fails on IIS 8

I am using FastCGI with IIS 8 on windows-server 2012. The server is hosting a Django based website. The website works fine until I stream the videos (which are saved in the media folder on the server ...
1
vote
0answers
102 views

File permission problems with Apache, FastCGI, and Prestashop

I am running a Prestashop installation on CentOS 6.5 and Apache 2.2.15. A while back I updated Apache and lost the ability to upload product images via Prestashop backoffice along with other problems, ...
1
vote
0answers
106 views

Page displays “File not found” when I enable php-fpm chroot on debian wheezy apache2.2

I set up a chroot jail for a user "bob". bob is located in /var/jails/bob Bob has a site which is located in /var/jails/bob/bobssite.com/public_html Everything seems to work so far, including the ...
1
vote
0answers
113 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 ...
1
vote
0answers
530 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 ...
1
vote
0answers
187 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 ...
1
vote
0answers
28 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 ...
1
vote
0answers
163 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 ...
1
vote
0answers
85 views

Setting up nginx, rewrite and fastcgi

This problem has been driving me nuts for the last couple of days... Working on an application that needs authentication and exists of different parts (CMS, API, frontend) we ran in to some problems ...
1
vote
0answers
266 views

Apache2 mod_proxy_fcgi closes a connection after each request

I set up mod_proxy_fcgi do go with apache and php-fpm. If I read the FCGI spec correctly, the typical flow for the communication between a server is to keep the connections between the web server and ...
1
vote
0answers
188 views

Performance issues with small dedicated plesk centos5 server

I am getting some fairly sever performance issues with my plesk 11 dedicated box, it has 8 gigs of ram, static pages load very fast, a firstbyte time of less then 0.5 seconds, however dynamic php ...
1
vote
0answers
140 views

IIS and PHP with FastCGI/WinCache not seeing updated files

We have a script that regularly updates itself on a scheduled task. It downloads a ZIP, then extracts and overwrites a bunch of app files with new ones. We're seeing many cases on IIS where the ...
1
vote
0answers
398 views

Should I use mod_fastcgi or mod_fcgid for PHP and Django?

I would like to use FastCGI to host the program, what are the differences between mod_fastcgi and mod_fcgid? How to decide which to use?
1
vote
0answers
168 views

Can lighttpd be configured to spawn it's own instances of PHP on Windows7?

Currently, this is how I start PHP and lighttpd and it works fine: start /b php-cgi -c .\php-debug.ini -b 127.0.0.1:521 start /b LightTPD.exe Once and awhile PHP crashes and I get 503 errors ...
1
vote
0answers
405 views

NGinx - PHP / CGI - No input file specified

I know this is a common problem. I googled and tried a lot but still doesn't work. "No input file specified" while calling PHP files from browser. I Installed nginx php/cgi on a fresh debian machine. ...
1
vote
0answers
275 views

Custom php.ini with FastCGI seems to disable APC

I'm testing FastCGI and APC on cPanel server (CentOS 5.8, PHP 5.3.18, Apache 2.2.23). I want to allow users to have a custom php.ini by doing the following: Copying server's php.ini to user's ...
1
vote
0answers
85 views

timeout with apache & php w/ each virtual host has his own user process

I have 10 unix users in /home/. Each user is for a specific subdomain for example user www in /home/www/public_html is for www.mywebsite. blog in /home/blog/public_html is for blog.mywebsite. 90% is ...
1
vote
0answers
194 views

Lighttpd with FastCGI configuration running ViewVC - rewrite problems

At the moment I am struggling with the configuration of lighttpd together with ViewVC. The configuration was ported from Apache 2.2.x, which is still running on the machine, serving the WebDAV/SVN ...
1
vote
0answers
311 views

Slow WordPress with FastCGI

I recently upgraded my Media Temple server to dv4 and enabled FastCGI. I have this issue where the WordPress control panel on my sites goes slow. When I update or publish a post, sometimes it will ...
1
vote
0answers
128 views

Lighttpd + django on gentoo 10 seconds to answer

I want to run a Django site on a lighttpd with fastcgi on a gentoo machine. Everytime I try to access the site I get a response after more or less exactly 10 seconds. Im using a socket to let lighttpd ...
1
vote
0answers
369 views

Unreadable error using FCGI

I recently installed mod_fcgi on to Amazon EC2 64bit Linux AMI and using Movable Type 5.13 with it. Here is my error log. [warn]mod_fcgid: error reading data, FastCGI server closed connection, ...
1
vote
0answers
326 views

django url matching with Lighttpd fastcgi

I have a problem with url. I can access the djando app home page ( localhost/djangotest/ ) but can't access the admin section ( localhost/djangotest/admin/ ). I can access it using the django server ...
1
vote
0answers
211 views

lighttpd + php-cgi: Memory increase crazily if there's syntax error in the php file

I use lighttpd as the webserver, and module mod_fastcgi is on. So I can fetch php file with lighttpd. Here is a segment of my configure file. fastcgi.server =( ".php"=> ( ( ...
1
vote
0answers
281 views

django, fastcgi, throws random 404 errors

I have a django website deployed on a shared webhost. The shared webhost uses fastcgi. I'm noticing that valid urls will randomly throw up http404 but as soon as I refresh will work again. does anyone ...
1
vote
0answers
678 views

After a PHP crash IIS 7.5 stops responding requests until the whole service is restarted

I have a standard PHP5.3 install under w2k8r2/IIS7.5 (with and without WinCache as I've tried both options). The events happens as follows: 1) I get an error on the Application event log that says: ...
1
vote
0answers
972 views

FastCGI connection refused on port 9000

I have a site running PHP 5.3.2 + PHP-FPM and Nginx 0.7.65 and rebooted the server after changing the root password. The web server starts up fine, but the site doesn't come up and the only clue I ...
1
vote
0answers
84 views

Build apache with fastcgi (as static linked module)

I've downloaded apache source and FastCGI source. Now, I wish to add FastCGI as a static module to apache (NOT DSO). I've read the installation guide @ svn.apache.org, but still couldn't make it work. ...
1
vote
0answers
105 views

Cannot set Cherokee FastCGI to Mono

I used this as information source: /usr/bin/fastcgi-mono-server2 --socket=tcp --address=127.0.0.1 --port=39893 --applications=/:/var/www Put extension to *.aspx and made one index.aspx file in ...
0
votes
0answers
29 views

Fastcgi error after installing 2 PHP versions on CentOS (6.4 final) & Parallels Plesk Panel (11.0.9)

I installed PHP-Panda on our Cetnos server (6.4 Final) & Parallelels Plesk Panel 11.0.9, and now I got the new PHP versions under /opt/atomic/ and ./php --version works clean inside the specific ...
0
votes
0answers
18 views

Getting 404 for css, images, js, html on a PHP running on FastCGI

I just switched my PHP to run from Apache to FastCGI through Plesk 12 and now my css, js, images, html files are getting 404'd. Any idea on what could be happening? # This is the Apache server ...
0
votes
0answers
17 views

Apache + PHP (fast-cgi) + Wincache on Windows Server crashing

We have one PHP application that runs on Windows Server 2008 Apache 2.2.23 PHP-5.4.27 (FastCGI) Wincache 1.3.4.0 and crashes from time to time and I'm not able to figure out what's going on. ...
0
votes
0answers
114 views

can't apply process slot for /usr/lib/cgi-bin/php5

seen some other answers around the web related to my issue. Tried the answer from High CPU mod_fcgid: can't apply process slot too, did not work. Here are the files I believe toe be relevant for ...
0
votes
0answers
90 views

Creating /ping and /status pages on servers running PHP fastcgi (Not PHP FPM)

I have created /ping pages in the past for use with EC2 and ELB health checks with PHP FPM but not with Fastcgi. I have an autoscale setup which uses a semi pre-built Turnkey Linux PHP fcgi and nginx ...
0
votes
0answers
265 views

Seafile Server on Debian with sqlite + apache - fastcgi: connection timeout, incompelte headers

Introduction: I am trying to set up an Seafile server on my Local Network(later reachable by portforwarding through router). I followed the official manual but couldn't get it to work with Apache. It ...
0
votes
0answers
40 views

ISPConfig3 with Fast CGI problems

I try to run ISPconfig3 with fast-cgi but drops 500 error. Checking the error logs I have (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc under the option of ...
0
votes
0answers
111 views

php-fcgi periodically shutting down for Nginx, Centos 6.5 with Virtualmin

php-fcgi periodically shutting down 1-3 times a week. The server spec is: Server RAM: 512 MB CPU: 1 Core OS: Centos 6.5 Web Server: Nginx 1.0.10 PHP: 5.3.3 MySQL: 5.1.73 Control Panel: Virtualmin ...
0
votes
0answers
78 views

what does it mean to host C++ fastcgi application in nginx

I'm new to web services, and I am making a web proxy in c++ using the fastcgi protocol. I don't quite understand how to "host" web services in a web server, so if someone could lead me to an ...
0
votes
0answers
33 views

How do I trace the source of FastCGI timeout isseus on PHP and IIS 7.5?

I have a problem which I am hoping you experts can really help me find the root cause of. I am getting random page time outs (which manifest as a 500 error) that I cannot find the root cause of. PHP ...
0
votes
0answers
38 views

php-fpm: Maintain php_mod logging format

I recently switched all my lab servers from apache pre_fork/mod_php to apache worker/fcgi/php-fpm, and after getting everything set-up correctly, I noticed one last issue; php-fpm is adding it's own ...
0
votes
0answers
36 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 ...
0
votes
0answers
137 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
0answers
75 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
106 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 ~ ...