Admin plugin not working

This is most likely a permissions issue on my server (localhost) but I cannot find the problem. Here is the admin plugin install:

MintMoFo grav # bin/gpm install admin

GPM Releases Configuration: Stable

The following dependencies need to be installed...
  |- Package form
  |- Package email
  |- Package login

Install these packages? [Y|n] y
Preparing to install Form [v2.0.8]
  |- Downloading package...   100%
  |- Checking destination...  ok
  |- Installing package...    ok                             
  '- Success!  

Preparing to install Email [v2.5.3]
  |- Downloading package...   100% 
  |- Checking destination...  ok
  |- Installing package...    ok                             
  '- Success!  

Preparing to install Login [v2.2.0]
  |- Downloading package...   100%
  |- Checking destination...  ok
  |- Installing package...    ok                             
  '- Success!  

Dependencies are OK

Preparing to install Admin Panel [v1.2.9]
  |- Downloading package...   100%
  |- Checking destination...  ok
  |- Installing package...    ok                             
  '- Success!  

Clearing cache

Cleared:  /var/www/html/grav/cache/twig/*
Cleared:  /var/www/html/grav/cache/compiled/*

Touched: /var/www/html/grav/user/config/system.yaml

However I cannot connect to the admin section to create users
Selection_087

I checked and the “admin” directory does not even exist.

MintMoFo grav # ls -la
total 308
drwxr-x--- 15 www-data www-data   4096 Jan 18 15:54 .
drwxr-x---  4 www-data www-data   4096 Jan 18 15:47 ..
drwxr-x---  2 www-data www-data   4096 Jan 18 15:48 assets
drwxr-x---  2 www-data www-data   4096 Jan 18 15:48 backup
drwxr-x---  2 www-data www-data   4096 Jan 18 15:48 bin
drwxr-x---  5 www-data www-data   4096 Jan 18 16:10 cache
-rw-r-x---  1 www-data www-data  77177 Jan 18 15:48 CHANGELOG.md
-rw-r-x---  1 www-data www-data    302 Jan 18 15:48 codeception.yml
-rw-r-x---  1 www-data www-data   1832 Jan 18 15:48 composer.json
-rw-r-x---  1 www-data www-data 111475 Jan 18 15:48 composer.lock
-rw-r-x---  1 www-data www-data   6389 Jan 18 15:48 CONTRIBUTING.md
-rw-r-x---  1 www-data www-data   1002 Jan 18 15:48 .dependencies
-rw-r-x---  1 www-data www-data    359 Jan 18 15:48 .editorconfig
drwxr-x---  8 www-data www-data   4096 Jan 18 15:48 .git
-rw-r-x---  1 www-data www-data    539 Jan 18 15:48 .gitignore
-rw-r-x---  1 www-data www-data   3034 Jan 18 15:48 .htaccess
drwxr-x---  2 www-data www-data   4096 Jan 18 15:48 images
-rw-r-x---  1 www-data www-data   1507 Jan 18 15:48 index.php
-rw-r-x---  1 www-data www-data   1071 Jan 18 15:48 LICENSE.txt
drwxr-x---  2 www-data www-data   4096 Jan 18 15:48 logs
-rw-r-x---  1 www-data www-data   6251 Jan 18 15:48 README.md
-rw-r-x---  1 www-data www-data    197 Jan 18 15:48 robots.txt
drwxr-x---  9 www-data www-data   4096 Jan 18 15:48 system
drwxr-x---  7 www-data www-data   4096 Jan 18 15:48 tests
drwxr-x---  2 www-data www-data   4096 Jan 18 16:09 tmp
-rw-r-x---  1 www-data www-data   4791 Jan 18 15:48 .travis.yml
drwxr-x---  8 www-data www-data   4096 Jan 18 15:48 user
drwxr-x--- 20 www-data www-data   4096 Jan 18 15:50 vendor
drwxr-x---  2 www-data www-data   4096 Jan 18 15:48 webserver-configs

Any ideas would be much appreciated.

This is caused by rewrite in your webserver not working properly, this this page: Grav 404 Fixes

I appreciate the link, but that did not solve the issue. The rewrite was commented out, and I uncommented it. Then
systemctl restart apache2
just for good measure… No dice.

Got it. The problem was in apache.conf inside of /etc/apache2.
AllowOverride for the directory /var/www/ was set to None. I changed it to All and problems solved. Thanks for the help!

Note: I did have to then manually install and override the Admin plugin, as well as the other 4 required plugins. That could be expected with the settings I had previously, not sure. Just want to help the next person with this.