Install Elgg social network on Centos

Elgg is a social network web application that could e nice as intranet for companies.
Well Its a PHP application so its easy to install

 

First some yum packages

yum install mysql mysql-server httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring wget unzip

Setup an apache config

<VirtualHost *:80>
 DocumentRoot /var/www/html/elinodrift.se
ServerName domain.se
ServerAlias www.yourdomain.se
ServerAdmin webmaster@domain.se
ErrorLog /var/log/httpd/elgg.log
<Directory /var/www/html/elgg>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Setup mysql

Create database elgg;
CREATE USER 'elgg_user'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'elgg_user'@'localhost';
flush privileges;

Download and install elgg http://elgg.org/

wget http://elgg.org/getelgg.php?forward=elgg-1.8.16.zip
unzip elgg-1.8.16.zip
mv elgg-1.8.16 elgg
chown apache:apache -R elgg
chown 774 -R elgg

Time to surf in and setup your elgg

http://your-ip/elgg/

Then your done