Todo
- TODO automatic redeployment
- TODO sikkerhet på solr lenke i apache.conf/proxy
- TODO enable wsgi in apache
- TODO setup django admin console https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/
Prereq
- Ubuntu installed and updated.
- User has sudo access.
Install Apache
- Based on info from http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-12.10-lamp
Commands
Fix ssl
- restart apache
![]() | Apache Conf
|
Installing mod_wsgi
- See https://www.digitalocean.com/community/articles/installing-mod_wsgi-on-ubuntu-12-04
restart apache
Installing Django on server
ACS-User
ACS Source code
git clone https://github.com/altran/Awesome-Competence-System.git /home/acs-user/acs
Django
/etc/apache2/sites-available/acs.conf
Note: This configuration is outdated!!
- Opprett bruker i .htaccess
Install Database
TODO: more config needed to document.
Install GIT
sudo apt-get install git
Install Java
Install Solr
Install ProxyPass
See [cantaraadm:Webproxy - OpenSolaris]
Add symbolic links to /etc/apache2/mods-enabled
lrwxrwxrwx 1 root root 28 Feb 21 11:42 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root 28 Feb 21 11:42 proxy.load -> ../mods-available/proxy.load
In /etc/apache2/sites-available/default
Verify: http://altubuntu01.cloudapp.net/solr/#/
Install Libreoffice for converting .doc and .pdf
sudo apt-get install libreoffice
Run:
Install postfix to send nag-mails
Choose "No configuration" upon prompt
Start postfix with command
1 Comment
comments.show.hideNov 14, 2013
Bård Lind
sudo a2enmod wsgi