Questions tagged [fastcgi]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
2k views

Using multiple FCGI binaries on one lighttpd instance - possible?

It seems to me that it will be more maintainable to keep separate functions of my site in separate FCGI binaries. What I want is for requests like these: http://mysite.com/funcA.fcgi http://mysite....
ACK_stoverflow's user avatar
1 vote
2 answers
91 views

Nginx update rewrites my own starting scripts in /etc/init.d/nginx. Is there a way to avoid this?

I have nginx plus fast cgi. I wroted starting script that starts nginx with fast cgi. But after nginx update system rewrites this script to the default starting only nginx. Is there any way to avoid ...
B14D3's user avatar
  • 5,258
2 votes
1 answer
3k views

405 Method even when posting to a php file

I been googling, and all I can find is that this error may happen when you post to an html file. In my setup I have a rewrite rule, that basically hides the index.php from the url, and I for the ...
RoboTamer's user avatar
  • 502
6 votes
1 answer
10k views

How to setup Python with Lighttpd and FastCGI (like PHP)

Running Lighttpd on Linux, I would like to be able to execute Python scripts just the way I execute PHP scripts. The goal is to be able to execute arbitrary script files stored in the WWW directory, ...
johndir's user avatar
  • 305
0 votes
1 answer
552 views

Mono fast cgi not working on nginx

I installed mono fast cgi for nginx following instructions on: http://www.mono-project.com/FastCGI_Nginx but when i try to load test aspx file i getting 502 error gateway,and following error in error ...
Luka Horvatic's user avatar
3 votes
1 answer
2k views

How to add a new website to a fastcgi-mono-server4 process on nginx without having to restart existing websites?

I know this might be related but I have a script that loads fastcgi-mono-server for defined websites on a configuration file and I need to a new website to the pool without having to reload all ...
Rui Marques's user avatar
1 vote
1 answer
2k views

Why is Perl Cgiwrap Sock refusing connection to nginx?

Could anyone shed some light on the following line in my nginx error logs. I'm trying to get Perl and Nginx talking to each other, but so far no success. unix:/var/run/nginx/cgiwrap-dispatch.sock ...
Emmanuel's user avatar
  • 347
2 votes
3 answers
1k views

Unknown Apache2 + PHP5 FastCGI 500 error .. caused by search engine bots?

My Ubuntu server is configured with Apache 2.2.8 and PHP 5.2.4-2ubuntu5.18 in FastCGI mode. Everything works well, except I am seeing 500 errors that only seem to come from bots accessing the server.. ...
Ryan D's user avatar
  • 21
0 votes
1 answer
255 views

php5-fpm spawning multiple times

On my 512MB ram server memory use was at 50%. I installed fastcgi and php5-fpm and now the server memory is report 137%. See below for results of 'top'. Currently I have a site in apache being served ...
TechRemarker's user avatar
1 vote
0 answers
291 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"=> ( ( "bin-...
Miaonster's user avatar
  • 111
0 votes
1 answer
3k views

How do i set a (open_)basedir with php using fastcgi/nginx?

Essentially i found out you can limit the folders each user has access to by using php's basedir/open_basedir. I'd like to have each php only access its own files. So i wrote fastcgi_param ...
user avatar
4 votes
1 answer
1k views

stopping fastcgi-mono-server gracefully, website content updating with no need to restart it

I've been playing a lot recently with Mono 2.10.5 with .NET 4 and MVC 3 with razor views. I am now hosting my website with nginx and fastcgi-mono-server4 configured. Although the website is still not ...
Marcelo Zabani's user avatar
4 votes
0 answers
3k 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 ...
Slowfib's user avatar
  • 41
0 votes
1 answer
900 views

Why is FastCGI hanging after few requests?

I've an issue with using nginx with fastcgi. It just runs for few requests and then it hangs/dies or whatever. Nginx then just returns bad gateway (502). This is the code I used to spawn fastcgi: ...
Rihards's user avatar
  • 779
1 vote
1 answer
570 views

Mapping php to fcgiext.dll vs php-cgi.exe

I seem to be able to run PHP scripts either by mapping .php to IIS directly by using \PHP\php-cgi.exe or through \Windows\system32\inetsrv\fcgiext.dll. I can't tell the difference between the two ...
gawpertron's user avatar
0 votes
1 answer
445 views

PHP working directory running under IIS with FastCGI

I have got a number of scripts being moved from an Apache server to an IIS server. Many of these scripts assume that the current working directory of the script is the same as the directory containing ...
Will's user avatar
  • 1
2 votes
1 answer
308 views

What does a jagged committed memory graph mean?

