-
-
Notifications
You must be signed in to change notification settings - Fork 41
LSP Installation
tresf edited this page Dec 13, 2014
·
4 revisions
- Obtain a tarball of the SQL database
- Clone the LSP source code
- Extract the LSP source code to the future location, i.e.
DOCUMENT_ROOT/public/lsp/
- Create an LSP database
mysql
# or
mysql -u root -p
# ^--- (Depends on OS)
create database somedatabase;
exit;
- Extract the SQL dump to a temporary location.
- Import the SQL dump
mysql [-u root -p] somedatabase < lsp_dump.sql
- Create a mysql user for LSP
create user 'someuser'@'localhost' identified by 'P@SSW0RD';
- Grant
someuser
permissions onsomedatabase
grant all privileges on somedatabase.* to 'someuser'@'localhost'
- Edit
lsp/dbo.php
$DB_TYPE = 'mysql';
$DB_HOST = "localhost";
$DB_USER = "someuser";
$DB_PASS = "P@SSW0RD";
$DB_DATABASE = "somedatabase";
$PAGE_SIZE = 10;
$TMP_DIR = '../../../'; // "tmp" is added automatically
$DATA_DIR = '../../../';
$LSP_URL = 'http://lmms.io/lsp/index.php';