Installing ADAM
From ADAM - Academic Data Management for Schools
There are a few steps that are required to install ADAM. The first is the establishment of an AMP stack webserver, the second is ensuring that the configuration of the webserver is correct and the last is getting a cron script running.
Installing the AMP stack
This installation guide is written for XAMPP 1.7.2. There are known issues with PHP 5.3.1 which is included with XAMPP 1.7.3. The most recently released version of XAMPP 1.7.4 has not yet been tested with ADAM.
- Download and run the xampp-win32-1.7.2.exe file.
- Choose the default options in the install. For the installation folder, choose a large non-system volume if possible.
- Once installed browse to the x:\xampp\ folder and then make the following configuration file changes:
- PHP: Look in the php subfolder and open the php.ini file.
- Change memory_limit to 512M
- Change error_reporting to E_ALL
- Change display_errors to Off
- Change log_errors to On
- Change error_log to the default provided "C:\xampp\apache\logs\php_error.log", ensuring to substitute a new drive letter if needed. Normally this step simply involves uncommenting the line.
- Enable the dynamic extension php_ldap.dll
- Change the date.timezone to "Africa/Johannesburg"
- Apache: Look in the apache\conf\extra subfolder and open the vhosts.conf file.
- Add in any necessary information for any virtual hosts to be served by this machine.
- MySQL: Look in the mysql\bin folder and open the my.ini file.
- Change default-time-zone to "Africa/Johannesburg"
- phpMyAdmin: Look in the phpMyAdmin folder and open the config.inc.php file.
- Change auth_type to 'cookie'
- PHP: Look in the php subfolder and open the php.ini file.
- In order for the automated backup to work, the \xampp\mysql\bin folder needs to be added to the server's PATH environment variable.
- Load the XAMPP control panel, if it is not already running.
- Install Apache and MySQL as system services by ticking the Svc box next to each.
- Start both services.
- Load a web browser and visit http://localhost/ to check that the installtion was successful.
- Visit http://localhost/phpmyadmin
- Log in as root with a blank password.
- Click on Privileges
- Click on the edit icon next to the root entry in the table of users.
- Scroll down and click to the Change Password section and enter a secure password.
- On futher navigation, you will be logged out of phpMyAdmin. Log back in with the new password.
- From the home screen, enter a new database name in the Create Database textbox. The normal convention is adam_school.
- Once created, click on the Privileges tab running along the top of the page.
- Click on the Add a new user link.
- Name the user adam
- It should have the host localhost
- Use an automatically generated password. Keep this somewhere safe because it will be added to the configuration file later.
- Ensure that "Grant all privileges on database ..." is selected.
- Click on Go
Installing ADAM
Copy the ADAM distribution files into the appropriate htdocs sub-folder.
Visit the site and specifically the install.php page. This will run though the steps of creating the class_config.php file.
On first visiting the site, a list of database upgrades will also be processed to get from the "install" version of the database to the latest version.
- Install MoodleCron and configure it to call the cron.php file from within your site. It can be called every 5-10 minutes; OR
- MoodleCron has been demonstrated to have issued with servers and can crash. It is also possible to run the cron.php script using Windows Scheduler and the command line. Ensure that the Working Directory is set to the folder in which the cron.php script exists. The command to run the script is then "C:\xampp\php\php.exe cron.php". Ensure that you give a full path to the PHP executable.
