0

This question already has an answer here:

I'm new to Ubuntu, I'd installed Apache2 in Ubuntu but due to errors during installation i uninstalled it. But when i try re-installing it again an error is displayed in terminal..

Error: Module cgid does not exixts.
It looks like you've deleted /etc/apache2/mods-available/cgid.load, so mod_cgid cannot be enabled. 
To fix this, please purge and reinstall apache2.2-commom. 
/etc/init.d/apache2: 51: .: Can't open /etc/apache2/envvars
invoke-rc.d: initscript apache2, action "start" failed..

Please help me to solve this error..

marked as duplicate by Rinzwind, karel, Eric Carvalho, Seth May 2 '14 at 4:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Try completely purging apache2, then try to re-install again.

sudo apt-get remove apache2*

You can find the steps here...

Not the answer you're looking for? Browse other questions tagged or ask your own question.