I installed a new wiki on my local machine. When I click on edit, I get the following error:
Error: cannot write to /home/user/myiki2/.ikiwiki/lockfile: Permission denied
I checked the permissions of that file and assured that they are the same as in my other working ikiwiki, but it doesn't help. Any idea?
What exactly are the permissions for the lockfile and the directory it is in?
What user is the ikiwiki running as?
stat -c '%A %a %U %G %n' myiki2 myiki1
drwxr-xr-x 755 user user myiki2
drwxr-xr-x 755 user user myiki1
stat -c '%A %a %U %G %n' myiki2/.ikiwiki myiki1/.ikiwiki
drwxr-xr-x 755 user user myiki2/.ikiwiki
drwxr-xr-x 755 user user myiki1/.ikiwiki
stat -c '%A %a %U %G %n' myiki2/.ikiwiki/lockfile myiki1/.ikiwiki/lockfile
-rw-r--r-- 644 user user myiki2/.ikiwiki/lockfile
-rw-r--r-- 644 user user myiki1/.ikiwiki/lockfile
As you see, myiki2 has the same permissions as myiki1, but myiki1 works.
I faced similar issue when i restored my blogs into new wiki. In my case it is due to permission of ikiwiki.cgi file (/var/www//ikiwiki.cgi). It should be 6775 rather than 775.
Hope this helps.