-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
69 lines (38 loc) · 1.62 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Prerequisites
-------------
- Apache 2 with mod-php
- MySQL server
Tools used for instalation
--------------------------
- wget
- unzip
- nano
- lessc (http://lesscss.org/)
Installation instructions for Moon Gallery
------------------------------------------
* Download sources from Git repository.
& wget -O MoonGallery.zip https://github.com/MoonGames/MoonGallery/archive/master.zip
* Extract downloaded archive.
& unzip MoonGallery.zip
* Switch to source directory.
& cd MoonGallery-master/src
* Compile LESS files into CSS.
& mkdir css
& lessc less/main.less > css/main.css
* Prepare directory for file uploads.
& mkdir files
& chmod 777 files
* Creates user and database in MySQL. Use proper user name and password
instead of "user_name", "your_password" and "new_database_user_password".
& mysql --user=user_name --password=your_password
mysql> CREATE DATABASE IF NOT EXISTS moongallery2;
mysql> GRANT USAGE ON *.* TO 'moongallery2'@'localhost' IDENTIFIED BY 'new_database_user_password';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER ON `moongallery`.* TO 'moongallery'@'localhost';
mysql> EXIT
& mysql --user=user_name --password=your_password moongallery < ../database/create.sql
* Set configuration.
nano config.php
* Copy sources to target directory (which will be accessed by web server). Be
aware that your intended path can be different than example path.
/var/www/moongallery is used as target path for purpose of example.
& cp -r ../src /var/www/moongallery