Web-server – Apache won’t start and config file won’t open

apache-2.2configurationweb-server

Not sure what I've done here or maybe it was someone else but when I try and start apache I get the following error:

Syntax error on line 1 of /etc/apache2/apache2.conf:
Invalid command 'VimCrypt~01!J\xc7\xcc$Q\xbe'\xee\x04\x8dIfv\x8dk\x8e:\x92&\x80j\x8a\xf8\xcc\xa5\xd8]\x8e….etc', perhaps misspelled or defined by a module not included in the server configuration

When I try to open the apache2.conf file in gedit I get the error:

Could not open the file /etc/apache2/apache2.conf

And when I try in vim to open it it asks for an encyption key.

Does anyone know what's happened here? Very confused!

Thanks a lot

Best Answer

there you should be a backup of your conf file around, usually apache2-default.conf. try copying that with your changes to overwrite the last conf. again, copy it and don't move it or you could do this - http://ubuntuforums.org/showthread.php?t=662889 to get orignal copies of your conf files.

i hope this helps