How to disable mod_cgi in directadmin custombuild

Edit configure.apache Custombuild

vim /usr/local/directadmin/custombuild/configure/ap2/configure.apache

add this below

        "--disable-cgid" \
        "--disable-cgi"

compile apache again

cd /usr/local/directadmin/custombuild/
./build apache

recheck mod_cgi

httpd -l

more choice
create .htaccess in folder user

Options +ExecCGI
AddHandler cgi-script .cgi

share: Disable Mod_CGI DirectAdmin