I’ve noticed the following error while creating .htaccess file for my test domain.
[Mon Apr 27 12:23:31.372528 2020] [core:alert] [pid 3783] [client 104.18.52.192:46990]
/srv/www/htdocs/production/www.testwebsite.com/.htaccess: Invalid command 'AuthGroupFile',
perhaps misspelled or defined by a module not included in the server configuration,
referer: http://www.testwebsite.com/
If you are getting the same issue, then follow my instructions to fix the issue.
In your .htaccess file, you have mentioned the command like ‘AuthGroupFile’ and it requires the apache module ‘authz_groupfile’. All you need to do is, just install this module to fix this issue.
Command for activating “authz_groupfile” apache module
sudo a2enmod authz_groupfile
Sample Output:
root@gtechhub:/home/user# sudo a2enmod authz_groupfile
Considering dependency authz_core for authz_groupfile:
Module authz_core already enabled
Enabling module authz_groupfile.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart apache2 to apply the changes
Apache2 Restart
systemctl restart apache2
The issue “Invalid command ‘AuthGroupFile’” is fixed now.

Related Posts
-
cd command in Linux / Unix'cd' is a Linux command to change the current working directory or folder of the terminal (Shell). Syntax: # cd [directory / folder name] cd: cd [-L|[-P [-e]]] [dir] Change the shell working directory. Change the current directory to DIR. The default DIR is the value of the…
-
Linux command to list out all installed fonts: fc-listfc-list lists fonts and styles available on the system using fontconfig. You can use fc-list to find out whether particular language font is installed or not. In this tutorial, I will show you how to list all installed fonts and also how to list installed fonts for a particular language…
-
Debian/Ubuntu: How To Start / Stop / Restart Apache ServerApache server is an open-source and cross-platform HTTP server, primarily used to serve both static content and dynamic Web pages on the World Wide Web. Starting, stopping, and restarting/reloading are the most common tasks while working with an Apache web server by developer or system administrator. In this article,…
-
How to list out all installed or activated apache modules on a server: apache2ctlLinux widely uses operating system in the server side and client side. Linux operating system provides flexible options to install our custom packages and extensions based on our project requirement. Apache is developed and maintained by an Open community of Apache Software Foundation. Apache is free and open source software and it…
-
-
Linux cURL Commandcurl is a tool / client to transfer data from or to a server and to get documents/files from or send documents to a server, using any one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user…
cal - How to get monthly and yearly calendar in LinuxThe "cal" command displays a simple calendar with Linux / UNIX date and time. If no argument passed, then the current month is displayed. Month can specified as a number from 1 to 12. "cal" command without argument to get monthly calendar: Monthly calendar "cal" command with argument to get…