sudo a2enmod cgi Your MPM seems to be threaded. Selecting cgid instead of cgi. Module cgid already enabled