2.3. LMS Installation

LMS in tarball (.tar.gz) archive can be downloaded from project home page (www.lms.org.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://www.lms.org.pl/download/stable/lms-x.x.x.tar.gz
$ tar zxf lms-x.x.x.tar.gz

Smarty library is included in LMS package but if you are using CVS you have to install Smarty yourself. After download copy contents of Smarty's lib directory into /lib/Smarty or use /devel/smarty_install.sh script which will do this for you.

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!).

Warning

It's absolutely required for LMS to disable register_globals PHP's option.

Recommended setting in php.ini (or httpd.conf for LMS virtual host directory):

mbstring.func_overload = 7
register_globals = off
max_execution_time = 60 ; or more
memory_limit = 32M ; or more