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

 

[email protected]:/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 *


*