ATutor

Learning Management Tools







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


PHP safe mode


  • 2004-02-20 12:55:48

    PHP safe mode

    I downloaded the latest version of ATutor and the installation went
    > really sweetly. I tried to import a SCORM package and this message
    > appeared. I'm guessing it is because the safe mode of the PHP is on
    > and if that's the case, how do I resolve the problem?
    > ____________________________________
    >
    > *Warning*: opendir(): SAFE MODE Restriction in effect. The script
    > whose uid is 10117 is not allowed to access ../content/3 owned by uid
    > 2525 in
    > */usr/local/psa/home/vhosts/techknowledgey.co.uk/httpdocs/ATutor/tools/file_manager.php*
    > on line *188*
    > __________________________________
    >
    > PS - This version of ATutor looks better and has more flexibility in
    > the older version - well done.
    > Thanks for any help.

  • 2004-02-20 13:15:43

    Can not run in safemode

    PHP Safe mode will prevent php scripts from running a variety server commands, and is generally turned on for security reasons. ATutor runs many server commands, so it will not run if safemode is turned on.

    Review the php documentation on safemode:
    http://www.php.net/manual/en/features.safe-mode.php#ini.sect.safe-mode

    In php.ini set safe_mode to off

    safe_mode Off

  • 2004-02-20 13:59:31

    Cannot run in safe mode

    Greg
    Brilliant.
    Thanks again for all your help.

  • 2004-02-20 16:31:09

    Cannot run in safe mode

    Greg,
    I contacted the guy who runs the servers and he says that safe_mode cannot be turned off as it is a security risk and I don't have access to PHP.ini. Is there another way around this problem?

    Thanks in anticipation.
    Bill

  • 2004-02-20 17:29:24

    try .htaccess

    Paranoia... :-(

    I'm not sure, but you may be able to create an ".htaccess" file with the following line in it

    php_flag safe_mode off

    Place it in the root directory of ATutor.

    If that doesn't work, I'll see what Joel has to say, Monday.

    [reply][b]In reply to:[/b]
    Greg,
    I contacted the guy who runs the servers and he says that safe_mode cannot be turned off as it is a security risk and I don't have access to PHP.ini. Is there another way around this problem?...
    [op]forums/view.php?fid=7;pid=1141;page=1#1145[/op][/reply]

  • 2004-02-23 10:40:32

    safe mode

    ATutor runs fine in safe_mode if set up correctly.

    safe_mode can only be changed in the php.ini file.

    See my post in: http://atutor.ca/view/7/1153/1.html