ATutor

Learning Management Tools







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


Unable to create import directory


  • 2005-11-27 23:57:18

    Unable to create import directory

    I have deployed our ATutor 1.5 onto a remote host (using LAMP). It is installed OK but unfortunately I am unable to import content. I have set the content folder (ATutor/content) permissions to "777" recursively and also the include/config.inc.php file but I still get the error. I am trying to import the How To 1.4.3 backup course zip file. When I try, a pop up window chugs away for a while repeatedly indicating sending data and "done" but eventually the import page shows the error above in red.

    Thanks for further insight.

  • 2005-11-28 17:23:01

    reinstall

    Reinstall ATutor and use chmod a+rwx content/, instead of using 777.

  • 2005-11-29 02:38:53

    reinstall

    Thanks Greg,
    I didn't install - I just FTP'd the local installation and set up a MySQL database with the same name, and then restored a backup of the local database. Are you saying it would be best to scrub the entire remote installation?

    I'll try the hosting support with the chmod suggestion.

  • 2005-11-29 09:48:56

    reinstall

    I suppose you could copy your local installation to your hosted site, though installing there from scratch would be recommended,

    Recursive chmod -R 777 is possible, but less secure than chmod a+rwx.

  • 2005-12-10 01:09:54

    Still trying

    Hello,

    I still haven\'t solved this. I am yet to try and reinstall. The application reports the same error \"unable to create directory\". However, I have investigated further. I am now using FileZilla and I notice that I can change the folder permission in /ATutor/ for other folders such as /ATutor/Chat and I see the string change accordingly in the permissions column. If I go away and come back, the changes have \"stuck\". However, this is not the case with the /ATutor/content folder. If I right click on the folder and use \"file attributes\", it is set to 760. If I change it to 777 the permissions string doesn\'t change and the changes don\'t stick. It only seems to be that folder.

    Also, when trying the applications chat utility, I get the error:

    Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid/gid is 944/944 is not allowed to access /var/www/html owned by uid/gid 0/0 in /var/www/schoolnetnetsb/public_html/ATutor/chat/index.php on line 46
    No transcripts found.

    The mkdir() reference is obviously about permissions to create folders.

    Do you have any more insights?

    David

  • 2005-12-10 09:32:36

    Safemode off

    ATutor requires that safemode be turned off. I'm guessing this is the source of your problem.

    Also, do not use 777. Instead use a+rwx on the content directroy to set its permissions during the installation.

    [reply][b]In reply to:[/b]
    Hello,

    I still haven\'t solved this. I am yet to try and reinstall. The application reports the same error \"unable to create directory\". However, I have investigated further. I am now using...
    [op]forums/view.php?fid=7;pid=6446;page=1#6532[/op][/reply]

  • 2005-12-11 21:25:28

    safe mode

    Greg,
    The hosting support say they don't allow Safe Mode off. The error below indicates that the application is trying to write to the /var/www/html area instead of the correct public content area
    /var/www/html/schoolnetnetsb/public_html/ATutor/content

    Line 46 in .../chat/index.php refers to AT_CONTENT_DIR and in the config.inc.php file this is defiantely set to

    define('AT_CONTENT_DIR', '/var/www/html/schoolnetnetsb/public_html/ATutor/content/');

    When accessing chat, however, it still comes up with error

    Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid/gid is 48/944 is not allowed to access /var/www/html owned by uid/gid 0/0 in /var/www/schoolnetnetsb/public_html/ATutor/chat/index.php on line 46
    No transcripts found.

    I havge also tried setting
    define('AT_FORCE_GET_FILE', TRUE);

    but no difference.

    The site is at www.schoolnet.net.sb/ATutor if you are able to try (user instructor pwd instructor) By all means try importing a small scorm to see the error that comes up.

    thanks for any help
    David

  • 2005-12-12 17:27:51

    error found

    I have figured out the error - it was the AT_CONTENT_DIR setting in the config file. It is now correctly referencing the content directory. However, the application is still not able to create directories. I don't seem to be able to change the permissions and am communicating with the hosting support people.
    David

  • 2005-12-13 08:13:48

    safe mode restrictions

    Since safemode is enabled, there are a variety of functions that will not work in ATutor, including creating directories. Have a look at this list of php functions affected when safe mode is turned on.

    http://ca.php.net/manual/en/features.safe-mode.functions.php

    If you plan on using ATutor in a production environment, you will have to move to a system where safemode is turned off.

  • 2005-12-13 15:25:35

    Safe mode

    Thanks,

    However I now seem to have it working. It does create directories, import and the Chat system is working. Can you indicate some functions that should definately not work with safe mode on, so that I can test them?

    David

  • 2005-12-13 21:48:47

    Safe mode - comments from hosting support

    The hosting support commented as below:

    Most of the problems of safe mode and the errors that may be thrown by parts of the program can be fixed by appropriately setting directory permissions or changing the safe_mode_include_dir and open_basedir appropriately. Try to get a more definitive statement from the authors of the program as to which functions of their program requires safe mode off "in a production environment"

    Can you tell me which functions need to be enabled as they are offering to find workarounds.

    As in my previous comment, it seems to be working but I need to be sure it is 100%

    David

  • 2005-12-14 13:38:51

    safemode or no safemode

    I can't quite make out what's going on on your server. You actually should not have been able to install ATutor if safemode is turned on. Though the error message suggested it is turned on. If everything is working, then safemode would seem to be turned off. :-/

    Things that should not work are the file manager, theme importing, language importing, chat transcripts, and other features that need to write to the server.

    Attach a phpinfo() page here (again I think) from the server ATutor is running on.

  • 2005-12-14 15:13:22

    phpinfo

    Greg,

    www.schoolnet.net.sb/phpinfo1986752342.php

    The hosting company have made specific adjustments to the permissions but I think not all. File Manager, importing SCOs seem OK. Haven't tried themes or language importing. Chat is intermittently working - I have it working on the successfully imported "How To..1.4.3" course, with transcripts. However on the other example courses we have imported, all I get is a blank page when I try to enter chat or start a transcript. Which folders need permissions setting for the chat?

    thanks for the assistance,
    David

  • 2009-06-23 07:20:08

    Re: phpinfo

    Things to describe:
    Operating system ATutor is installed on -Apache
    ATutor version - 1.5.2
    Patch #s applied -
    Web browser being used - firefox
    ...and anything else relevant -

    Hi am getting the following error and unable to use the file manager:
    Unable to open content directory. You may try to create it now.

    I have set the permission to read write execute as specified.

    The other important thing is that I have moved this site from one host to another. It took me a while to get the full path of the content directory correct on the new server but this is working now. Any ideas on the file manager?

    Also chat gives this error:
    Warning: mkdir(): No such file or directory in /hsphere/local/home/pettyftp/caisstraining.com/tools/chat/index.php on line 56

    No transcripts found.

    Site is www.caisstraining.com

    regards

    Andrew

  • 2009-06-23 08:39:06

    Re: phpinfo

    This generally means there is a permissions problem.

    Make sure the content directory is in the same place it was when on the old server.

    You may need the system administrator to set the permissions on the content directory, and sub directories. they should be owned by the web server owner usually call "nobody" if you are using an Apache server. The directory need to be writable by this user. See the installation instructions for details about making directories writable.