Disable safe mode for a site

Discussion in 'Installation/Configuration' started by jlazkano, Feb 3, 2014.

  1. jlazkano

    jlazkano New Member

    Hello, I have a ISP Config in a Debian server.

    I want to install Moodle on it but I need to disable the PHP "safe mode" on this site.

    How could I do that?

    Thanks and best regards.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Safemode is always off in ispconfig 3.
     
  3. jlazkano

    jlazkano New Member

    Thanks till,

    This is the problem I have when try to install Moodle:

    [​IMG]

    This the file premissions:

    Code:
    # ls -lha /var/www/clients/client5/web10/
    total 36K
    drwxr-xr-x  9 root  root    4.0K Feb  1 23:15 .
    drwxr-xr-x  4 root  root    4.0K Feb  1 23:15 ..
    drwxr-xr-x  2 web10 client5 4.0K Feb  1 23:15 cgi-bin
    drwxr-xr-x  2 root  root    4.0K Feb  4 11:51 log
    drwx--x---  2 web10 client5 4.0K Feb  1 23:15 private
    drwxr-xr-x  2 root  root    4.0K Feb  1 23:15 ssl
    drwxrwxrwx  2 web10 client5 4.0K Feb  1 23:15 tmp
    drwx--x--- 45 web10 client5 4.0K Feb  1 23:32 web
    drwx--x---  2 web10 client5 4.0K Feb  1 23:15 webdav
    
    I try to configure the "moodledata" in /var/moodledata/, but same problem.

    I read the documentation: http://docs.moodle.org/20/en/Creating_Moodle_site_data_directory

    I appreciate your help.

    Kind regards.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, thats not safemode. The problem is that you used a wrong directory for moodledata and that this path has not been added to the open_basedir of the site.

    use this path:

    /var/www/clients/client5/web10/private/moodledata

    and add:

    :/var/www/clients/client5/web10/private/moodledata

    at the end of the open basedir field of the website (options tab). It takes about 1 minute until changes are written to disk.
     
  5. jlazkano

    jlazkano New Member

    Thanks!!!

    It works!

    Best regards.
     

Share This Page