I’m trying to deploy a Kirby 3 website using LAMP on Digital Ocean and running into issues getting it to work. The error is:
Under /var/www/html/kirby/src/Filesystem/Dir.php
,
if (is_writable($parent) === false) {
throw new Exception(sprintf('The directory "%s" cannot be created', $dir));
}
I’m assuming it’s something with the directory not being rewritable. I’ve done the following to resolve the issue:
- followed everything from this topic: https://forum.getkirby.com/t/kirby-on-digitalocean-lamp-urls-doesn-t-work/2007 including enabling mod_rewire on Apache, and restarting the server.
- Installed PHP mbstring
- Double checked if the .htaccess file is working, as well as enabling
RewriteEngine
and settingRewriteBase /
- In apache.conf,
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
It’s running on Ubuntu 20.04 and php8.1. I’m a bit new to deploying on Digital Ocean and have used services such as Serverpilot without any issue, but would like to understand the hosting side of things a bit more in-depth.
Thank you for your help!