Local Grav Installation

I’m setting up grav to run on my computer, I have installed Apache, PHP (latest version), Twig. I downloaded the zip file and extracted it and copied the extracted folder to the webroot. My OS is Manjaro Linux.

When I put “http://localhost/grav-admin/” into the browser’s location bar, I get “Index of /grav-admin” with the directory of all the grav files.

It should be displaying the admin signup page, shouldn’t it? What am I doing wrong? Or what haven’t I done yet?

http://localhost/grav-admin/ should show you a new user registration form. Admin is most likely under http://localhost/grav-admin/admin (grav-admin is your Grav root I believe). As for why you see folder/file list instead of proper page, I don’t know. Maybe something’s wrong with .htaccess (if it’s there) or server config. I’m not good at this :slight_smile:

@dpdoug, I can only reproduce this behaviour when both .htaccess and index.php are absent in the root folder of the Grav installation.

What should .htaccess look like? And where should these 2 files go? I have the Grav files in the grav-admin folder (/srv/http/grav-admin/). By the way, my OS is Manjaro – a Linux distro. (I don’t know if that has any bearing on it or not)

@dpdoug, They both should be part of the *.zip file downloaded from Downloads | Grav CMS and exist in the root of Grav.

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

Apache/2.4.54 (Unix)

This is what I get when I enter http://localhost/grav-admin/admin

@dpdoug, Just tested and the downloaded zip is just working fine.

  • You may have overlooked something while unzipping the zip file.
  • Are you sure Apache is configured correctly?
  • What is the path to grav-admin/user?

I created a folder, extracted the whole zip into the folder I created then copied the whole folder to the webroot (as specified in the documentation). Since it says there are 2 invisible files in it. I don’t know if those are the 2 you refer to…

The file .htaccess is not in the grav-admin folder. I don’t know if that’s one of the hidden files or not. Also, what would I have to do to correctly configure Apache? It has a huge .ini file and I don’t have the first idea what might need to be changed.

Is the .htaccess file supposed to be with the Grav install zip file? I unzipped the whole file into a folder, as I already mentioned, and copied the whole folder with complete contents to the webroot.

By the error message, obviously there is something missing. Is there some way to find out what that Object might be?

@dpdoug, Apart from…

  • Have you had any chance to search this forum?
  • Have you had any chance to search the web?
  • Here is a doc on 404 Not Found,

…I’m out of suggestions…