Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration failed!

By mistake, I deleted all the content of the directory /etc/apache2/mods-enabled/.
I was unable to restart the Apache server.
I got the following error :

root@localhost:~# service apache2 restart
Restarting web server: apache2Syntax error on line 143 of /etc/apache2/apache2.conf:
Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration failed!

A similar problem has already been met and registered as a Debian bug :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392349

The command ‘Order’ in Apache configuration file is managed through authz_host module.
Following their solution, I reloaded the modules below:

root@localhost:~# a2enmod authz_host
root@localhost:~# a2enmod mime
root@localhost:~# a2enmod alias
root@localhost:~# a2enmod setenvif

and then I restarted the Apache server successfully :

root@localhost:~# service apache2 restart

For more information about Apache modules, please have a look at their official documentation :
http://httpd.apache.org/docs/2.2/

Advertisements

5 thoughts on “Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration failed!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s