root/releases/0.1.1b/INSTALL

Revision 5, 4.5 kB (checked in by sven, 3 years ago)

snapshot of elgg 0.1.1b

Line 
1 Elgg version 0.1 alpha installation instructions
2
3 Ben Werdmuller <ben@elgg.net>
4 28th March, 2005
5
6
7 1. BEFORE YOU BEGIN
8
9 1.1 Requirements
10
11 Elgg currently requires the Apache web server with mod_rewrite
12 installed and the ability to send emails, plus PHP 4.3+ and MySQL
13 3.23+.  It has currently been tested on Apache installations running
14 Red Hat Linux and Microsoft Windows XP.
15
16 Elgg must be installed on the root of a domain - for example,
17 at http://elgg.net/, as opposed to http://elgg.net/subdirectory/.
18
19 You must have a database on the MySQL server ready for use by Elgg.
20
21 IF YOU ARE UPGRADING, for this release you must drop any existing
22 database tables and insert the new database schema.
23
24 1.2 Recommendations
25
26 For this release, it is recommended that MySQL has cacheing enabled.
27 Please see the MySQL documentation for instructions, or ask your
28 system administrator.
29
30 1.3 Time estimate
31
32 Assuming you have satisfied the requirements in 1.1, the installation
33 should not take longer than 20 minutes. This may vary depending on
34 the connection speed to your web server.
35
36
37 2. INSTALLING FILES
38
39 2.1 Deploy Elgg framework
40
41 Move all files aside from README, LICENSE, INSTALL and the
42 "distribution" directory from the distribution package to your web
43 server directory.  Files in the root of the distribution must be in
44 the root of your web server account.
45
46 2.1 Set permissions on special directories
47
48 Some directories need to be written to during Elgg's normal operation
49 - specifically the directory for uploaded files, and the directory
50 for uploaded icons.
51
52 From your root directory, navigate to /_icons.  On Linux / Unix, you
53 must change the access privileges for /_icons/data to 777 or
54 equivalent.  To do this you may be able to right click on the folder
55 and set the "CHMOD" value, or you may have to use your command line
56 terminal, navigate to the _icons folder, and type:
57
58         chmod 777 data
59
60 Repeat this process for /_files/data.
61
62
63 3. SETTING UP THE DATABASE
64
65 3.1 Open database schema
66
67 There is a database schema supplied in the /distribution/database
68 folder.  You must install this into the database you have set aside
69 for elgg.
70
71 If you are running phpMyAdmin, a third-party tool for easily
72 maintaining MySQL databases, go to 3.2; otherwise go to 3.3.
73
74 3.2 Setting up the database with phpMyAdmin
75
76 In phpMyAdmin, click on the database you wish to use for Elgg on the
77 left hand side of the screen.  Click on the "SQL" tab at the top of
78 the screen, and on the page that turns up, click "Browse" to pick a
79 textfile to import.  Navigate to /distribution/database in the
80 distribution package and select elgg.sql.  Click "Go".
81
82 3.3 Setting up the database with command line MySQL
83
84 Using your command line terminal, navigate to /distribution/database
85 in the distribution package. Type the following:
86
87         mysql -u [username] -p [password] [databasename] < elgg.sql
88        
89 Where [username] and [password] are your MySQL access details and
90 [databasename] is the name of the database you have set aside for
91 Elgg.
92
93 Once you have done this, you should delete the /distribution
94 directory.
95
96
97 4. SETTING UP ELGG
98
99 4.1 Edit includes.php
100
101 Load "includes.php".  There are eight variables that must be
102 set at the top of the file - all of them are important, and they are
103 clearly described within the file.  Each of them is of the form:
104
105         define("name","value");
106        
107 You must enter your values within the second set of quotation marks.
108 To include a quotation mark within a value (e.g. if you wanted
109 My University's "Elgg" Trial to be your site title), prefix it with
110 a backslash ("\").
111
112 4.2 Customise your default homepage
113
114 We have included a basic default homepage, but you can alter index.php
115 as you wish.  If you would like to alter the text but maintain the
116 position within Elgg's flexible templating system, you will need to
117 alter the file /content/mainindex/content_main_index.php.
118
119 4.3 Log in
120
121 We have included a default user, "news". This user owns all the
122 public custom templates. Its login name is "news" and its default
123 password is "password"; you should log in and change this as soon
124 as possible. All new users will automatically list the news account
125 as a friend, so you should not delete it.
126
127
128 5. FURTHER CUSTOMISATION AND DEVELOPMENTS
129
130 Please keep an eye on http://apcala.com/development/index.php for
131 forthcoming developments within Elgg, including documentation on how
132 to alter your default templates and writing new functionality into
133 the system.
Note: See TracBrowser for help on using the browser.