I recently made a site with Kirby and I’ve been trying to deploy it on NearlyFreeSpeech with Cyberduck, but I’m not actually sure how?
I’ve already uploaded all the files through SFTP, and the index page works fine BUT when I try to click a link from the index to another page, there’s a 404 error. From what I can tell, this is because of how content pages are kept in their own Content folder in Kirby, so I’m not sure what I’m supposed to do now.
If anyone else have experience using nearlyfreespeech, how did you do it? This is the first time I’ve tried to deploy anything, let alone a CMS, so this is all new to me
On second thought, can you also go over how to enable rewriting for the panel for the panel installation? Specifically
content folder and all contained files and folders
In the NFS FAQ, it says:
In order for a PHP or CGI script, or a daemon processes run as the “web” user, to write to a file, the “web” user must have write access to that file. There are two ways to accomplish this.
Set the file to be owned by the web group and set the permissions to allow group-writes. (E.g. chgrp web example.file and either chmod g+w example.file or chmod 664 example.file from the command line.)
Set the file to allow any writes. (E.g. either chmod a+w example.file or chmod 666 example.file from the command line.)
In order for a script or web process to create a file, it’s the permissions of the directory in which the file is to be created that matter. To allow this, do either of the following:
Set the parent directory to be owned by the web group and allow group writes. (E.g. to create /parent/dir/example.file, first chgrp web /parent/dir and then either chmod g+w /parent/dir or chmod 775 /parent/dir from the command line.)
Set the parent directory to allow any writes. (E.g. to create /parent/dir/example.file, do either chmod a+w /parent/dir or chmod 777 /parent/dir from the command line.)
I’ve installed Cyberduck’s command line interface, but am at a loss as to how to connect it and actually use it.
Check the user:group of the public folder too, since this effects anything inside it. No amount of changing permissions and ownership of the contents of that folder will help because with Linux you need owner and rights to the full path.