| 1 |
Elgg version 0.2 installation instructions |
|---|
| 2 |
|
|---|
| 3 |
Ben Werdmuller <ben@elgg.net> |
|---|
| 4 |
21st June, 2005 |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
1. BEFORE YOU BEGIN |
|---|
| 8 |
|
|---|
| 9 |
1.1 Requirements |
|---|
| 10 |
|
|---|
| 11 |
Please read LICENSE. |
|---|
| 12 |
|
|---|
| 13 |
Elgg currently requires the Apache web server with mod_rewrite |
|---|
| 14 |
installed and the ability to send emails, plus PHP 4.3+ and MySQL |
|---|
| 15 |
3.23+. It has currently been tested on Apache installations running |
|---|
| 16 |
Red Hat Linux and Microsoft Windows XP. |
|---|
| 17 |
|
|---|
| 18 |
In your Apache configuration, you must have AllowOverride set to |
|---|
| 19 |
All for the virtual server where Elgg is installed. |
|---|
| 20 |
|
|---|
| 21 |
Elgg prefers to be installed on the root of a domain - for example, |
|---|
| 22 |
at http://elgg.net/, as opposed to http://elgg.net/subdirectory/. |
|---|
| 23 |
However, it has now been tested to work in subdirectories, although |
|---|
| 24 |
this remains experimental until the next release. |
|---|
| 25 |
|
|---|
| 26 |
You must have a database on the MySQL server ready for use by Elgg. |
|---|
| 27 |
|
|---|
| 28 |
You must have the GD library installed. |
|---|
| 29 |
|
|---|
| 30 |
If you have any problems installing, please consider joining |
|---|
| 31 |
http://elgg.net/ and joining the Elgg Installation Support |
|---|
| 32 |
community at http://elgg.net/support/ . |
|---|
| 33 |
|
|---|
| 34 |
This version of Elgg only supports upgrading from version 0.1.1a |
|---|
| 35 |
and above. Upgrading from all older versions will require a re-install. |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
1.2 Recommendations |
|---|
| 39 |
|
|---|
| 40 |
For this release, it is recommended that MySQL has cacheing enabled. |
|---|
| 41 |
Please see the MySQL documentation for instructions, or ask your |
|---|
| 42 |
system administrator. |
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
1.3 Time estimate |
|---|
| 46 |
|
|---|
| 47 |
Assuming you have satisfied the requirements in 1.1, the installation |
|---|
| 48 |
should not take longer than 20 minutes. This may vary depending on |
|---|
| 49 |
the connection speed to your web server. |
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
2. INSTALLING FILES |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
2.1 Deploy Elgg framework |
|---|
| 57 |
|
|---|
| 58 |
Move all files aside from README, LICENSE, INSTALL and the |
|---|
| 59 |
"distribution" directory from the distribution package to your web |
|---|
| 60 |
server directory. Files in the root of the distribution must be in |
|---|
| 61 |
the root of your web server account. |
|---|
| 62 |
|
|---|
| 63 |
Remember to include the .htaccess files; these may be invisible by |
|---|
| 64 |
default if you are using MacOS X. |
|---|
| 65 |
|
|---|
| 66 |
IF YOU ARE UPGRADING, you may wish to retain your existing |
|---|
| 67 |
includes.php file. |
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 |
2.1 Set permissions on special directories |
|---|
| 71 |
|
|---|
| 72 |
Some directories need to be written to during Elgg's normal operation |
|---|
| 73 |
- specifically the directory for uploaded files, and the directory |
|---|
| 74 |
for uploaded icons. |
|---|
| 75 |
|
|---|
| 76 |
From your root directory, navigate to /_icons. On Linux / Unix, you |
|---|
| 77 |
must change the access privileges for /_icons/data to 777 or |
|---|
| 78 |
equivalent. To do this you may be able to right click on the folder |
|---|
| 79 |
and set the "CHMOD" value, or you may have to use your command line |
|---|
| 80 |
terminal, navigate to the _icons folder, and type: |
|---|
| 81 |
|
|---|
| 82 |
chmod 777 data |
|---|
| 83 |
|
|---|
| 84 |
Repeat this process for /_files/data and /_files/cache. |
|---|
| 85 |
|
|---|
| 86 |
IF YOU ARE UPGRADING, please note that /_files/cache is new in this |
|---|
| 87 |
release. Please remember to chmod it to 777. |
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 |
3. SETTING UP THE DATABASE |
|---|
| 92 |
|
|---|
| 93 |
If you are upgrading, please skip to 3.4. |
|---|
| 94 |
|
|---|
| 95 |
3.1 Open database schema |
|---|
| 96 |
|
|---|
| 97 |
There is a database schema supplied in the /distribution/database |
|---|
| 98 |
folder. You must install this into the database you have set aside |
|---|
| 99 |
for elgg. |
|---|
| 100 |
|
|---|
| 101 |
If you are running phpMyAdmin, a third-party tool for easily |
|---|
| 102 |
maintaining MySQL databases, go to 3.2; otherwise go to 3.3. |
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 |
3.2 Setting up the database with phpMyAdmin |
|---|
| 106 |
|
|---|
| 107 |
In phpMyAdmin, click on the database you wish to use for Elgg on the |
|---|
| 108 |
left hand side of the screen. Click on the "SQL" tab at the top of |
|---|
| 109 |
the screen, and on the page that turns up, click "Browse" to pick a |
|---|
| 110 |
textfile to import. Navigate to /distribution/database in the |
|---|
| 111 |
distribution package and select elgg.sql. Click "Go". |
|---|
| 112 |
|
|---|
| 113 |
|
|---|
| 114 |
3.3 Setting up the database with command line MySQL |
|---|
| 115 |
|
|---|
| 116 |
Using your command line terminal, navigate to /distribution/database |
|---|
| 117 |
in the distribution package. Type the following: |
|---|
| 118 |
|
|---|
| 119 |
mysql -u [username] -p [password] [databasename] < elgg.sql |
|---|
| 120 |
|
|---|
| 121 |
Where [username] and [password] are your MySQL access details and |
|---|
| 122 |
[databasename] is the name of the database you have set aside for |
|---|
| 123 |
Elgg. |
|---|
| 124 |
|
|---|
| 125 |
Once you have done this, you should delete the /distribution |
|---|
| 126 |
directory. |
|---|
| 127 |
|
|---|
| 128 |
3.4 Upgrading |
|---|
| 129 |
|
|---|
| 130 |
Perform either 3.2 or 3.3 but with the upgrade.sql file found in |
|---|
| 131 |
/distribution/database instead of elgg.sql. |
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 |
4. SETTING UP ELGG |
|---|
| 136 |
|
|---|
| 137 |
|
|---|
| 138 |
4.1 Edit includes.php |
|---|
| 139 |
|
|---|
| 140 |
Load "includes.php". There are eight variables that must be |
|---|
| 141 |
set at the top of the file - all of them are important, and they are |
|---|
| 142 |
clearly described within the file. Each of them is of the form: |
|---|
| 143 |
|
|---|
| 144 |
define("name","value"); |
|---|
| 145 |
|
|---|
| 146 |
You must enter your values within the second set of quotation marks. |
|---|
| 147 |
To include a quotation mark within a value (e.g. if you wanted |
|---|
| 148 |
My University's "Elgg" Trial to be your site title), prefix it with |
|---|
| 149 |
a backslash ("\"). |
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 |
4.2 Customise your default homepage |
|---|
| 153 |
|
|---|
| 154 |
We have included a basic default homepage, but you can alter index.php |
|---|
| 155 |
as you wish. If you would like to alter the text but maintain the |
|---|
| 156 |
position within Elgg's flexible templating system, you will need to |
|---|
| 157 |
alter the file /content/mainindex/content_main_index.php. |
|---|
| 158 |
|
|---|
| 159 |
|
|---|
| 160 |
4.3 XML-RPC |
|---|
| 161 |
|
|---|
| 162 |
Misja Hoebe has written an XML-RPC unit that requires the PEAR library. |
|---|
| 163 |
This allows users to use third-party blogging tools to post to your |
|---|
| 164 |
Elgg systme. |
|---|
| 165 |
|
|---|
| 166 |
Please see units/rpc/README for more details. If you are sure you have |
|---|
| 167 |
all the prerequisites for this unit, uncomment the 'include XMLRPC' line |
|---|
| 168 |
in the plugins section of includes.php. |
|---|
| 169 |
|
|---|
| 170 |
|
|---|
| 171 |
4.4 Log in |
|---|
| 172 |
|
|---|
| 173 |
We have included a default user, "news". This user owns all the |
|---|
| 174 |
public custom templates. Its login name is "news" and its default |
|---|
| 175 |
password is "password"; you should log in and change this as soon |
|---|
| 176 |
as possible. All new users will automatically list the news account |
|---|
| 177 |
as a friend, so you should not delete it. |
|---|
| 178 |
|
|---|
| 179 |
|
|---|
| 180 |
|
|---|
| 181 |
5. FURTHER CUSTOMISATION AND DEVELOPMENTS |
|---|
| 182 |
|
|---|
| 183 |
Please keep an eye on http://elgg.net/development/index.php for |
|---|
| 184 |
forthcoming developments within Elgg, including documentation on how |
|---|
| 185 |
to alter your default templates and writing new functionality into |
|---|
| 186 |
the system. |
|---|