ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Permission Prob


  • 2004-02-21 04:16:47

    Permission Prob

    Hi-Can anyone throw some light on this?
    I re-installed ATutor 132 to try and overcome the safe_mode probs I was having. All seemed to go well until I went in and tried to go into File Manager.

    Error message:
    Warning: opendir(../content/5): failed to open dir: Permission denied in /usr/local/psa/home/vhosts/techknowledgey.co.uk/httpdocs/tools/file_manager.php on line 188

    Any ideas?

  • 2004-02-21 09:35:17

    Does the dir exist?

    Do an "ls -l" on the content directory and see who the owner of the directory is, and the file permissions set.

    Is this a fresh install, and what details can you provide about this new system?

  • 2004-02-21 11:56:41

    Does the directory exist?

    Greg
    Using a FTP program I looked at the file ../content/5 and this is what it said:

    drwxr-xr-x 2 apache psacln 512 Feb 21 16:27 5

    Sorry but this doesn't mean anything to me. I'm assuming that the first 4 chars denote the access/permission to the owner-etc, is that correct?

    I am using MySql 3.23.58 and it is a fresh install.
    Everything else seems to be working well. This is the only hickup I've had.
    Hope you can help and thanks again.

  • 2004-02-21 12:40:19

    Make the directory writable

    Looks like you are using Apache2, which might result in some other problems. Apache2 is still a little buggy.

    If you have root access, you can reset the permissions on the content directory with:

    chmod -R a+rwx content/

    (or what ever your ftp client used to recursively change permissions)

    You may be better off reinstalling on a version of Apache 1.3

  • 2004-02-22 04:01:37

    re:Make the directory writable

    I spoke to the tech supp guy and he says that the server is using Apache 1.3.27 but the roblem he found was that Apache had created the folder for itself (which apparently its not suppose to) .

    Anyway the folder owner was re-labeled to me and it still will not allow me to cretae it with an error message saying "permission denied".

    Any ideas?

  • 2004-02-22 08:07:33

    FTP Permission?

    Are you able to login to the command prompt on your server and run the "chmod" command? I suspect the problem is related to setting permission from your ftp client. If you run chmod as I mentioned in my previous message, everything under the content directory should be writable, and this should remove the permission error.

    The chmod command essentially gives anyone permission to view and write to files under the content/ directory. The permissions line should look something like this

    drwxrwxrwx 2 apache psacln 512 Feb 21 16:27 content


    Note the two extra "w"s

  • 2004-02-22 09:39:33

    FTP permissions

    Greg
    I think I have tried to do as you asked in the last email. Below is a copy of the display.

    drwxrwxrwx 5 besdale psacln 512 Feb 22 14:33 content

    The error message now reads:
    Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 10117 is not allowed to access ../content/5 owned by uid 2525 in /usr/local/psa/home/vhosts/techknowledgey.co.uk/httpdocs/tools/file_manager.php on line 188

    Warning: opendir(../content/5): failed to open dir: Undefined error: 0 in /usr/local/psa/home/vhosts/techknowledgey.co.uk/httpdocs/tools/file_manager.php on line 188

    At least it the file '5' has been created. Does this help to throw any light on the problem?

  • 2004-02-22 10:59:48

    Safemode

    You can't run ATutor with PHP in safemode.

  • 2004-02-22 14:43:37

    safemode

    Greg
    If that's the case, and I am not qualified to disagree with you, but why didn't I experience the same problem with the 1.3.1 version I used before, as it was on the same server?

  • 2004-02-23 10:49:57

    safemode

    Apache 2 is not buggy, just the PHP "support" for Apache 2 is "experimental", which is why we can't recommend using it.

    As for your problem:
    ATutor can run in safe_mode, but it has to be set up correctly and slightly differently.

    The problem is that your PHP script is run as you, while the directories Apache creates are created as "apache", hence your error message.
    You should change the owner of that directory to be the same owner as the script. (delete the course, then recreate it, and manually create the directory).

    Directories are numbered according to the course ID. You could create a series of content directories from 1 up to the max number of courses you plan on using. creating those directories in advance will solve the problem for now.

    .joel