Apache2 on Ubuntu Server w/ CGI, FastCGI, mod_php
Posted
by
illegal3alien
on Stack Overflow
See other posts from Stack Overflow
or by illegal3alien
Published on 2011-01-10T22:50:14Z
Indexed on
2011/01/10
22:53 UTC
Read the original article
Hit count: 197
I've looked at various websites on configuring Apache with cgi and can't get mod_fcgid to work. It works fine using mod_php5, but I wanted to compare performance using cgi and fastcgi.
I tried methods using FGCIWrapper among various other techniques and the only one that didn't result in an unlogged 403 or download of the file was using "Action application/x-httpd-php /usr/bin/php-cgi"
When trying to configure mod_fcgid the file normally just started a download of an unprocessed file. I used wget to check headers and type was "application/x-httpd-php"
At one point I was able to get to the page, but it resulted in a 403, which was listed in access.log, but not error.log (I was told it should be in there too)
I tried to get it working on a fresh install of Ubuntu Server 10.04 LTS and 10.10 and had the same results on both, so I'm not doing something correctly in terms of configuration. I tried virtualmin and could only get mod_php to work. The page just prompted a download when selecting cgi or fcgi from the control panel.
© Stack Overflow or respective owner