XAMPP virtual host permissions macOS Tahoe (26.2)

Hi,

I have XAMPP all set up and working on macOS Tahoe (26.2) with virtual hosts but have a PermissionException issue with Kirby not being able to create the accounts directory. With the error message: “The accounts directory could not be created”.

Has anyone written a guide specifically for XAMPP virtual hosts and user and groups permissions for Kirby?

Solved and simple…

When you have your XAMPP virtual host all set up and working:

  1. Unzip Kirby Starter or Plain kit in htdocs directory
  2. Rename the directory to reflect your site name
  3. Add a new virtual host using the path to the Kirby install
  4. Right click on the web root folder for the Kirby site and select Get Info.
  5. Click on the lock icon and enter your password
  6. Change the group everyone to Read & Write
  7. Click on the options icon (…) and select “Apply to enclosed items…
  8. No changes should be required for the .htaccess file

Thanks for posting your step-by-step solution :yellow_heart:

When setting up the Virtual Hosts use the following template:

/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf

Add the following block replacing devsite with your site name:

# My Custom Host for 'devsite.localhost'
<VirtualHost *:80>
    ServerName devsite.localhost
    DocumentRoot "/applications/XAMPP/xamppfiles/htdocs/devsite"
    <Directory "/applications/XAMPP/xamppfiles/htdocs/devsite">
        Options Indexes FollowSymLinks Includes execCGI
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

This worked for Sequoia and Tahoe, no change required in the Kirby .htaccess file.

You probably have good reasons to choose XAMPP.

However, there are tools like Laravel Herd (while Nginx based) that make your dev life a lot easier. No need to create virtual hosts manually, every folder in a given folder becomes a virtual host automatically.

There’s a video how to set up Kirby using this tool as well: https://www.youtube.com/watch?v=us4hwvMJbzs. The free version has everything you need. There’s also a paid version with some extra goodies.

1 Like

Ah excellent, I gave up on MAMP as I was having no end of problems and XAMPP looked like the only other option. Thanks for sharing I will give Laravel Herd a try :slight_smile: