Skip to content

Instantly share code, notes, and snippets.

@parallaxhub
Created December 15, 2022 07:56
Show Gist options
  • Save parallaxhub/7c3c49f5f997ae4b1d7211889fffa212 to your computer and use it in GitHub Desktop.
Save parallaxhub/7c3c49f5f997ae4b1d7211889fffa212 to your computer and use it in GitHub Desktop.
Redmine Installation on Ubuntu 20.04
###Install Redmine
sudo apt install redmine redmine-mysql -y
Install Bundler. Bundler is a package that sets up an environment for Ruby projects by tracking and installing gems and versions needed.
sudo gem update
sudo gem install bundler
Edit the Passenger configuration file.
sudo nano /etc/apache2/mods-available/passenger.conf
Change the file as shown below. Then, save and close the file.
<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
</IfModule>
Create the Redmine symbolic link to the Apache web root directory.
sudo ln -s /usr/share/redmine/public /var/www/html/redmine
Create a file named Gemfile.lock.
sudo touch /usr/share/redmine/Gemfile.lock
Change the ownership of the Gemfile.lock file to be accessible to Apache.
sudo chown www-data:www-data /usr/share/redmine/Gemfile.lock
Change ownership of the Apache web directory.
sudo chown -R www-data:www-data /var/www/html/redmine
Change access permissions for the Apache web directory.
sudo chmod -R 755 /var/www/html/redmine
@parallaxhub
Copy link
Author

Screenshot from 2022-11-28 13-57-09
Screenshot from 2022-11-28 13-59-08
Screenshot from 2022-11-28 13-59-10
Screenshot from 2022-11-28 13-59-11
Screenshot from 2022-11-28 13-59-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment