Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Admin doesn't work on apache windows

Started by athire 2 years ago · 5 replies · 176 views
2 years ago

Hi

Installed

apache 2.4
Php
PHP8 module
PHPIniDir "C:/php"
LoadModule php_module "C:/php/php8apache2_4.dll"
AddType application/x-httpd-php .php
tested installation php.info does work

installed grav-admin

vopied .htaccess to root
Configured modules

TXT
      documentRoot "${SRVROOT}/htdocs"
      <Directory "${SRVROOT}/htdocs">
          #
          # Possible values for the Options directive are "None", "All",
          # or any combination of:
          #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
          #
          # Note that "MultiViews" must be named *explicitly* --- "Options All"
          # doesn't give it to you.
          #
          # The Options directive is both complicated and important.  Please see
          # http://httpd.apache.org/docs/2.4/mod/core.html#options
          # for more information.
          #
          Options Indexes FollowSymLinks

          #
          # AllowOverride controls what directives may be placed in .htaccess files.
          # It can be "All", "None", or any combination of the keywords:
          #   AllowOverride FileInfo AuthConfig Limit
          #
          AllowOverride All

          #
          # Controls who can get stuff from this server.
          #
          #Allow from all
      </Directory>

browsing to localhost/grav-admin doesn't work -> sais localhost/admin doesn't exist

tried a lot ...
cannot get it to work, help appreciated
Alain

tried

2 years ago

Where did you copy the .htaccess from? Grav already has a ready-to-use one

2 years ago

I copied the grac .htaccess to the website root
No chabnges were made

2 years ago

In fact you need there are two options in http.conf where you need to set the (same) port
That caused the root to work but not the subsites since it redirected to the wrong port
issue closed

2 years ago

If your root is /localhost and you uploaded Grav to /localhost/grav-admin, you shouldn't need to change anything in your root, unless there's something special 🤔

2 years ago

I've used xampp in Windows, with no problems with Grav. I don't have to change anything.
Revise the PHP modules necessary and other troubles

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 22 hours ago
2 70 1 hour ago
Support · by gtx, 1 week ago
4 233 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 283 5 days ago
Support · by Anna, 3 weeks ago
9 340 1 week ago
Support · by TomW, 2 weeks ago
4 192 2 weeks ago