2005-06-03 19:51:18
Using ATutor 15 with safemode on
Because ATutor needs to be able to write and edit files on a server, php safemode turned on breaks file writing type functions in ATutor. There is file writing going on during the installation as well, so installing ATutor normally fails if safemode is on.
Here are the steps I took to get ATutor installed on a linux system with safemode turned on.
1. Make files that need to be edited by the installer writable (e.g chmod a+rwx filename). You can do this as you go through the install process as error messages appear that state which directories can not be created etc.
2. To disable the safemode check in the installer remove or comment out lines 94-104 in install/index.php
3. Manually create the following directories in the content/ directory of your ATutor installation.
mkdir content/import/
mkdir content/chat/
mkdir content/backups/
4. Make those directories writable (e.g chmod a+rwx import/
chmod a+rwx content/import/
chmod a+rwx content/chat/
chmod a+rwx content/backups/
5. Disable create directories during in Step 4 (delete or comment out lines 31 to 54 in install/include/step5.php [yes it is step5.php]).
That should take care of the installation. There will still be several features that will not function. Most can be hidden by disabling them using Manage>Student Tools (uncheck the checkboxes, or don't use the tools that don't work).
Here's a list of things that won't work after the installation if safe_mode is turned on, as a student or instructor (I'll try to give the admin section a test with safe_mode on in the next few days, unless someone else might like to take on the job and post the results here).
---
Caching won't function (leave it turned off)
File Manager won't work.
Backups
Chat
Import/Export Content Packages
SCORM Packages
---