You will need to update the repositories so you can get php 5.2
vi /etc/yum.repos.d/utterrambling.repo
Add
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL5/i386/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
Change the baseurl to http://www.jasonlitka.com/media/EL5/x86_64 if 64 bit.
Install the necessary packages
yum install mysql-server httpd php php-mbstring gd php-gd php-mysql
Get Elgg
wget http://elgg.org/getelgg.php?forward=elgg1.5.tar.gz
untar it
tar xvfz elgg1.5.tar.gz
put in /var/www/html
mv elgg1.5 /var/www/html
Change the permissions
chown -R apache.apache /var/www/html/elgg1.5/
Create the data folder
/var/www/data
chmod 777 /var/www/data
Create the database
mysql -u root
create database elgg;
exit
Goto /etc/httpd/conf/httpd.conf and edit it.
Find <Directory “/var/www/html”> and then change
AllowOverride None
to
AllowOverride All
Goto http://yourserver/elgg1.5/ and install the ap.
Source of instructions – http://docs.elgg.org/wiki/Installation
Intention
My intention is not to install a secure elgg server, i just want to get it up and running quickly so I can test it.
Install necessary packages by Yum
yum install httpd, php, php-mysql, mysql-server
Download Full Elgg packages
wget http://elgg.org/getelgg.php?forward=elgg1.1.zip
Unzip and move Elgg to /var/www/html
unzip elgg1.1.zip
mv elgg1.1/* /var/www/html/
goto the correct directory
cd /var/www/html
change ownership
chown -R apache.apache /var/www/html/
Setup Mysql Server Database
mysql -u root -p
create database elgg;
exit
Create Data Store for Elgg
mkdir /var/www/data
chmod 777 /var/www/data
Allow mod_rewrite on Apache (this is not a secure install, just to get it up and working)
vi /etc/httpd/conf/httpd.conf
find – <Directory “/var/www/html”>
and then change
AllowOverride None
to
AllowOverride All
This will save you from the “The requested URL /elgg/action/systemsettings/install was not found on this server.” server error. If this is a production environment I would not recommend this for security reasons.
Restart Apache and Mysql
service httpd restart
service mysqld restart
Setup Elgg
goto
http://localhost/elgg
Follow installation instructions.
Once completed you should have a username and password. It will state that you must wait to verify your email address, this is not necessary for the first account (i.e. Admin) created on the system.
wget http://elgg.org/getplugin.php?forward=ldap_auth.zip
unzip ldap_auth.zip
cd ldap_auth
cp ldap_auth to /var/www/html/mod/
chown apache.apache /var/www/html/mod/ldap_auth
Goto Tool Administration in Elgg and Enable the plugin
If you get – “ldap_auth is a misconfigured plugin.” error then you probably have /var/www/html/mod/ldap_auth/ldap_auth, you should have /var/www/html/mod/ldap_auth, fix this by removing the extra level of directory folders.