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

How to install Grav in the actual root of the webserver and keep it working?

Started by Wim Vancoillie 9 years ago · 6 replies · 1018 views
9 years ago

I installed grav + admin by unzipping everything to the root of the webserver. After unzipping I have to rename the folder to admin before I can use the system.
However I have to navigate to the webserver/admin to see my actual website afterwards. Any easy way to have it pointed to the root folder instead? Tried moving everything but then the admin section was broke.
Anything I'm missing here?

9 years ago

@CygnusProjects:
I installed grav + admin by unzipping everything to the root of the webserver. After unzipping I have to rename the folder to admin before I can use the system.

You have to unzip the archive into the root, not into any folder. It should look like this:

TXT
web_root/system
        /user
        ...
        /index.php

And so on. You should not rename any folder, because there shouldn't be any folder.

9 years ago Jared Hi What's the error you're getting when the grav files are moved to the web server root? A…

When I'm copying the zip to the root of the server and unzip it a folder grav-admin is created. Navigating to the url of the server shows the error: admin folder not found (or no rights to access). So I had to rename the folder from grav-admin to admin before it works. However doing so does make server/admin the root of the site iso simply the actual root.
Copy the complete admin to the root does result again in the admin folder not found error. Could be the hidden files aren't copied over from the admin to the root as I'm on Mac OS Sierra and can't see the hidden files apparently.

9 years ago

If you have it in folder grav-admin the website will show up at youraddress.com/grav-admin.
If you rename it to admin, it will show up at youraddress.com/admin.
When you are copying the files, you have to include hidden files, because Grav won't work without them.
To display hidden files in Mac OS, use keyboard shortcut cmd + shift + .

9 years ago

Indeed, the hidden files weren't copied over after the unzip. Defaulted mu OS to always display hidden files and folders and now it all works. Thanks!

👍 1
9 years ago

Always happy to help :)

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 13 hours ago
1 38 6 hours ago
Support · by gtx, 1 week ago
4 226 1 day ago
Support · by Paul Hodges, 2 weeks ago
13 274 5 days ago
Support · by Anna, 3 weeks ago
9 333 1 week ago
Support · by TomW, 2 weeks ago
4 187 1 week ago