Reference: Http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu
The installation assumes the Web server and database are already in place, so you probably want to install the LAMP s Tack-I-if you don ' t already have it:
$ sudo tasksel install Lamp-server
Also, the default AppArmor configuration can get at the way, so you could need to set the mysqld profiles to complain:
$ sudo aa-complain/usr/sbin/mysqld
As of 10.04, Redmine is available through Ubuntu ' s Package Manager, and installation are simple:
$ sudo apt-get install redmine redmine-mysql Subversion
The second package, Redmine-mysql, can be replaced by either Redmine-pgsql Orredmine-sqlite if your want to use either of t Hose databases.
The installation process should prompt you to the interesting details.
Redmine'll now is installed In/usr/share/redmine And/etc/redmine
Note:the package with the Ubuntu are stuck in the 0.9.x branch for now.
You'll also need to install the passenger Apache module.
$ sudo apt-get install Libapache2-mod-passenger
If you set your AppArmor mysqld profiles to complain your ought to set it back to enforce:
$ sudo aa-enforce/usr/sbin/mysqld Configuration
Symlink/usr/share/redmine/public to your desired web-accessible location. e.g.:
$ sudo ln-s/usr/share/redmine/public/var/www/redmine
By default, passenger runs as ' nobody ' and so you'll need to fix that. in/etc/apache2/mods-available/passenger.conf, add:
Passengerdefaultuser Www-data
' ll also need to configure The/var/www/redmine location In/etc/apache2/sites-available/default by adding: <directo Ry "/var/www/redmine" >
Railsbaseuri/redmine
Passengerresolvesymlinksindocumentroot on
</Directory>
Enable passenger:
$ sudo a2enmod passenger
Restart Apache2
$ sudo/etc/init.d/apache2 Restart
And you should is able to access Redmine At:http://redmine.server.ip.address/redmine
If you receive a "403:forbidden" error after setting up Redmine, the Redmine ' Public ' folder may have incorrect NS set. The executable bit on the public folder must is enabled or you'll receive a "403:forbidden" error when attempting to AC Cess Redmine.
$ sudo chmod a+x/usr/share/redmine/public