Skip to content
Snippets Groups Projects
Select Git revision
  • develop
  • master default
  • git-fixes
  • 4.1_templates-symlink
  • 4.0_templates
5 results

PlanetRed

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Brett Bieber authored
    2dedb8fc
    History
    Name Last commit Last update
    data
    lib
    patches
    plugins
    README
    setup.sh
    ********
    ** How to set up UNL_Elgg:
    ********
    Run the setup.sh script to symlink all the necessary plugins
    	./setup.sh
    Create a mysql database named unl_social
    Import the full_dump.sql file*
    	mysql -u root unl_social < full_dump.sql
    Browse to the elgg directory in your web browser and do elgg's installation:
    	Create the local elgg/.htaccess file using the sample on the install page
    		Be sure to set the correct RewriteBase /workspace/UNL_Elgg/elgg/ for example.
    	Create the local elgg/engine/settings.php file.
    		Be sure to specify unl_social as the database name
    		Add this settings file to your svn:ignore list
    Create a local directory named elgg_data for elgg to write to outside of the web root.
    	Change the permissions so Apache has write access to it.
    	sudo chown _www elgg_data
    Install pear http://pear.php.net/manual/en/installation.getting.php
    	Install the UNL_Templates pear packages
    		pear channel-discover pear.unl.edu && pear install unl/UNL_Templates-beta unl/UNL_Services_Peoplefinder-beta DB
    Set the correct site url within the unl_social database:
    	UPDATE elggsites_entity SET url='http://localhost/workspace/UNL_Elgg/elgg/' WHERE guid=1;
    	UPDATE elggdatalists SET value = '/Users/smeranda/Documents/workspace/UNL_Elgg/elgg/' WHERE name = 'path';
    	UPDATE elggdatalists SET value = '/Users/smeranda/Documents/workspace/elgg_data/' WHERE name = 'dataroot';
    Make sure the local site has an updated copy of the unl templatedependents
    
    ******
    ** Troubleshooting
    ******
    After navigating to the elgg dir in your browser and filling in the correct database info - 
    if you get the error that elgg can't connect to your database do this:
    1. find your php.ini file, probably located at /etc/php.ini.default and rename it to php.ini
    2. edit the mysql.default_socket line to include the path to your mysql.sock file, e.g.
       mysql.default_socket = /private/tmp/mysql.sock
    
     
    
    *******
    ** Notes on importing data:
    *******
    
    ****From here on out we will be dumping data from the live server to import on testing instances only. Changes on test
    instances that modify database fields must be documented and repeated on the live server after testing.
    
    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 
    http://ucommjuhl.unl.edu/UNL_Elgg/elgg, change it!)
    
    
    
    *******
    ** Plugin info
    *******
    Just run the setup.sh script. If any plugins are added, add this to the setup.sh script.
    
    elgg https://code.elgg.org/elgg/trunk/
    
    elgg/mod/groups https://code.elgg.org/extensions/plugins/groups
    elgg/mod/notifications https://code.elgg.org/extensions/plugins/notifications
    elgg/mod/profile https://code.elgg.org/extensions/plugins/profile
    elgg/mod/reportedcontent https://code.elgg.org/extensions/plugins/reportedcontent
    elgg/mod/riverdashboard https://code.elgg.org/extensions/plugins/riverdashboard
    elgg/mod/thewire https://code.elgg.org/extensions/plugins/thewire
    
    elgg/mod/flexprofile http://its-gforge.unl.edu/svn/unl_elgg/trunk/flexprofile_mj
    elgg/mod/form        http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/form
    elgg/mod/globe 	http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/globe
    elgg/mod/messages	http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/messages
    elgg/mod/browse	http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/browse
    elgg/mod/mass_mailouts	http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/mass_mailouts
    elgg/mod/cas_auth	http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/cas_auth
    elgg/mod/customindex	http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/customindex
    elgg/mod/unl_theme	http://its-gforge.unl.edu/svn/unl_elgg/trunk/plugins/unl_theme 
    
    elgg/featured/ http://its-gforge.unl.edu/svn/unl_huskers/trunk/
    
    *******
    ** Patches
    *******
    All patches are located in the /pathces directory. These include:
    /pathces/lowercase_post.diff
    
    
    *******
    ** Things to look out for when new versions of Elgg are released
    *******
    -- Are there changes to /elgg/actions/login.php and /elgg/actions/logout.php ?????
    	We have overridden those actions with our own in the cas_auth_unl plugin