Azimout's Linux weblog

Apache, Php, Redmine

leave a comment »

This is a step-by-step guide for installing apache, php, redmine and other webserver stuff on Ubuntu 10.04 Lucid Lynx.

Apache 2.2.15 + PHP 5.3.2

Install the required packages: sudo aptitude install apache2 libapache2-mod-php5. By default your site is under /var/www.

  • To avoid the “Could not reliably determine the server’s fully qualified domain name” error each time you restart apache2, edit /etc/apache2/apache2.conf (Ubuntu’s version of httpd.conf) and add a line with ServerName and then the FQDN of your webserver
  • To disable directory browsing in apache, edit /etc/apache2/sites-available/default and remove “Indexes” from “Options”.
  • Each time you make modifications to apache’s configuration, restart it with sudo service apache2 restart.


Redmine 0.9.4 + MySQL 5.1.48 + Subversion 1.6.12

Note: By default, redmine will use the sqlite3 database backend, which requires virtually no configuration. However if you want to use also svn with redmine, use mysql instead!

The way to get this to work (contrary to what the reference below says) is to install mysql-server before redmine!

  • sudo aptitude install mysql-server
  • sudo aptitude install redmine redmine-mysql libapache2-mod-passenger
  • run sudo ln -s /usr/share/redmine/public /var/www/redmine
  • add a line saying PassengerDefaultUser www-data in the file /etc/apache2/mods-available/passenger.conf
  • add the following lines to /etc/apache2/sites-available/default
<Directory /var/www/redmine>
    RailsBaseURI /redmine

The default admin account in Redmine is user:admin, password:admin. Log in and change that password IMMEDIATELY!

You can do the rest of the configuration from the web-based interface.



Written by azimout

24/06/2010 at 20:10

Posted in Reference

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: