Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache/FastCGI Problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
EddieOfTheRocks
n00b
n00b


Joined: 01 Feb 2007
Posts: 35
Location: Edmonton, Alberta, Canada

PostPosted: Sun Jul 13, 2008 3:16 am    Post subject: Apache/FastCGI Problems Reply with quote

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
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Sun Jul 13, 2008 10:27 am    Post subject: Reply with quote

What do your access and error logs say after you've opened http://localhost/echo.fcgi?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum