This and #798931 are the same bug though phrased differently. As of Kubuntu Bionic the command service seems to be replaced by systemctl so the requisite steps are:
#! /bin/sh sudo a2enmod cgid sudo systemctl restart apache2 -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा 𑀰𑁆𑀭𑀻𑀭𑀫𑀡𑀰𑀭𑁆𑀫𑀸