View Single Post
  #6  
Old 6th January 2007, 03:38
steve1084 steve1084 is offline
Member
 
Join Date: Dec 2006
Posts: 70
Thanks: 8
Thanked 2 Times in 1 Post
Exclamation where do I go to edit the vhost files ???

Maybe i am stupid or something but there is no instruction for this that I can see

How do I edit the vhost settings to place the suphp commands into the vhost files. I tried placing it in the ispconfig apache extra commends section and that didnt do anything so how and where. What file am I supost to edit I am at a loss.??

6 Apache Configuration

In this chapter I assume we have a web site www.example.com on the IP address 1.2.3.4 with the document root /var/www and the following vhost configuration:

<VirtualHost 1.2.3.4>
ServerName www.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/www
</VirtualHost>

In order to enable suPHP for the vhost www.example.com and let it run PHP scripts as the user testuser and the group test, we modify the vhost as follows:

<VirtualHost 1.2.3.4>
ServerName www.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/www

suPHP_Engine on
suPHP_UserGroup testuser test
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php
</VirtualHost>

AddHandler x-httpd-php refers to suPHP_AddHandler x-httpd-php which then refers to the x-httpd-php line in /etc/suphp.conf which means that scripts with the extensions .php, .php3, .php4, and .php5 are interpreted by /usr/bin/php5-cgi.
Reply With Quote