# Images, subpages and panel not working

**URL:** <https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 18, 2019, 12:24am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347 "2019-11-18T00:24:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [November 18, 2019, 12:24am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/1 "2019-11-18T00:24:30Z")

</div>

- Images, subpages and panel not working.
- This is localhost with apache 2.4.29 and php 7.2.24
- mbstring, curl, ctype, gd enabled
- Adding gibberish to .htacesss (before the IfModule mod\_rewrite.c tag) produces a 500 internal server error
- var/www/html/ , var/www/html/starterkit and all subfolders are root/root drwxr-xr-x
- All files are root/root -rw-r–r–
- I tried with ‘RewriteBase /’ and ‘RewriteBase /starterkit’ to no avail
- I also tried to serve the starterkit from a user directory at ~/public\_html/starterkit whose .htaccess also produces a 500 internal server error if filled with gibberish, and whose folders and files have the same permissions although not root/root owned but user/user (user being my user)

… what’s left for me to try ?

Thank you

---

<div class="post-metadata">

**Author:** ![bvdputte](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bvdputte/32/8179_2.png) [@bvdputte](https://forum.getkirby.com/u/bvdputte)\
**Post date:** [November 18, 2019, 6:43am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/2 "2019-11-18T06:43:07Z")

</div>

What is the error message in the server logs?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 18, 2019, 6:53am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/3 "2019-11-18T06:53:37Z")

</div>

And what is your local environment?

If you are using PHP’s built-in server, you have to start it with Kirby’s router.php

```auto
php -S localhost:8000 kirby/router.php

```

> **[Get up and running](https://getkirby.com/docs/guide/quickstart)**
>
> All you need to know to get Kirby up and running: Installation, requirements and updates.

---

<div class="post-metadata">

**Author:** ![brijesh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/brijesh/32/7663_2.png) [@brijesh](https://forum.getkirby.com/u/brijesh)\
**Post date:** [November 18, 2019, 7:10am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/4 "2019-11-18T07:10:23Z")

</div>

I have a similar issue. The local version is working fine using php -S localhost:8000 kirby/router.php but showing error on the production server.

 ![09%20PM](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/f/feef3d6826e5dd78355be9c1579840d371ce5a6e.png)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 18, 2019, 7:14am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/5 "2019-11-18T07:14:23Z")

</div>

Does the media folder get created on the remote server? Make sure not to deploy your media folder, it gets recreated (or should get created) on the server.

---

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [November 18, 2019, 9:35am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/6 "2019-11-18T09:35:30Z")

</div>

Apache’s error.log shows ‘File does not exist’ entries for files and also for the panel

`[Mon Nov 18 01:33:36.985620 2019] [core:info] [pid 4629] [client 127.0.0.1:49292] AH00128: File does not exist: /home/jaume/public_html/starterkit/media/pages/photography/plants/460365936-1574037194/nice-colors-ugly-plant-1024x1024.jpg, referer: http://localhost/~jaume/starterkit/`

`[Mon Nov 18 10:24:58.855112 2019] [core:info] [pid 955] [client 127.0.0.1:59570] AH00128: File does not exist: /var/www/html/starterkit/panel`

> [@texnixe](#):
>
> And what is your local environment?
> 
> If you are using PHP’s built-in server, you have to start it with Kirby’s router.php
> 
> ```auto
> php -S localhost:8000 kirby/router.php
> 
> ```

@texnixe I am not running php’s built-in server but accessing the site via apache 2.4.29 as mentioned.

Actually… apache should have write access to some folders shouldn’t it ?

Thanks

---

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [November 18, 2019, 10:00am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/7 "2019-11-18T10:00:36Z")

</div>

Btw, there is no media folder in ‘/var/www/html/starterkit’ but there IS a media folder in ‘/home/myuser/starterkit’, this media folder is created and owned by `www-data` (apache user) but still no images or panel in either location.

I just tried adding `www-data` as group owner to the html folder recursively , and giving group write access to it also recursively. So now `www-data` should have write access to all of `/html` folder

That allowed apache to create a media folder there aswell, but, again, no images or panel.

/edit

I’ve checked permissions on an external HD rsync backup of a working local installation:

```
var/html/webdev drwxr-xr-x myuser/myuser
var/html/webdev/kirbyfolder drwxrwxr-x myuser/myuser
var/html/webdev/kirbyfolder/content and /media drwxrwxr-x myuser/www-data (apache)
rest of folders drwxrwxr-x myuser/myuser
non executable files -rw-rw-r-- myuser/myuser
executable files -rwxrwxr-x myuser/myuser

```

Which would mean it complied with 755/644 permissions AND had write permissions for apache on ‘content’ and ‘media’ folders.

No other hints there

edit/

I checked again php info and mbstring seems to be enabled.

I am confused… the pain… please help

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [November 18, 2019, 11:16am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/8 "2019-11-18T11:16:05Z")

</div>

Your Webserver (apache) needs write permissions on ‘site/accounts’ and ‘site/sessions’ folders too!

---

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [November 18, 2019, 11:36am UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/9 "2019-11-18T11:36:32Z")

</div>

Ok thank you @anon77445132, I believe needed write permissions are not clearly stated in the guide are they?

But this does not seem to solve my problem. I already tried giving `www-data` group ownership to `var/www/html/` recursively and gave the group `+rwX` also recursively.

So Apache should be able to read and write and navigate freely, but images, subpages and panel are not working.

Plus` site/accounts` and` site/sessions` do not exist in this installation!

Jesus, where did it go wrong!

---

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [November 18, 2019, 12:45pm UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/10 "2019-11-18T12:45:21Z")

</div>

I am going to start over.

---

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [November 18, 2019, 4:56pm UTC](https://forum.getkirby.com/t/images-subpages-and-panel-not-working/16347/11 "2019-11-18T16:56:44Z")

</div>

Solution: mod\_rewrite was not enabled
