Blank page showing only raw php

I’ve spent hours and hours now trying to just get a damned basic Kirby ‘welcome’ page to show up, then (hopefully) a Panel install option. Hours. So far, nothing but errors. I have managed to change configuration and permission and htaccess options about a thousand times. I’ve blown away nginx and gone back to apache2. I’ve chmodded and chowned everything ten ways from Sunday. I even blew away Kirby and reinstalled it from scratch. I’ve moved it from one default location to a different one. I’ve Googled things until every result shows to be previously read.

Nothing has worked.

At this point, I am getting a blank page with just the raw PHP showing like this:


when I go to the panel directory I get this raw PHP:

roots->index)) { $kirby->roots->index = $index; } // the default avatar directory if(!isset($kirby->roots->avatars)) { $kirby->roots->avatars = $index . DS . 'assets' . DS . 'avatars'; } // the default thumbs directory if(!isset($kirby->roots->thumbs)) { $kirby->roots->thumbs = $index . DS . 'thumbs'; } // create the panel object $panel = new Panel($kirby, __DIR__); // launch the panel echo $panel->launch();

I’m running this with PHP7 fpm and Apache2 and the Raspbian distro of Debian (on my Raspberry Pi 2).

If someone could point me in the right direction I would be eternally grateful!

Just enabled fcgi and fpm in Apache. That changed the result. Now instead of raw php i get:

Access denied

Well hey, at least it’s something different to search for…

Fixed the ‘access denied’ issue by fixing permissions. I ran most of these commands from this post and got the Kirby welcome page:

Now the panel is 404 Not Found. Working on that…

UPDATE: Panel is no longer 404, BUT - is reporting the ‘must be on the same server’ error. I have already implemented the suggested solution. I’ve had that solution implemented the entire time. It seems to be ignoring it.

So - here is what I have in /var/www/html/site/config/config.php:

c::set('panel.install', true);

Is that not correct?

FINAL UPDATE: ok, this last issue about the panel login, yeah - that one is my bad. Let’s just say you might want to be careful when adding the ‘panel.install’ line into your config.php. It won’t work if you insert it inside of the /* */ comment code section…