sudo apt-get update
Установка RUBY
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn
=======================================================
Установка RBENV (управляющий пакет для ruby)
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.7.1
rbenv global 2.7.1
ruby -v
=========================================================
sudo apt-get update
gem update
gem install bundler
==========================================================
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
sudo apt-get install libpq-dev libpqxx-dev
sudo apt-get install libmagick++-dev
sudo apt-get install imagemagick
===========================================================
sudo apt-get install apache2 libapache2-mod-passenger
sudo apt-get install mysql-server mysql-client
sudo apt-get install redmine redmine-mysql
==============================================================
sudo apt-get install git subversion cvs mercurial
==============================================================
gem install pg -v 1.1
gem install rails -v 5.2.2
gem install rouge -v 3.7
gem install request_store -v 1.1
gem install actionpack-xml_parser
gem install roadie-rails -v 1.3
gem install sprockets -v 3.7.2
gem install rbpdf -v 1.19
gem install net-ldap -v 0.16
gem install rmagick -v 2.16
gem install redcarpet -v 3.4
==============================================================
Configuring Apache
Вам нужно изменить два файла для apache. Первый - это /etc/apache2/mods-available/passenger.conf, который требует добавления текста www-data PassengerDefaultUser, как показано ниже. Не пытайтесь полностью заменить содержимое файла!
<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot /usr
PassengerRuby /usr/bin/ruby
</IfModule>
Теперь создайте символическую ссылку для подключения Redmine к пространству веб-документа:
$ sudo ln -s /usr/share/redmine/public /var/www/html/redmine
И измените /etc/apache2/sites-available/000-default.conf (до apache 2.4 / etc / apache2 / sites-available / default), чтобы вставить следующее с другими разделами <Directory>, чтобы apache знал, что нужно следовать символической ссылке в Rails:
<Directory /var/www/html/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
Create and set the ownership of a Gemfile.lock file so that apache's www-data user can access it:
$ sudo touch /usr/share/redmine/Gemfile.lock
$ sudo chown www-data:www-data /usr/share/redmine/Gemfile.lock
Now restart apache:
$ sudo service apache2 restart
You should now be able to access redmine from the local host
$ firefox http://127.0.0.1/redmine
In the upper right corner of the browser window you should see the "Sign in" link. Click that and enter "admin" at both the Login: and Password: prompts. Note: this is not the password you set during the installation process. Click the Login button.
I recommend that the next thing you do is to click on My account in the upper right corner and change that password. In the page that is displayed there should be a Change password link in the upper right of the white area of the page. Click to change the password.
===================================================================
sudo service apache2 restart
==================================================================