First time here!
Downloaded the starter kit and running locally on Mac but images do not appear. Are they not part of the download package? Seems like they are missing in the media folder?
Strangely when I downloaded the kit again there was no media folder at all.
Hello and welcome!
The media
folder is generated on the fly to contain resized versions of the original images, which you’ll find in the content
folder, together with the content text files.
Make sure you are starting Kirby correctly: instruction vary based on your local environment.
Not seeing images in the media folder suggests that the requests aren’t routed correctly. For example, to use the web server built into PHP you need to run the command:
php -S localhost:8000 kirby/router.php
If using an Apache webserver you need to make sure that the .htaccess
file is in the correct place.
If using an nginx webserver you need to manually configure the server yourself.
Here is a basic video on how to get started with the server built into PHP:
Thanks for this. When I run php -S localhost:8080 kirby/router I get this:
Warning : Unknown: Failed to open stream: No such file or directory in Unknown on line 0
Fatal error : Failed opening required ‘kirby/router’ (include_path=‘.:/usr/local/Cellar/php/8.3.3/share/php/pear’) in Unknown on line 0
Don’t forget the .php
it’s php -S localhost:8080 kirby/router.php
and you have to run this inside of the directory containing the starterkit
Yes. Got it now. I was doing it wrong!! Many Thanks.