2.3. LMS Installation

LMS in tarball (.tar.gz) archive can be downloaded from project home page (lms.rulez.pl), which should be extracted and placed in chosen directory (i.e. /var/www/lms) and made available for Web Server (ie. with Alias /lms/ /var/www/lms):

$ cd /var/www
$ wget http://lms.rulez.pl/download/stable/lms-x.x.x.tar.gz
$ tar zxf lms-x.x.x.tar.gz

Two kind of LMS packets are available - the one with Smarty library included (lms-x.x.x+libs.tar.gz) and without this library. If you have installed version without library you have to get Smarty yourself (eg. using PEAR) and place it in lib subdirectory.

$ cd /var/www/lms/lib
$ wget http://smarty.php.net/distributions/Smarty-2.6.0.tar.gz
$ tar zxf Smarty-2.6.0.tar.gz
$ mv Smarty-2.6.0/libs Smarty

Note

Location of all directories can be set in [directories] section in lms.ini configuration file.

Configuration files (sample/lms.ini and sample/lms-mgc.ini) should be placed in /etc/lms directory.

Scripts from bin directory should be moved to /usr/sbin directory, so you can execute it directly without giving path.

Warning

Web Server must have read permission on lms.ini file and write permission on backup directory. Please consider security implications: you might want to protect backup directory with .htaccess and place your lms.ini outside Web Server's DocumentRoot (LMS allows you to place it in its home directory, but then it's possible to read it with http://yourserver/lms.ini, and it contains valuable information such as database password!).