Welcome, Guest
Please Login or Register.
Lost Password?
PHP FCGI - Virtualmin GPL (1 viewing)
Post Reply

TOPIC: PHP FCGI - Virtualmin GPL

#16158
mkleiner (User)
Posts: 2
graphgraph
PHP FCGI - Virtualmin GPL 2008/09/06 07:56  
Hello,

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 install.sh

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

Modifed VHost to include in public_html directory :

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

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

#!/bin/sh
PHPRC=$PWD/../etc/php5
export PHPRC
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
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
  The administrator has disabled public write access.
#16159
mkleiner (User)
Posts: 2
graphgraph
Re:PHP FCGI - Virtualmin GPL 2008/09/06 09:07  
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 !
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.