Unzip elgg1.2.zip to temp folder ;
>Cd ~
>unzip elgg1.2.zip
>cp -r elgg1.2 /var/www
>cd /var/www
>mv elgg1.2 elgg //rename folder name
Sudo chmod -R 777 elgg
Config Apache2 server, enable mod_write and .htaccess, like this:
Sudo vi /etc/apache2/sites-available/default
Add content below:
AllowOverride All
Then enable Apache2 mod_write function:
>Sudo a2enmod rewrite
To disable this module it's just:
>sudo a2dismod rewrite
Then edit php.ini:
>sudo vi /etc/php5/apache2/php.ini
Add:
sendmail_path = /usr/sbin/sendmail -i -t
Then config mysql:
Mysql -u root -pxxxxxx
mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY 'something' WITH GRANT OPTION;
Mqsql>FLUSH PREVILEGES;
Mqsql>Create database elgg
Mqsql>Quit
Then restart mysql server:
Sudo /etc/init.d/mysql restart
http://xxx.xxx.xxx.xxx/elgg/
Done!
No comments:
Post a Comment