Elgg - Ubuntu Installation Procedure
-
Upload
naresh-kumar -
Category
Documents
-
view
250 -
download
0
description
Transcript of Elgg - Ubuntu Installation Procedure
ElggOpen Source Social Networking Engine
Ubuntu Installation Procedure
Author : E. Naresh Kumar
1. Install Apache webserver using the following command :
sudo apt-get install apache2
2. Install MySQL database server using the following command :
sudo apt-get install mysql-server
3. Install php and other required modules using the following command :
sudo apt-get install php5 libapache2-mod-php5 php5-mysql
4. Install phpmyadmin, using the following command :
sudo apt-get install phpmyadmin
5. Apache rewrite module should be enabled for elgg to work, use the following command :
sudo a2enmod rewrite
6. Edit the “/etc/apache2/sites-available/default” file, using the following command :
sudo nano /etc/apache2/sites-available/default
and find “AllowOverride None” and replace it to “AllowOverride all”
7. Now restart the apache server, using the following command :
sudo /etc/init.d/apache2 restart
8. Download the elgg files from the following link :
http://elgg.org/download.php
9. Extract the files and rename the folder name to “elgg”, now move the “elgg” folder to /var/www/ folder.
10. Elgg needs a special folder to store uploaded files including profile icons and photos, so create a folder named “data” in the “/var/www/” folder, using the following command :
sudo mkdir /var/www/data
11. Give the permissions for the “elgg” and “data” folders using the following commands :
sudo chmod 777 -R /var/www/elgg/
sudo chmod 777 -R /var/www/data/
12. Create a MySQL database named “elgg” using phpMyAdmin.
13. Rename the “settings.example.php” file to “settings.php” in the following folder “/var/ww/elgg/engine/”.
14. Now edit the “settings.php” file and
find the following line “$CONFIG->dbuser”, now enter dbusername
find the following line “$CONFIG->dbpass”, now the dbpassword
find the following line “$CONFIG->dbname” and enter the database name created in phpMyAdmin,
find the following line “$CONFIG->dbhost” and enter hostname.(If installing in local machine, enter “localhost”)
find the following line “$CONFIG->dbprefix” and enter the prefix for the tables to be created.
15. Rename the “htaccess_dist” file to “.htaccess” in the following folder “/var/ww/elgg/”.
16. Edit the “.htaccess” file from the “/var/www/elgg/” folder an find the lines “#RewriteBase /”
and change it as “RewriteBase /elgg/”.
17. Now restart the apache server.
18. Once all steps are performed, enter the site address in the web browser (Ex. http:/localhost/elgg).
19. Elgg will take you through the rest of the installation process from there. The first account that you create at the end of the installation process will be an administrator account.