Nearly Free Speech Hosting

Hello. Anyone running Kirby on NearlyFreeSpeech.net hosting? I’ve tried installing the starterkit with no success. The server is running PHP 8.1, the site is in the root “public” folder, and all folders are set with 755 permissions and files with 664. There is nothing else on the server except for the starterkit. This is also a fresh install of the starterkit with no additions. In the .htaccess file I’ve tried turning on RewriteBase / with no change. When I visit the site I get the Kirby CMS Debugger with the following message:
Kirby \ Exception \ PermissionException (error.permission)
The accounts directory could not be created

If I add index.php to the URL, https://josefine.nfshost.com/index.php, I get the starterkit with the menu and footer, but with an Error message. “Error This page cannot be found :scream:” in the body area. Clicking a link, like Photography, gives me the following error:

Kirby \ Exception \ PermissionException (error.permission)
The accounts directory could not be created.

Any ideas?

Thanks!

Permissions is one thing, the other thing is file ownership. For the permissions to be sufficient, the files need to be owned by the webserver user (usually www-data).

Ownership is changed with the chown command.

It doesn’t look like nearlyfreespeech.net allows that (NearlyFreeSpeech.NET Member Login) nor do I know what it would need to be switched to. (I’ve installed a lot of CMSs in the past and have never needed to use any chown commands—don’t know if there’s something at nearlyfreespeech.net that’s the issue.)

Environment & details:

GET Data empty

POST Data empty

Files empty

Cookies empty

Session empty

Server/Request Data

CONTEXT_PREFIX
DOCUMENT_ROOT /home/public/
GATEWAY_INTERFACE NFGI/1.0
HTTPS on
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
HTTP_ACCEPT_ENCODING gzip, deflate, br
HTTP_ACCEPT_LANGUAGE en-us
HTTP_CONNECTION close
HTTP_HOST josefine.nfshost.com
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3.1 Safari/605.1.15
HTTP_X_FORWARDED_HOST josefine.nfshost.com
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SERVER edge3.phxe.nearlyfreespeech.net
LD_LIBRARY_PATH /usr/lib:/usr/local/lib
NFSN_CANONICAL_NAME josefine.nfshost.com
NFSN_REMOTE_ADDR 47.152.163.37
NFSN_SITE_NAME josefine
NFSN_SITE_ROOT /home/
PATH /bin:/usr/bin
QUERY_STRING
REMOTE_ADDR 47.152.163.37
REMOTE_PORT 49393
REQUEST_METHOD GET
REQUEST_SCHEME http
REQUEST_URI /
SCRIPT_FILENAME /home/public/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 172.17.1.216
SERVER_ADMIN nobody
SERVER_NAME josefine.nfshost.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Apache
TMPDIR /home/tmp/
UNIQUE_ID ZC-A1n9bPJWfwW05c7a_sgAAAGo
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1680834774.9933
REQUEST_TIME 1680834774
argv Array ( )
argc 0

Environment Variables

USER josefine
LOGNAME josefine
NFSN_CANONICAL_NAME josefine.nfshost.com
NFSN_SITE_NAME josefine
LC_ALL en_US.UTF-8
LANG en_US.UTF-8
TMPDIR /home/tmp/
SHELL /bin/sh
NFSN_SITE_ROOT /home/
HOME /home/protected/
PS1 [\h \w]$
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
NFSN_SITE_KEY HaQqua5xEvibaPHw

Registered Handlers

  1. Whoops\Handler\PrettyPageHandler

  2. Whoops\Handler\CallbackHandler

Well, the problem is definitely that Kirby cannot create a new folder accounts inside the /site folder, because the parent folder is not writable. In the same way, if you visit /panel, you get the error message that the media folder cannot be created.

In cases like that, you have two options:

  1. Set the permissions to 777/666, so anybody can do anything. This is, however, not at all recommended.

  2. Ssh into the webspace and change file ownership.

Never used their service, and they only seem to offer support on special paid plans. Everything else is left to you as user.

Thanks! And file ownership should be www-data? (Server is Apache 2.4) When I check ownership with Transmit, both the owner and group are currently listed as josefine. From what I understand, changing file ownership isn’t allowed, though I’ve seen in forums here and at nearlyfreespeech.net that people are running Kirby there—so there has to be a solution out there that someone’s found. Thanks for your help.

Update: Looks like chown isn’t allowed at Nearlyfreespeech.net.

Do you have access to the umask command?

I use Kirby with NFSN hosting, it’s extremely finicky.

I needed to SSH into my account and CHMOD everything to 777. I know it’s not recommended but every other setting does not work.

Also my domain is with Cloudflare, and the Kirby panel breaks completely if I try to access it via my own domain name. It’s fine if I access it via {my_domain}.nfshost.com

Nobody could tell me what’s wrong, but I live with those annoyances because Nearlyfreespeech is cheap as balls for a low traffic personal site.

Thanks for chiming in, Shaw. Appreciate it.