How to change suexec root directory from "/var/www" to "/home"?

Posted by Oudin on Server Fault See other posts from Server Fault or by Oudin
Published on 2012-06-26T16:48:52Z Indexed on 2012/06/26 21:18 UTC
Read the original article Hit count: 284

Filed under:
|
|

Hi I've installed suexec using on ubuntu 12.04:

apt-get install apache2 apache2-suexec libapache2-mod-fcgid php5-cgi

However when I run the following command:

sudo /usr/lib/apache2/suexec -V

I get the following info:

 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="www-data"
 -D AP_LOG_EXEC="/var/log/apache2/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=100
 -D AP_USERDIR_SUFFIX="public_html"

I'm utilizing "/home/user/public_html" to serve users content on the web not "/var/www" How can I change the root directory to "/home"?

© Server Fault or respective owner

Related posts about apache2

Related posts about mod-fcgid