EddieOfTheRocks n00b
Joined: 01 Feb 2007 Posts: 35 Location: Edmonton, Alberta, Canada
|
Posted: Sun Jul 13, 2008 3:16 am Post subject: Apache/FastCGI Problems |
|
|
I am having an issue with mod_fastcgi. I'll step by step what I've done.
emerge apache mod_fastcgi
mkdir -p /var/www/localhost/htdocs
cd /usr/src
wget http://www.fastcgi.com/dist/fcgi.tar.gz
tar -xvzf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure
make
install -m 755 examples/echo /var/www/localhost/htdocs/echo.fcgi
(modify /etc/conf.d/apache2 adding "-D FASTCGI" to APACHE2_OPTS)
echo -e "Options +ExecCGI\nAddHandler fastcgi-script fcgi" > /var/www/localhost/htdocs/.htaccess
/etc/init.d/apache2 start
So then from a browser I try to access it at http://localhost/echo.fcgi and instead of echoing all data like it is supposed to and it does on my web hosters server, it downloads some sort of binary file to me. I haven't tried any other fastcgi programs as this is the most basic of them and I know it should work. Anybody see a step I am missing? I have also tried mod_fcgid replacing all fastcgis with fcgids to the same result. _________________ Eddie Carle |
|