One problem was that the permission for the pg files were set to 750,
i.e. the owner could read (4), write (2), and execute (1), users in the
group (including the webserver) could read and execute (but not write),
and general users had no access. Note that execute permission for a
text file is meaningless. I changed the permissions to 660 so that now
you can edit the files over the web.
As Zig says, your original problem was likely due to the webserver not
having permission to write to the directory in question. You probably
changed these permissions, so I do not know what they were originally.
In general, the templates directory and its subdirectories should have
permissions 770 and files in the templates directory and its
subdirectories should have permissions 660 (but 770 does no harm). If
you want any user on the system to be able to copy your problems,
use 775 and 664. If you want to disable the ability to edit files over
the web (e.g. if you are linking many courses to a central library of
problems), use 750 and 640 (or 755 and 644).
<| Post or View Comments |>