Difference between revisions of "Setting up Elgg VM on CedeusGeoNode"
From stgo
(→Elgg Setup) |
(→Elgg Setup) |
||
Line 33: | Line 33: | ||
General Docs: http://learn.elgg.org/en/latest/ | General Docs: http://learn.elgg.org/en/latest/ | ||
− | Install docs: http://learn.elgg.org/en/latest/intro/install.html | + | Install docs: |
+ | * http://learn.elgg.org/en/latest/intro/install.html | ||
+ | * https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-elgg-on-a-debian-or-ubuntu-vps--2 | ||
* Elgg needs LAMPS (MySQL 5+, PHP 5.3.3+), so: | * Elgg needs LAMPS (MySQL 5+, PHP 5.3.3+), so: | ||
* check what software packages are installed on the VM with <code>dpkg -l</code> | * check what software packages are installed on the VM with <code>dpkg -l</code> | ||
: => looks like 14.04 comes with MySQL 5.5 and PHP 5.5 | : => looks like 14.04 comes with MySQL 5.5 and PHP 5.5 | ||
− | * Apache ''rewrite'' module should be enabled too | + | * Apache ''rewrite'' module should be enabled too |
+ | : <code>sudo a2enmod rewrite</code> | ||
* downnload Elgg from http://elgg.org/download.php => I downloaded 1.8.19, the latest available and stable (= non RC) version | * downnload Elgg from http://elgg.org/download.php => I downloaded 1.8.19, the latest available and stable (= non RC) version | ||
* unzip and place in www folder of server | * unzip and place in www folder of server |
Revision as of 16:13, 5 September 2014
>> return to Cedeus_IDE
Elgg VM setup
- copying basicubunutu1404.vdi file and renaming to elgg.vdi
- creating the tilestream VM on CedeusDB (ip.18):
-
VBoxManage createvm --name elgg --ostype Ubuntu_64 --register
-
VBoxManage modifyvm elgg --memory 4096
-
VBoxManage modifyvm elgg --cpus 4
-
VBoxManage modifyvm elgg --nic1 nat
-
VBoxManage storagectl elgg --name "SATA Controller" --add sata --controller IntelAhci
- assign the (old) disk image a new uuid
-
VBoxManage internalcommands sethduuid elgg.vdi
-
- attach the (old) disk image:
-
VBoxManage storageattach "elgg" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium elgg.vdi
-
-
VBoxManage storagectl elgg --name "IDE Controller" --add ide --controller PIIX4
- set the nat rules (ports):
-
VBoxManage modifyvm elgg --natpf1 "ssh,tcp,,15022,,22"
-
VBoxManage modifyvm elgg --natpf1 "apache,tcp,,15080,,80"
-
-
- optional - set VRDE port:
-
VBoxManage modifyvm elgg --vrdeport 7765
(Note: 3389 is the default port anyway)
-
- start the VM
-
VBoxHeadless -s elgg --vrde on &
- the VM will listen on port 7765
-
- The following step do not seem to be necessary with Ubuntu 14.04 and new VirtualBox - however, are necesary for 12.04. But if so: connect with VRD and adjust network card settings (remember the existing VM have an old password)
- open /etc/udev/rules.d/70-persistent-net.rules and comment out existing network adapters
- reboot
- check if ssh connection works
Elgg Setup
General Docs: http://learn.elgg.org/en/latest/
Install docs:
- http://learn.elgg.org/en/latest/intro/install.html
- https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-elgg-on-a-debian-or-ubuntu-vps--2
- Elgg needs LAMPS (MySQL 5+, PHP 5.3.3+), so:
- check what software packages are installed on the VM with
dpkg -l
- => looks like 14.04 comes with MySQL 5.5 and PHP 5.5
- Apache rewrite module should be enabled too
-
sudo a2enmod rewrite
- downnload Elgg from http://elgg.org/download.php => I downloaded 1.8.19, the latest available and stable (= non RC) version
- unzip and place in www folder of server
unzip elggXXX
mv elggXXX elgg18
(i.e. rename folder)sudo cp -r elgg18 /var/www/html/
(copy folder to www/html to be accessible for Ubuntu 14.04)
- create a data folder outside of /www or /public_html and make it accessible via chmod (755? or 644? - preferably not 777) for elgg
- (maybe use as well
sudo chown ssteinig /elggdata
, using the elgg user instead of ssteinig?)
- create a database for elgg