We've been attempting to debug load programs on our servers, and along the way we've been looking at some graphs, like this one: (The white spaces are when the server got so hosed we couldn't collect ...
Edward Z. Yang's user avatar
2 votes
2 answers
11k views

one php5-cgi process uses 100% cpu

I have a dedicated server runs debian 6, nginx 1.07, php 5.3 with php-fpm and percona mysql 5.1. I just set up the server recently and only 1 site runs on it. The problem I encounter is that even I ...
Alex Chen's user avatar
  • 283
3 votes
1 answer
2k views

Changing server API from CGI to FastCGI

I have a server set up on CentOS and I need to change the API from CGI to FCGI (Someone else set this up initially) for x-cache to work (we need this as we have a TV appearance on monday and are ...
mylesagray's user avatar
1 vote
1 answer
2k views

Nginx with HTTPS:// Keeps download /index.php but everything else works fine

I've installed nginx and transfer my server over to nginx (from apache). I made a subdomain which has SSL. My http:// works perfect.. But when I access https://secure.gamegambit.com it starts to ...
gamegambit's user avatar
2 votes
2 answers
4k views

How to create a very simple external FastCGI configuration in apache?

I have an externally started FastCGI application that listens on socket '/tmp/foo.sock' and a directory of static files in '/srv/static'. Apache has all needed permissions on the socket and the ...
Thiago Padilha's user avatar
3 votes
2 answers
2k views

Setup secure shared hosting (Apache, PHP, MySQL)

So I'm setting up a shared hosting with Apache, PHP, MySQL and the biggest question mark is how to do with PHP, since there is a million options out there how to configure it securely. The plan is: ...
Apaz's user avatar
  • 43
2 votes
3 answers
4k views

Munin graphing by CGI

I have Munin working just fine, but any time I try to do cgi graphing - it just stops graphing... no errors in the log, nothing. I've followed the instructions here: http://munin-monitoring.org/wiki/...
Vaughn Hawk's user avatar
1 vote
1 answer
802 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 ...
w-01's user avatar
  • 215
3 votes
2 answers
20k views

nginx: multiple document roots with fastcgi

When using a single document root in my http directive, everything works fine. However, I want to add a location directive with an additional directive and I can't get fastcgi to work with this ...
tman's user avatar
  • 33
0 votes
2 answers
993 views

Can mono/xsp with fastcgi handle more then one request?

Right now i am using nginx with mono/xsp through fastcgi. I haven't seen any clear answers but can xsp/fastcgi handle multiple request? I have one instance running all my sites. Would i get better ...
user avatar
0 votes
1 answer
361 views

nginx/fastCGI two domains, one codebase and a subdirectory

I have a website running on Nginx, FastCGI and php-fpm, with a number of pages in subdirectories on it (that are run through the same front-controller as the rest of the website). http://www.example....
Alister Bulman's user avatar
1 vote
1 answer
69 views

Development HTTP server with fastcgi support

I'm looking for a command-line launched HTTP server (à la thttpd -- i.e. which doesn't require system-wide configuration) but which supports generic fastcgi -- preferably which can do its own ...
tylerl's user avatar
  • 15.1k
0 votes
1 answer
2k views

How to I track how many php-cgi processes are in use

I'm running apache 2.2 with PHP 5.2 in FastCGI mode with mod_fcgid. The platform is RedHat Enterprise Linux 5.5 x86_64. I have my minimum and maximum fastcgi slaves set to 35. How do I track how many ...
edgester's user avatar
  • 583
6 votes
2 answers
6k views

A single php-fastcgi process blocks all other PHP requests

I've recently switched to a FastCGI setup for PHP (Apache2-worker and mod_fcgid). However, when a single PHP script is very busy, it seems to block all other PHP requests. What would be wrong with my ...
vdboor's user avatar
  • 3,880
1 vote
1 answer
1k views

Clean Url problems WIth ubuntu apache , php-fpm, fastcgi

Well this is a kind of repost of this, but no one has replied to my question so far, so I am here. I am using Apache/2.2.17 (Ubuntu) mod_fastcgi with php-fpm and I can't enable clean URLs as the site ...
user80287's user avatar
  • 145
1 vote
1 answer
768 views

How can we solve these errors for Nginx + PHP + FastCGI?

We're using Nginx + PHP + FastCGI for our web server and we just saw a bunch of timeout errors (see below) in the error log. We quickly restarted nginx and that fixed the problem - for now. However, ...
user avatar
3 votes
3 answers
199 views

Are there benefits in using CGI in a large scale Apache2 server or should I just use FASTCGI?

I have a web product done in PHP that theoretically should support a lot of users. Problem is, I just left the apache as it is and found out its just running as CGI. Is this very wrong and I should do ...
gianebao's user avatar
  • 133
1 vote
1 answer
497 views

Apache with PHP configured as FastCGI and scripts without suffix

I have working FastCGI PHP inside Apache using mod_fcgid. But I noticed that PHP scripts are executed even without .php suffix specified. Eg: if file is mail.php then http://example.com/mail.php and ...
vladimirm's user avatar
  • 125
8 votes
3 answers
37k views

What is wrong in my php-fpm configuration?

I have a 64-bit server but only 256MB of RAM. So, I moved to nginx server with fast-cgi to connect to PHP. I have PHP 5.3.6 running. The issue is that after every two or three days when I try to ...
AppleGrew's user avatar
  • 417
1 vote
1 answer
148 views

service performance advice (apache/nginx/php)

Right now I have a xeon quad core (2.8ghz I think), 8gb ram, and 150gb WD Raptor drive with centos. We have a few sites that get around 600k page views and just under 10 million search engine bot ...
Joe's user avatar
  • 35
1 vote
1 answer
4k views

IIS 7, FastCGI, PHP and custom php.ini files

I'm running PHP 5.3, FastCGI, and IIS 7 on Windows Server 2008. I have a site which I would like to configure its own php.ini settings for but things aren't working as expected. I am following the ...
Marlon's user avatar
  • 535
1 vote
1 answer
1k views

NGINX + PHP5-FPM segfaults under high load!

I have been dealing with this problem all day and it is driving me insane. All Google results and searches here lead to dead ends. I hope someone can work with me to provide a solution for myself ...
Aco's user avatar
  • 103
1 vote
0 answers
1k 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: ...
Pablius's user avatar
  • 131
5 votes
1 answer
7k views

Enabling APC causes internal server error

After installing and enabling APC 3.1.9 (Alternate PHP Cache), using pecl, i ran into an internal server error. I checked my error logs, and this is what shows up. Error Logs: PHP Fatal error: PHP ...
VicePrez's user avatar
  • 153
0 votes
1 answer
819 views

Switch to FastCGI from Apache php support disabled mod_deflate

After i was told by my server providers support staff to swtich to FastCGI from Apache php support, i later found out that mod_deflate stopped working, it was working fine before the switch. My static ...
VicePrez's user avatar
  • 153
1 vote
1 answer
3k views

Using FastCGI for PHP on Mac OS X

I have apache2 running on a Mac OS X (10.6) machine, and it is currently serving PHP pages fine, using php5_module but I would like to configure fastcgi_module to handle the php pages. I have tried ...
DanielGibbs's user avatar
0 votes
1 answer
113 views

Help installing fastCGI on linux

I run the following: $ cd /opt/mod_fastcgi-2.4.6 $ cp Makefile.AP2 Makefile $ make top_dir=/etc/httpd $ make install I keep getting this error when I run make: -bash: make: command not found What ...
John's user avatar
  • 123
18 votes
3 answers
14k views

Should I impersonate PHP via FastCGI?

I am installing the latest version of PHP onto IIS 7.5 via FastCGI, and all of the instructions say that FastCGI should impersonate the calling client by setting fastcgi.impersonate = 1 If my ...
WimpyProgrammer's user avatar
2 votes
0 answers
4k 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 ...
Devin's user avatar
  • 923
1 vote
1 answer
125 views

Is there an up to date guide on PHP (5.3) Apache (2) and FastCGI?

All the articles I can find on the web all are dated from 2005 - 2009. We are looking to move to fastcgi with php and apache but can't find any up to date information on the topics. Does anyone know ...
Brombomb's user avatar
  • 113
0 votes
2 answers
2k views

Apache2-Prefork & FastCGI

I Have Apache2-Prefork running using mod_php and php 5.2. And i also have php-fpm with php 5.3 running inside a chrooted environment (listening to an unix socket which would be reachable for apache) ...
Florian F's user avatar
  • 307
2 votes
1 answer
2k views

nginx PHP files 404

I am getting 404 not found on php files with my nginx/php-fastcgi install. I have tried several variations of declaring root in different places but cant find one that works, and I suspect this is ...
Andrew Duncan's user avatar
1 vote
1 answer
452 views

When restarting ligttpd, how do I get fastcgi php-cgi's to restart

I'm running lighttpd with php5-cgi. Running /etc/init.d/lighttpd restart does not cause the php-cgi processes to restart. Should I just killall them, or is there a more appropriate way to get them to ...
fratrik's user avatar
  • 111
0 votes
2 answers
1k views

PHP as FastCGI: Custom php.ini not working

I'm running PHP as FastCGI (I needed multiple versions of PHP). .htaccess AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php-5.2.17.fcgi cgi-bin/php-5.2.17.fcgi #!/bin/sh PHP_CGI=/usr/...
John S.'s user avatar

1
9 10
11
12 13
15