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

 

root@71796:/home/# service apache2 restart
 * Restarting web server apache2 [fail]
 * The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 10 of /etc/apache2/sites-enabled/domain.com.conf:
Invalid command 'UserDir', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

Solution?
Enable usedir.

sudo a2enmod userdir

Then restart apache đŸ™‚

 

 

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.