How to run kirby3 on localhost with mac os ventura 13.0.1?

Hi there !
I tried to install a local version of Kirby3 on my mac (os ventura 13.0.1) to test it.

I installed the latest version of XAMPP 8.1.6 (PHP 8). I started XAMPP.

I saved the “starterkit” files in the htdocs folder, .

After entering “localhost” in the browser window, I received following error message:
Kirby\Exception\PermissionException thrown with message “The accounts directory could not be created”

Stacktrace:
#23 Kirby\Exception\PermissionException in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/System.php:204
#22 Kirby\Cms\System:init in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/System.php:50
#21 Kirby\Cms\System:__construct in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/App.php:1654
#20 Kirby\Cms\App:system in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/AppCaches.php:85
#19 Kirby\Cms\App:cacheOptions in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/AppCaches.php:35
#18 Kirby\Cms\App:cache in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Uuid/Uuids.php:27
#17 Kirby\Uuid\Uuids:cache in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Uuid/FileUuid.php:37
#16 Kirby\Uuid\FileUuid:findByCache in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Uuid/Uuid.php:298
#15 Kirby\Uuid\Uuid:model in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/App.php:646
#14 Kirby\Cms\App:file in /Applications/XAMPP/xamppfiles/htdocs/kirby/config/methods.php:154
#13 Kirby\Cms\Core:{closure} in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/Field.php:78
#12 Kirby\Cms\Field:__call in /Applications/XAMPP/xamppfiles/htdocs/kirby/config/methods.php:139
#11 Kirby\Cms\Core:{closure} in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/Field.php:78
#10 Kirby\Cms\Field:__call in /Applications/XAMPP/xamppfiles/htdocs/site/models/album.php:21
#9 AlbumPage:cover in /Applications/XAMPP/xamppfiles/htdocs/site/templates/home.php:46
#8 include in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Filesystem/F.php:425
#7 Kirby\Filesystem\F:loadIsolated in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Filesystem/F.php:364
#6 Kirby\Filesystem\F:Kirby\Filesystem{closure} in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Filesystem/F.php:372
#5 Kirby\Filesystem\F:load in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Toolkit/Tpl.php:37
#4 Kirby\Toolkit\Tpl:load in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/Template.php:171
#3 Kirby\Cms\Template:render in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/Page.php:1064
#2 Kirby\Cms\Page:render in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/App.php:803
#1 Kirby\Cms\App:io in /Applications/XAMPP/xamppfiles/htdocs/kirby/src/Cms/App.php:1242
#0 Kirby\Cms\App:render in /Applications/XAMPP/xamppfiles/htdocs/index.php:5

The folders don’t seem to have the right permissions set.

Hm, just tried to install Xampp on my system to test but couldn’t get the app to start. Sorry.

Personally, I prefer MAMP to Xampp on a Mac. Usually doesn’t have these problems.

I installed MAMP, finally. Kirby is running now :slight_smile:

@Gerhard Great!

And welcome to Kirby and this forum!

1 Like

You don’t really need MAMP or XAMP on MAC OS. Simply open a terminal, go into getkirby directory and then type php -S localhost:8080 kirby/router.php

Best,
Vito

Not quite true anymore, because newer versions of MacOS (since MacOS Monterey) don’t come with PHP preinstalled anymore. So you need to install PHP first.