FastCGI .htaccess problem

Discussion in 'Apache' started by gezginrocker, Mar 5, 2012.

  1. #1
    I'm linux newbie & I'm trying to setup FastCGI. When there is no .htaccess, it seems to be working fine. But when there is a populated .htaccess file, I'm getting "Forbidden You don't have permission to access /cgi-bin/php.fcgi/index.php on this server." error.

    I have followed a tutorial. And at this tutorial there are recommended documentroot & virtual host settings which I'm wrtinig below.

    Can someone please help what I need to change? Thanks

    <Directory "/var/www/html">
    Options -Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    AddHandler php5-fastcgi .php
    Action php5-fastcgi /cgi-bin/php.fcgi
    DirectoryIndex index.php index.html
    Order allow,deny
    Allow from all
    </Directory>


    <VirtualHost *:80>
    ServerAdmin
    DocumentRoot "/websites/home/nixcraft.com/http"
    ServerName nixcraft.com
    ServerAlias www.nixcraft.com
    ErrorLog "/websites/home/nixcraft.com/logs/error.log"
    CustomLog "/websites/home/nixcraft.com/logs/access.log" common
    ScriptAlias /cgi-bin/ "/websites/home/nixcraft.com/cgi-bin/"

    <Directory "/websites/home/nixcraft.com/http">
    Options -Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    AddHandler php5-fastcgi .php
    Action php5-fastcgi /cgi-bin/php.fcgi
    Order allow,deny
    Allow from all
    </Directory>

    <Directory "/websites/home/nixcraft.com/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
     
    gezginrocker, Mar 5, 2012 IP