forked from cdzombak/Stuck
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
55 lines (44 loc) · 2.22 KB
/
INSTALL
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
INSTALL
For upgrade instructions, see the UPGRADE file provided with this distribution.
Installing Stuck right now isn't exactly trivial, but it's manageable if you have a little experience in this sort of thing.
(0) Check system requirements:
(0.1) PHP 5+
(0.2) MySQL or PostgreSQL
(0.3) Apache
(1) Download the latest version from http://github.com/cdzombak/stuck
(2) Create a database and user for Stuck
(2.1) For MySQL using phpMyAdmin, the MySQL Administration CLI, or another MySQL interface.
(2.2) For PostgreSQL using phpPgAdmin, the PostgreSQL cli tools or another PostgreSQL interface (pgAdminIII)
(2.2.1) Using CLI :
# Create a specific user for db
createuser stuck
# Create the stuck db owned by stuck user
createdb -O stuck stuck
# Verify your pg_hba.conf file for Stuck database to be accessed by stuck user from
# stuck web server ip address.
(3) Import the database structure. You can use this command:
(3.1) For MySQL
mysql -u username -p databasename < mysql.sql
or you can copy/paste the mysql.sql file into phpMyAdmin or your MySQL GUI of choice.
(3.2) For PostgreSQL
psql -U stuck stuck < pgsql.sql
(4) Configure Stikked
(4.1) Edit /system/application/config/config.php.dist
Update the base_url value.
Save it, **removing the .dist from the filename**.
(4.2) Edit /system/application/config/database.php.dist
Fill in the relevant information for your database.
Save it, **removing the .dist from the filename**.
(5) Configure additional options in /system/application/config/stikked.php.dist
This includes the name of your site, which is displayed at the top of each page.
Save it, **removing the .dist from the filename**.
(6) Configure the cron for auto-expiration (*nix only):
(6.1) Set the key for cron in /system/application/config/stikked.php.
(6.2) Open a shell and run crontab -e and enter:
00, 30 * * * * curl --silent --compressed http://example.com/cron/key > /dev/null 2>&1
(6.3) Save.
(7) Modify .htaccess.dist
(7.1) Change the base_url to the same url you put in config.php.
(7.2) Save it, **removing the .dist from the filename**.
(8) You should be up and running now!
Post any bugs to http://github.com/cdzombak/stuck