Restart when needed (http://legevarsel.idi.ntnu.no/, http://fastlege.idi.ntnu.no/, endors.no)
sudo reboot
sudo apachectl restart
sudo service tomcat7 restart
sudo service postfix restart
Setup Apache2.4 (Ubuntu 13.10)
http://www.binarytides.com/install-apache-ubuntu-13-10/
Try: satre@fastlege: /etc/apache2/conf-enabled$ sudo emacs httpd.conf
Setup TomCat (on port 80 instead of Apache)
See: http://stackoverflow.com/questions/4756039/how-to-change-the-port-of-tomcat-from-8080-to-80
Setup mailserver:
Very good information (working out of the box, just 5 first commands):
http://ubuntuguide.org/wiki/Mail_Server_setup
- Old but useful:
satre@fastlege:/etc/postfix$ tail -f /var/log/mail.log
Bør lytte på 25 og 587 (SSL?):
satre@vm-6114:/etc/postfix$ netstat -nat
New: http://xmodulo.com/2014/02/configure-mail-server-postfix-dovecot.html or http://www.blime.com/tag/mail-stack-delivery/
Follow-up information for virtual domains etc:
https://help.ubuntu.com/community/PostfixCompleteVirtualMailSystemHowto
Enable user_mod (user directory php) and Restart Apache
sudo emacs /etc/apache2/mods-available/php5.conf
comment away:
# <IfModule mod_userdir.c> # <Directory /home/*/public_html> # php_admin_value engine Off # </Directory> # </IfModule>
sudo service apache2 restart
(Eller sudo /etc/init.d/apache2 restart
and you might be done!)
Complete copy of the entire post: