Jump to content

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


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.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.