Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to access Grav on Raspberry Pi

Started by Kevin 7 years ago · 1 replies · 1117 views
7 years ago

Hi there,

I installed Nextcloud on my Raspberry Pi. At the moment I can only access the Pi within my own network. HTTP access works by typing in the IP.

On the same Pi I installed Grav using this tutorial. I did not change the hosts file.

TXT
  ls -l

insgesamt 40
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Desktop
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Documents
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Downloads
drwxr-xr-x 2 pi pi 4096 Jul 10 02:15 MagPi
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Music
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Pictures
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Public
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Templates
drwxr-xr-x 2 pi pi 4096 Sep 17 16:55 Videos
drwxr-xr-x 3 pi pi 4096 Sep 18 18:15 www
➜ ~ cd www
➜ www ls -l
insgesamt 10696
drwxrwxr-x 14 pi pi 4096 Aug 21 23:12 grav
-rw-r--r-- 1 pi pi 10946907 Aug 21 23:15 grav-blog.zip
➜ www cd grav
➜ grav ls -l
insgesamt 416
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 assets
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 backup
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 bin
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 cache
-rw-rw-r-- 1 pi pi 136364 Aug 21 23:12 CHANGELOG.md
-rw-rw-r-- 1 pi pi 3216 Aug 21 23:12 CODE_OF_CONDUCT.md
-rw-rw-r-- 1 pi pi 3755 Aug 21 23:12 composer.json
-rw-rw-r-- 1 pi pi 199559 Aug 21 23:12 composer.lock
-rw-rw-r-- 1 pi pi 7098 Aug 21 23:12 CONTRIBUTING.md
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 images
-rw-rw-r-- 1 pi pi 1690 Aug 21 23:12 index.php
-rw-rw-r-- 1 pi pi 1071 Aug 21 23:12 LICENSE.txt
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 logs
-rw-rw-r-- 1 pi pi 76 Aug 21 23:12 now.json
-rw-rw-r-- 1 pi pi 6701 Aug 21 23:12 README.md
-rw-rw-r-- 1 pi pi 227 Aug 21 23:12 robots.txt
drwxrwxr-x 10 pi pi 4096 Aug 21 23:12 system
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 tmp
drwxrwxr-x 8 pi pi 4096 Aug 21 23:12 user
drwxrwxr-x 29 pi pi 4096 Aug 21 23:12 vendor
drwxrwxr-x 2 pi pi 4096 Aug 21 23:12 webserver-configs

Everything seems to be there when I check with via ssh.

Not i type in http://IP_OF_MY_PI/www/grav/index.php

I get a 404 message. What did I do wrong?

7 years ago

are you sure your grav install is on the web root (e.g. /var/www) of the apache server ?

  • your first ls -l seems to show the content of /home/pi or anything like that...

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 5 days ago
1 97 4 days ago
Support · by Anna, 3 weeks ago
1 266 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 657 1 month ago