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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

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 · 881 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

Hi
What's the error you're getting when the grav files are moved to the web server root?

Assuming you're using Apache, you definitely copied the htaccess file out of the unziped admin folder and its now in the root? Sometimes it gets skipped during manual file copying due to permissions on the file.

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

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 Thomas, 1 week ago
2 55 13 hours ago
Support · by Anna, 3 days ago
2 60 16 hours ago
Support · by Justin Young, 16 hours ago
1 31 16 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 58 5 days ago