PHP FCGI - Virtualmin GPL


I am testing virtualmin GPL, since we are considering moving to it for our virtual servers management. Will probably use Pro if we are happy with it.

Anyway, I’m trying to set-up the FCGI - PHP thing under GPL and I am having the following problem :

Accessing php files thourgh webserver gives the apache error 403 Forbidden.

Here is what I did :

Installed virtualmin GPL with automated script

Removed mod_php and installed apache2-mpm-worker instead of prefork.

Modifed VHost to include in public_html directory :


AddHandler fcgid-script .php
FCGIWrapper /home/username/fcgi-bin/php5.fcgi .php

Created that directory & file (chmod 750, chown username:username) with :

export PHPRC
exec /usr/bin/php-cgi

Copy /etc/php5/cgi/php.ini to home/username/etc/php5/php.ini and chown/chmoded same as fcgi wrapper.

Created a phpinfo.php file in /home/username/public_html (chmod/chown as others)

When I access the webserver/phpinfo.php I get forbidden error.

html files work fine.

Now the strangest thing is that I have nothing in apache access,error or suexec.log.

I do have an entry in /home/username/logs/access that says i’m trying to get the file index.php but none in error.

What Am I missing ?

Thank you

Nevermind. I didn’t have the ExecCGI Option enabled.

Sorry for the trouble, I did struggle for hours before posting, but as always I should have waited 30 min more !