-------Install Prerequisites-------
sudo su
apt-get update && apt-get -y upgrade
apt-get -y install apache2 libapache2-mod-passenger mysql-server mysql-client
apt-get -y install redmine redmine-mysql
-------Edit passenger.conf-------
nano /etc/apache2/mods-available/passenger.conf
PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
ln -s /usr/share/redmine/public /var/www/redmine
gem install bundler
-------Edit 000-default.conf-------
nano /etc/apache2/sites-available/000-default.conf
ServerName localhost
DocumentRoot /var/www/redmine
ServerAdmin admin@localhost
PassengerMinInstances 6
PassengerMaxPoolSize 20
RailsSpawnMethod smart
PassengerPoolIdleTime 1000
RailsAppSpawnerIdleTime 3600
PassengerPoolIdleTime 1000
RailsAppSpawnerIdleTime 3600
PassengerMaxPreloaderIdleTime 0
PassengerMaxRequests 5000
PassengerStatThrottleRate 5
LogLevel warn
ErrorLog /var/log/apache2/redmine_error
CustomLog /var/log/apache2/redmine_access combined
Options Indexes FollowSymLinks MultiViews
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
chown -R www-data:www-data /usr/share/redmine/
service apache2 restart
沒有留言:
張貼留言