I’m a newbie to all this but motivated to get things working! Please talk to me in newbie language
I am on a mac and have downloaded grav and copied the intire folder (it didn’t seem to be a zip file as described in the documentation) to my root web folder. When type in my browser: http://localhost/grav/ I get a 404.
Hi, it’s not a zip because Safari automatically uncompresses zip files.
I think your problem is that you moved the content of the Grav folder into the webserver root, but you missed a hidden file called .htaccess, which is not visible in Finder, but tells the webserver how to avoid those 404s.
Best way is to re-download Grav and move the whole folder, not the folders inside it, so the hidden file will be moved as well.
then your unzipped grav files have to be in /Users/Lotte
be sure that you open your terminal and start php in the right directory.
in your case in /Users/Lotte
Mac wouldn’t let me open the terminal from a specific location but it really did something in the terminal when I typed what you said. Now when I type in localhost:8000/ I get a different result:
“The requested resource / was not found on this server.”
mac doesn’t let you open a terminal in a specific path? really?
if so you have to type in your correct grav path in step 3:
maybe: /Users/Lotte/grav php -S localhost:8000 system/router.php
option 1:
in terminal: change directory to /Users/Lotte/Werk/web/grav
then type: php -S localhost:8000 system/router.php
open browser: localhost:8000
option 2:
in terminal type:
/Users/Lotte/Werk/web/grav php -S localhost:8000 system/router.php
open browser: localhost:8000
Just to clear things up for me: At first I put the files on a remote web server by FTP, and tried to call this grav folder with my browser, but that was not correct and now I’m trying to call my local grav folder, is that correct?
localhost means your grav files have to be on your mac, not on a remote server.
so if you start php as described in step 3 your terminal should say:
Listening on http://localhost:8000
if your grav files are on a remote server you can’t access them in your browser with localhost