.htaccess Error : Invalid command 'AuthGroupFile'

before this i was working on windows and my project was working proper. recently i moved to ubuntu and i am trying setup project on LAMP.

i have created host for this (windows i was running directly through localhost) and when i am running it getting 500 Internal server Error.

when i looked in my log file i got Invalid command 'AuthGroupFile', perhaps misspelled or defined by a module not included in the server configuration.

.htaccess File

#php_value zend.ze1_compatibility_mode off
AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /opt/lampp/htdocs/uniplex_mobile/.htpasswd 
AuthGroupFile /dev/null 

<Files manageurls.html>
require valid-user
</Files>
<Files addurl.html>
require valid-user
</Files>
<Files editurl.html>
require valid-user
</Files>

AddType application/x-httpd-php .php .htm .html

my project is on smarty framework.

can anyone help to solve this?

Thanks in advance


Try:

a2enmod authz_groupfile

This should help you.


Please use sudo for this command as it worked for me:

sudo a2enmod authz_groupfile