Jump to content

Re: 403 Error forbidden with apache+suexec+mod_fastcgi+php


supmeth

Recommended Posts

Hi,

 

Please help!!!!!!!!!!!!! Me going crazy, as one problem gets resolved another seems to keep popping up. Anyways, I am using CentOS 5.2 x86_64. Here's what I have done:

 

Compiled mod_fastcgi with default values

Compiled fcgi

 

Compiled apache as follows:

./configure \

--enable-suexec \

--with-suexec-bin=/usr/local/apache2/bin/suexec \

--with-suexec-caller=apache \

--with-suexec-docroot=/pure-ftpd \

--with-suexec-userdir=public_html \

--with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \

--enable-fastcgi \

 

Compiled PHP with the:

./configure --prefix=/usr/local/php5 \

--with-config-file-path=/usr/local/php5 \

--with-zlib-dir=/usr/include/zlib.h  \

--enable-sockets \

--with-libdir=lib64 \

--with-mysql \

--enable-fastcgi \

--enable-discard-path \

--enable-force-cgi-redirect \

 

Here's a snippet of my httpd.conf:

 

LoadModule fastcgi_module modules/mod_fastcgi.so

 

<IfModule mod_fastcgi.c>

FastCgiWrapper /usr/local/apache2/bin/suexec

</IfModule>

 

<VirtualHost 210.56.82.8:80>

DocumentRoot /pure-ftpd/user1/public_html

ServerName vision-interntional.com

SuexecUserGroup ftpusers ftpusers

 

<IfModule mod_fastcgi.c>

    ScriptAlias /cgi/ /pure-ftpd/user1/php-fcgi/

    AddHandler php-fastcgi .php

 

    <Location /cgi/php-wrapper>

        SetHandler fastcgi-script

    </Location>

    Action php-fastcgi /cgi/php-wrapper

    AddType application/x-httpd-php .php

</IfModule>

</VirtualHost>

 

Thank you in advance.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.