Restart when needed (http://legevarsel.idi.ntnu.no/, http://fastlege.idi.ntnu.no:8080/, 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
Norwegian encoding: http://blog.andrewbeacock.com/2007/01/how-to-change-your-default-locale-on.html
Enable user_mod (user directory php) and Restart Apache
...
sudo service apache2 restart
...
Enabling Apache’s PHP execution in User Directories on Ubuntu Lucid
Posted: 6 October 2011 Filed under: ubuntu | Tags: apache, drupal, php 7 Comments »
Ubuntu Lucid ships with PHP disabled for user directories. That’s a sensible security default, but it won’t allow your developers to get their work done. And if you’re working with Drupal, you’ll need all the steps listed here.
First, you’ll need to install Apache:
sudo apt-get install apache2
Then the compiled PHP binary (or “shared object” in Apache lingo):
sudo apt-get install php5
You may need to do (Eller sudo /etc/init.d/apache2 restart
or sudo service apache2 restart
to have it pick up the updated configuration file that loads the PHP5 module. Try visiting your own box at “localhost” to see if you get a nice “welcome” page. You can put an “info.php
” file in /var/www
to test if PHP is working (the contents of your info.php file are simply <?php phpinfo(); ?>
), and visit that in your browser.
Once you’ve gotten PHP running under Apache, edit /etc/apache2/mods-available/php5.conf
and comment out the lines as instructed:
<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
# <IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
# </IfModule>
</IfModule>
If you’re developing with Drupal, the following step may also be necessary: In /etc/apache2/mods-available/userdir.conf
, you should allow Drupal’s local .htaccess
file to override the Apache-wide configuration file, with:
(...) <Directory /home/*/public_html> AllowOverride All #AllowOverride FileInfo AuthConfig Limit Indexes #Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec (...)
and you might be done!)
(From: https://help.ubuntu.com/10.04/serverguide/php5.html)
Complete copy of the entire post:
Restart Apache with sudo /etc/init.d/apache2 restart
and you might be done!