Ubuntu 16.04 安裝 redmine (使用mysql)
$ apt-get update
$ apt-get upgrade
$ sudo apt-get install apache2 libapache2-mod-passenger mysql-server
$ sudo apt-get install redmine-mysql
$ sudo gem update
$ sudo gem install bundler
$ sudo nano /etc/apache2/mods-available/passenger.conf
# 內容如下
<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
</IfModule>
$ sudo ln -s /usr/share/redmine/public /var/www/html/redmine
$ sudo chown -R www-data:www-data /usr/share/redmine
$ sudo nano /etc/apache2/sites-available/000-default.conf
PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
</IfModule>
$ sudo ln -s /usr/share/redmine/public /var/www/html/redmine
$ sudo chown -R www-data:www-data /usr/share/redmine
$ sudo nano /etc/apache2/sites-available/000-default.conf
# 在</VirtualHost>前增加內容如下
<Directory /var/www/html/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
$ service apache2 restart
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
$ service apache2 restart
沒有留言:
張貼留言