README 1.91 KB
Newer Older
Eric Rasmussen's avatar
test    
Eric Rasmussen committed
1
2
3
********
** How to set up UNL_Elgg:
********
Eric Rasmussen's avatar
Eric Rasmussen committed
4
5
6
Navigate to the elgg/mod directory in Terminal and sym-link to cas_auth and unl_theme
	ln -s ../../cas_auth cas_auth
	ln -s ../../unl_theme unl_theme
Brett Bieber's avatar
Brett Bieber committed
7
Create a database named unl_social
8
Import the full_dump.sql file*
Brett Bieber's avatar
Brett Bieber committed
9
10
11
12
13
14
	mysql -u root unl_social < stable_dump.sql
Browse to the elgg directory in your web browser.
Create the local elgg/.htaccess file using the sample on the install page
	Be sure to set the correct RewriteBase /~bbieber/UNL_Elgg/elgg/ for example.
Create the local elgg/engine/settings.php file.
	Be sure to specify unl_social as the database name
15
16
17
Create a local directory for elgg data outside of the web root.
	Change the permissions so Apache has write access to it.
	sudo chown _www elgg_data
Brett Bieber's avatar
Brett Bieber committed
18
19
20
21
Install the UNL_Templates pear packages
	pear channel-discover pear.unl.edu && pear install unl/UNL_Templates-beta
Set the correct site url within the database:
	UPDATE elggsites_entity SET url='http://localhost/~bbieber/UNL_Elgg/elgg/' WHERE guid=1;
22
23
	UPDATE elggdatalists SET value = '/Library/WebServer/Documents/workspace/UNL_Elgg/elgg/' WHERE name = 'path';
	UPDATE elggdatalists SET value = '/Library/WebServer/Documents/workspace/elgg_data/' WHERE name = 'dataroot';
24
25
Make sure the local site has an updated copy of the templatedependents

Eric Rasmussen's avatar
test    
Eric Rasmussen committed
26
 
27

Eric Rasmussen's avatar
test    
Eric Rasmussen committed
28
29
30
*******
** Notes on importing data:
*******
31
32
33
34
35
full_dump.sql is is full copy of the mysql database that must be modified upon import.
safe_dump.sql can be imported without the need for modification

when importing full_dump.sql, you must modify certain rows in the tables elggdatalists and elggsites_entity so
that they pertain to the local elgg site instance. 	(so if you see something like 
Eric Rasmussen's avatar
test    
Eric Rasmussen committed
36
37
38
39
40
http://ucommjuhl.unl.edu/UNL_Elgg/elgg, change it!)



*******
Eric Rasmussen's avatar
Eric Rasmussen committed
41
** Changes made to the Elgg engine for UNL's implementation (changes made inside the elgg directory)
Eric Rasmussen's avatar
test    
Eric Rasmussen committed
42
43
*******
-Altered /elgg/engine/lib/users.php to bar registration of accounts starting with "unl_"