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

Grav on localhost (using KSweb)

Started by Kusalo 2 years ago · 6 replies · 158 views
2 years ago

I am looking to devlop/test website material offline on my phone (off grid a lot). I have installed KSweb as a php server and it runs OK. I copy grav-admin-v1.7.46.zip to htdocs and select 'extract to this folder'. This creates the folder 'htdocs/grav-admin'.
When I load: http://localhost:8080/grav-admin it defaults to: http://localhost:8080/grav-admin/admin
There is no /admin folder in 'grav-admin/'
If I load: http://localhost:8080/grav-admin/LICENSE.txt/ it loads that OK.
I figured that http://localhost:8080/grav-admin/ would load the index.php in that folder and present either the homepage or the admin register.
What am I missing?

2 years ago

When you first extract Grav and try to load it, if there's an Admin plugin installed (which it is in your case), it redirects you to /admin and asks you to create an admin account. Admin can't work without any account

2 years ago

Thx for the quick reply. As I said there's no /admin folder; either in the .zip file or the extraction so I get a 404 - not found.
Am I correct thinking that there should be an admin folder?

2 years ago

There shouldn't be such folder. Admin plugin handles this path. You should not get a 404 :/

2 years ago

Thx again. Thing is I am getting a 404 so, for some reason, the admin plugin is not being called. The zip extract sees grav-admin.htaccess set in htdocs, not grav-admin? I put a copy in grav-admin but it made no difference. I am sure we can get this working... just need a line of action.

2 years ago

grav-admin.htaccess? I don't think I ever saw such file. There should only be .htaccess in a root folder

2 years ago

I have been working on this over the last couple of days and made two 'changes' to my situation.
1 - I installed grav on my PC; localhost using xampp. I copied the install over to the phone. There was something not right about the zip extraction. The most obvious was the creation grav-admin.htaccess in htdocs.
2 - I switched to using apache - from Lighttpd

So, with a few other tweaks, I have a working grav... yay! I will now give time to exploring the interface and extras. It looks good. Thank you.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago