Invalid command VirtualDocumentRoot perhaps misspelled apache failur error

Invalid command VirtualDocumentRoot perhaps misspelled apache failur error

So you got the above error ha? I have been dealing with that as well. Here is the solution.
The root of the problem is mod_vhost_alias.so file.
This file would be used to enable the the mod_vhost_alias. Once this is enabled you are done.

Step 1.
go to

/usr/lib/apache2/modules

and verify the file mod_vhost_alias.so exists. If not, google that file and put it there

Step 2.
go to

/etc/apache2/mods-enabled 

and create a file named vhost_alias.load

vi vhost_alias.load

and put the following inside it

LoadModule vhost_alias_module /usr/lib/apache2/modules/mod_vhost_alias.so

Step 3.
Do step 2 inside mods-available
Step 4.
restart apache

sudo /etc/init.d/apache2 restart

Step 5
Show :) face!!
This analogy can be used for errors like

Invalid Command ‘SSLEngine’, perhaps misspelled or defined by a module not included in the server configuration. Action ‘configtest’ failed’
and for
Invalid Command ‘rewriteengine’, perhaps misspelled or defined by a module not included in the server configuration. Action ‘configtest’ failed’

See how you would solve these known algorithm problems

Implementing tokenizer and adding tokens to the linked list

Array reversal in Recurrsion

testing k complementary pairs algorithm with junit

Get maximum occurring character

Find the first occurence of number in the sorted array

Changing decimal number to its binary equivalent

Find the pairs that makes K Complementary in the given array java solution

Java solution for checking anagram strings – tell if phrases are anagrams

find longest word in the sentence

binary tree problems with solution

4 Comments
  1. anyon

    Step 3 makes no sense… it is what step 2 is!

    Also it did not work

  2. sushi

    step 2 should be:
    creating the vhost_alias.load as described in /etc/apache2/mods-available
    then enable that module with
    sudo a2enmod vhost_alias
    restart apache2
    et voila
    thanks anyway – you put me in the right direction

  3. Lashawnda Cornelio

    great post

  4. Elwood Seielstad

    I thank you so much for your time in writing this post.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*