Hell, I'm running a VPS on Debian OS, while I tried to restart Apache I received the following error: Forcing reload of web server (apache2)...Syntax error on line 1 of /etc/apache2/sites-enabled/000-default: Invalid command '<VirutalHost', perhaps misspelled or defined by a module not included in the server configuration failed! I have no idea what to do, And my server is down for now, please advice. Thanks
Hi Mbpotin, It is best to request your host to have an admin looking into the issue so that you can have your sites up online asap. For some reasons, your apache configuration file is damaged Or just try this very quick: vi /etc/apache2/sites-enabled/000-default add > at the end of the first line or it becomes: <VirutalHost> => restart apache
Check your <VirtualHost> entry you probably miss a closing tag or something there then retart apache.
I fixed it, now I got this error: Forcing reload of web server (apache2)...Syntax error on line 49 of /etc/apache2/sites-enabled/000-default.save: Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration failed!
That directive is from mod_vhost_alias - so it sounds like that module isn't getting loaded. If it's a compiled in module, you can get it from httpd -l; otherwise it's likely either not installed - or not configured correctly.
Just checking the obvious here... <VirutalHost is actually spelt incorrectly. It should be <VirtualHost (swap the t and the u around.) Was that the actual problem ?