The new Open eClass version 2.1 retains backward compatibility (with previous versions). For that reason, you can upgrade an already installed platform from prior versions (1.7, 2.0) to the current 2.1 easily and quickly, following the upgrade instructions provided below. Keeping a safety record of the course contents and the database before beginning to upgrade is recommended.
WARNING!
All operations presuppose you have the administrator's rights (root) on your computer.
The following example presumes that the eClass platform is already installed on directory /var/www/html.
Due to some changes included by the new (2.1) Open eClass version you will have to delete the old and install the new one. To make sure that you old configuration remain intact you must do the following actions:
We consider that you have downloaded openeclass-2.1.tar.gz on the /tmp
directory.
cd /var/www/html
mv /var/www/html/eclass/config/config.php /tmp
mv /var/www/html/eclass/modules/chat/*.txt /tmp
cd /var/www/html/eclass/ rm -rf images/ include/ info/ install/ manuals/ template/ modules/
tar xzvf /tmp/openeclass-2.1.tar.gzThen copy from the temporary directory /tmp/openeclass21 all of its contents in the installation directory e.g.
cp -a /tmp/openeclass21/* /var/www/html/eclass/So with the above steps you have replaced directory eclass, with the new one.
mv /tmp/config.php /var/www/html/eclass/config/
mv /tmp/*.txt /var/www/html/eclass/modules/chat/
cd /opt/eclass
chown -R www-data *
find ./ -type f -exec chmod 664 {} \;
find ./ -type d -exec chmod 775 {} \;
Having completed the previous steps, you will have installed the new eClass version (eClass 2.1) files successfully. Then, move on to the second step in order to upgrade the platform databases.
The following example presupposes that eClass has already been installed to directory C:\Program Files\Apache\htdocs\ and that you have downloaded openeclass-2.1.zip.
Due to several changes included by the new (2.1) Open eClass version you will have to delete the old and install the new one. To make sure that you old configuration remain intact you must do the following actions:
C:\Program
Files\Apache\htdocsC:\Program Files\Apache\htdocs\eclass\include\config.php)
in another temporary folder in your desktop (e.g. from C:\Program
Files\Apache\htdocs\eclass\include\ to folder C:\Documents
and Settings\Administrator\Desktop\C:\Program Files\Apache\htdocs\eclass\modules\chat\ with the form course_code.chat.txt
C:\Program Files\Apache\htdocs\eclass\) and delete all the folders except courses and config.C:\Documents and Settings\Administrator\Desktop\eclass17.
After that rename the temporary folder eclass21 to eclass and copy it along with its contents (files and documents). Then, open the file that includes eClass installation, e.g.
C:\Program
Files\Apache\htdocs\
and paste it. In that way, the eclass files is replaced by the new ones.
C:\Program Files\Apache\htdocs\eclass\modules\chat\As soon as the above have been completed, you will have installed the new eClass version files (eClass 2.1) successfully. Then, follow the second step so as to upgrade the platform database.
Before running the database upgrade script, make sure that MySQL is not operating in strict mode. In order to establish that, check if the parameter
--sql-mode(in file my.cnf Þ my.ini for UNIX / Windows correspondingly) has been set. If it is set (e.g.
--sql-mode=STRICT_TRANS_TABLES
or --sql-mode=STRICT_ALL_TABLES) then you need to modify it to null (--sql-mode="").
For Unix/Linux systems only: The process of platform database upgrade includes changes on the config.php. As a result, you will temporarily need to change your access rights on the config.php file and the /config directory into read-write (chmod 664).
Then keystroke the following URL on your browser:
http://(url of eclass)/upgrade/
You will be prompted for the username and password of the platform administrator. After providing your personal details, you will be asked to change/correct contact details, as well as students' registration mode on the platform (free or applied registration). The database upgrade will begin afterwards. You will see several messages concerning your working progress. Probably you will not see any false messages. Note that depending on the number and content of courses, it is possible that the process will last for a long time.
In the opposite case (namely if error messages occur), then it is possible for a course not to be operating properly. Such error messages may occur if you have altered the structure of an eclass database table. Note (if possible) the accurate error message you saw.
If you face any problems with any course after the upgrade, contact us (eclass@gunet.gr). (admin@openeclass.org).
In order to make sure that the platform has been upgraded, login as administrator and click on the "Open eClass Version". Version 2.1 has to be indicated. You can alternatively click on the "Platform Information" link on the homepage. Among all, version 2.1 of the platform will be indicated.
You are ready! The upgrade process has been completed successfully.
If you want to see the new features of the new version, go to CHANGES.txt text file. Read forward for further additional regulations (HTTPS, Latex etc).
$urlSecure = "https://eclass.gunet.gr"
For upgrading from older versions 1.5, 1.6 you have to do some changes manually. Starting from the course directories is now stored in a new directory named courses. Also the configurations file location (config.php) has changed, and is now included in a new directory named config. So, in order not to lose your previous configuration and all your eCourses files, please follow the instructions below.
cd /var/www/html
mv /var/www/html/eclass/claroline/include/config.php /tmp
mv /var/www/html/eclass/claroline/chat/*.txt /tmp
cd /var/www/html/eclass/ rm -rf claroline/
tar xzvf /tmp/eclass-1.7.3.tar.gzThen from the directory /tmp/eclass17 copy all of its contents to the installation directory e.g..
cp -a /tmp/eclass17/* /var/www/html/eclass/That way, the eclass directory is substituted by the new version.
cd /var/www/html/eclass mkdir config mkdir courses
mv /tmp/config.php /var/www/html/eclass/config/
cd /var/www/html/eclass mv TMA* ./courses/
mv /tmp/*.txt /var/www/html/eclass/modules/chat/
cd /opt/eclass
chown -R www-data *
find ./ -type f -exec chmod 664 {} \;
find ./ -type d -exec chmod 775 {} \;
C:\Program
Files\Apache\htdocsC:\Program Files\Apache\htdocs\eclass\claroline\include\config.php
to another temporary folder in your desktop e.g. from C:\Program
Files\Apache\htdocs\eclass\claroline\include\ to folder C:\Documents
and Settings\Administrator\Desktop\C:\Program Files\Apache\htdocs\eclass\claroline\chat\ with the form course_code.chat.txtC:\Program
Files\Apache\htdocs\eclass\ and delete folder claroline
with all of its subdirectories.C:\Documents and Settings\Administrator\Desktop\eclass17.
Then rename temporary folder eclass17 to eclass and copy with all of its subfolders.
Then go to folder of eclass, e.g. C:\Program
Files\Apache\htdocs\ and paste them. With that way eclass folder is replaced with the new version.C:\Program Files\Apache\htdocs\eclass\config\C:\Program Files\Apache\htdocs\eclass\courses\
C:\Program Files\Apache\htdocs\eclass\claroline\chat\