change document root of mod_suexec


In mod_suexec, ‘document_root’ can not be changed because it is compiled directly. To change the default path of debian (/ var / www), you must either re-compile mod_suexec or even use the suexec-custom package.

apt-get install apache2-suexec-custom

After that, the directory can be changed in / etc/apache2/suexec/www-data:

/srv/www
public_html/php-fcgi
# The first two lines contain the suexec document root and the suexec userdir
# suffix. If one of them is disabled by prepending a # character, suexec will
# refuse the corresponding type of request.
# This config file is only used by the apache2-suexec-custom package. See the
# suexec man page included in the package for more details.

Possibly related posts: (automatically generated)

Leave a comment

Your email address will not be published. Required fields are marked *