I have a httpd server     SuexecUserGroup         netmet netmet    DocumentRoot            /home/netmet/html    ServerName                  ServerAdmin                 ErrorLog                /var/log/httpd/netmet.error    TransferLog             /var/log/httpd/netmet.access    DirectoryIndex          index.cgi index.html    AliasMatch              /netmet-cgi-bin/nmHOST-4.*-DETAILS(.*)\.cgi /usr/lib/cgi-bin/netmet-cgi-bin/nmHOST-DETAILS$1.cgi    AliasMatch              /netmet-cgi-bin/nmHOST-4.*-SERVICES(.*)\.cgi /usr/lib/cgi-bin/html/netmet-cgi-bin/nmHOST-SERVICES$1.cgi    AliasMatch              /netmet-cgi-bin/nmTOP_NforORGA4-.*\.cgi /usr/lib/cgi-bin/netmet-cgi-bin/nmTOP_NforORGA.cgi    AddHandler              cgi-script .cgi .plWhen I try to access to those scripts with my server, I get 500 internal server error so I check error.log :[Fri Jun 02 09:07:01.467017 2017] [core:notice] [pid 31617] AH00094: Command line: '/usr/sbin/apache2'suexec policy violation: see suexec log for more detailsNow the suexec.log :[2017-06-02 09:07:26]: uid: (1001/netmet) gid: (1001/netmet) cmd: index.cgi[2017-06-02 09:07:26]: command not in docroot (/home/netmet/html/index.cgi)After looking on the web a solution, people advice to do ~# /usr/lib/apache2/suexec -V -D SUEXEC_CONFIG_DIR=/etc/apache2/suexec/ -D AP_GID_MIN=100 -D AP_LOG_EXEC=/var/log/apache2/suexec.log -D AP_SAFE_PATH=/usr/local/bin:/usr/bin:/bin -D AP_UID_MIN=100Why DOC_ROOT is not displayed ??Please help me :'(
Scipts cgi and suexec
debian;apache httpd;cgi;suexec
You can change it after install apache2-suexec-custom:apt-get install apache2-suexec-customand change config in:/etc/apache2/suexecand restart apache2 service