Thread: PHP doc_root
View Single Post
Old 03-28-2011, 11:32 PM   #4 (permalink)
mjwalsh
The Wanderer
 
Join Date: Dec 2008
Location: Houston, TX
Posts: 14
Thanks: 1
mjwalsh is on a distinguished road
Default

You would have to modify the httpd.conf file, personally I use cPanel on CentOS, the typically default virtual host entry would look something like this:

Quote:
<VirtualHost 69.64.91.228:80>
ServerName mjwalsh.net
ServerAlias www.mjwalsh.net
DocumentRoot /home/******/public_html
ServerAdmin webmaster@mjwalsh.net
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/mjwalsh.net combined
CustomLog /usr/local/apache/domlogs/mjwalsh.net-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User mjwalsh # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup ****** ******
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup ****** ******
</IfModule>
ScriptAlias /cgi-bin/ /home/******/public_html/cgi-bin/


# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2/******/mjwalsh.net/*.conf"

</VirtualHost>
I took out the instances of the username and replaced them with ******. Obviously this is all not needed th emain thing you're looking at is the document root areas along with server name.
Send a message via AIM to mjwalsh Send a message via MSN to mjwalsh
mjwalsh is offline  
Reply With Quote