Suexec doc_root did not match Virtualmin requirement. (solved)

Procedure:

  • Fresh installed Centos 5.3 (x86_64) with minimum required packages
  • Install Webmin
  • Install Virtualmin from Webmin Configuration.
  • Running Virutalmin install script within Webmin panel
  • Check Configuration from Virtualmin module, the following error pops up:

    The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

    I login the Centos box, running suexec -V and shown the following:
    -D AP_DOC_ROOT="/var/www"
    -D AP_GID_MIN=100
    -D AP_HTTPD_USER="apache"
    -D AP_LOG_EXEC="/var/log/httpd/suexec.log"
    -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
    -D AP_UID_MIN=500
    -D AP_USERDIR_SUFFIX="public_html"

    The Centos Apache package version is:
    httpd.x86_64 2.2.3-22.el5.centos.2

    How can I continue to pass the configuration checking?

  • Status: 
    Closed (fixed)

    Comments

    Howdy -- it doesn't sound like things are installed correctly.

    Are you in a position where you can start over?

    Ideally, what you'd do is run the install.sh script as the first thing you do on the fresh OS.

    At that point, your procedure would be:

    • Install CentOS

    • Download and run the install.sh

    • Use your working system :-)