Please read these instructions carefully and proceed step by step.
The
package consists of a set of php-scripts
and some supplementary material. The idea is to install the package as a template
for your course. The installation script sets up all necessary files and directories
in your course folder within your web space Any other courses correspond to
other copies in other folders.
You have downloaded the package electure-vx.xx.tgz into some folder of your choice.
tar xzf electure-vx.xx.tgz
mv electure-vx.xx.tgz electure-vx.xx.tar.gz gunzip electure-vx.xx.tar.gz tar xf electure-vx.xx.tar
This creates a folder entitled electure-vx.xx which contains a README file and a folder entitled SampleCourse.
http://your.webserver.address/~yourid/MyCourse/
then you should type
mv SampleCourse $HOME/public_html/MyCourse chmod -R a+rX $HOME/public_html/MyCourse
(Replace the course name MyCourse by the name you want to use.) This creates the online course directory, e.g. $HOME/public_html/MyCourse and opens it for access by the webserver. Some folders (like the installation folder) may later be "closed to the public".
cd $HOME/public_html/MyCourse/incand edit the file general_vars.inc.php containing general variables (like title, paths etc.) of your course. (Maybe you want to save a copy of the original file.)
This step should be done carefully, take your time and read the commented information in the file. The file should be edited in a normal text editor. You can specify details like
The file contains information on the necessary changes. Absolutely necessary changes are indicated by the comment line "MANDATORY CHANGE:"
You find more information in "FAQs" under menu point "installation".
http://your.webserver.address/~yourid/MyCourse/install/install.html
The internal consistency of the variables of your course and the availability of used executables is checked and the necessary files are created during this setup process. You are informed about possible problems.
Database-installation: In a standard installation you will want to use an SQL data base for the course. For this the SQL-Administrator (often the SysAdmin) has to create the data base and add you as an SQL-user. The necessary script for this will be provided during the installation process and you can forward this to the SQL-Admin. When this is done, you proceed with the installation process in the browser.
During the installation you are asked to execute (from your account on the webserver) two scripts (setup-open.sh and setup-close.sh) in order to allow the webserver to create some files in your course's home (like the userspace/Filedepot or some image files). You will be informed when this is necessary and for this you should have login-access to your filespace on the webserver.
Once the setup has been completed and the database has been installed, the lecturer (course administrator) may find further information (changing the setup, user administration, exercise administration, lecture notes etc.) under the URL
http://your.webserver.address/~yourid/MyCourse/admin/
The access to these pages is restricted to the lecturer. The access id and password was defined in the file inc/general_vars.inc.php as discussed above. You need this password in order to access the admin area. As a first step you should (possibly create a group and) give yourself a user identity for logging in as a standard user. This can be done by choosing the entry "Administrate users" and then "Add a user to the course's database".
Important: There is a hierarchy of userid/passwords
Now you are ready access the course in your web browser with the URL
http://your.webserver.address/~yourid/MyCourse/
Try to login with the userid/passwd combination you have defined for the lecturer ("working as a standard user").
A sample course has been provided to allow a quick and easy check of the main features. You will be instructed to activate the exercises and to create the tables for the search function. You may also use the sample as a starting point for you own content.
In the login menu there is also an application form for new users. Whoever wants to join the list of users may fill up this application form. The information then is mailed to the course administrator's e-mail address as given in the file general_vars_inc.php. That e-mail message contains a shortcut-link, which allows the course administrator the almost-automatic installation of the new user. The users themselves may change their password and e-mail address at any time with help of the course's login menu.
Once the setup process has been completed, it is generally a good idea to remove the general access and read admission for the installation folder MyCourse/install by executing e.g.
cd MyCourse chmod -R og-rX install
(where MyCourse denotes your course home). Remember, however, to open the access again ( chmod -R og+rX install), whenever you want to repeat the setup, rebuild the images or perform the various installation checks from that folder!
In case any prerequisites (like php-support or MySQL) are missing at your webserver installation please consult again the download-page for further information and links and the page FAQs.
Your course's contents files will end up in the folder
http://your.webserver.address/~yourid/MyCourse/contents/
After the initial installation there are already some sample files in this
folder. When adding your own material you may remove most of them. However,
some of these files are addressed by menu items (filenames defined in inc/general_vars.inc.php)
and you may remove them only if you have removed these menu items in the setup.
Some files are mandatory by
-scripts, although
you may change their names defined in inc/general_vars.inc.php.
These are the files
contents/motd.html contents/newlogin.html
You should adapt their content to your needs.
More information can be found in the HowTo-documentation.