简体   繁体   English

如何在 Linux+Apache 环境下安装 Easy Redmine?

[英]How to install Easy Redmine on Linux+Apache environment?

How can I install Easy Redmine 2016 (A Ruby on Rails based Project Management solution) on Linux+Apache environment with following specification,如何在 Linux+Apache 环境中按照以下规范安装 Easy Redmine 2016(基于 Ruby on Rails 的项目管理解决方案),

  • Ubuntu 16.04 LTS Ubuntu 16.04 LTS
  • Apache阿帕奇
  • MySQL MySQL

A step by step guideline follows,一步一步的指导方针如下,

# STEP 1 : Clean, Update & Upgrade your Advanced Packaging Tool of your OS # 第 1 步:清理、更新和升级您的操作系统的高级打包工具

 > sudo apt-get clean
 > sudo apt-get update
 > sudo apt-get upgrade

# STEP 2: Install Ruby and related stuffs # STEP 2: 安装 Ruby 和相关的东西

 > sudo apt-get install ruby-full
 > sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev
 > sudo apt-get install libmysqlclient-dev
 > sudo apt-get install imagemagick libmagickwand-dev

 > ALTER DATABASE <databasename> CHARACTER SET utf8 COLLATE utf8_general_ci;
 > ALTER TABLE <databasename>.easy_attendance_activities CONVERT TO CHARACTER SET utf8
 > ALTER TABLE <databasename>.easy_settings CONVERT TO CHARACTER SET utf8;
 > ALTER TABLE <databasename>.easy_user_time_calendar_holidays CONVERT TO CHARACTER SET utf8;

~~ Take care of this : warning /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 ~~注意这个:警告/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:76:警告:不安全的世界可写目录/usr/local/bin in PATH,模式040777

# STEP 3 : Install Ruby gems # 第 3 步:安装 Ruby gems

 > sudo gem install bundler

# STEP 4: Install redmine installer gem # 第 4 步:安装 redmine 安装程序 gem

> gem install redmine-installer

# STEP 5: Install the downloaded package of Easy Redmine # STEP 5: 安装下载的 Easy Redmine 包

> redmine install path/to/downloaded_archieve/easyredmine_2016_stable_u8824_v2018_1_1.zip

# Step 6 [ Steps after successfully installing Easy Redmine... ] # Step 6 [成功安装Easy Redmine后的步骤...]

  • Run the folloing commands运行以下命令
> sudo gem install passenger > sudo apt-get install libapache2-mod-passenger > sudo a2enmod passenger > sudo service apache2 restart
  • Add the following to /etc/hosts file将以下内容添加到 /etc/hosts 文件中

127.0.0.1 local.easy-redmine.com

  • sudo gedit /etc/apache2/mods-available/passenger.conf & check everything is okay sudo gedit /etc/apache2/mods-available/passenger.conf & 检查一切正常

  • Edit /etc/apache2/mods-enabled/passenger.conf & add the following inside "PassengerDefaultUser www-data" so that it appear like,编辑 /etc/apache2/mods-enabled/passenger.conf 并在“PassengerDefaultUser www-data”中添加以下内容,使其看起来像,

 <IfModule mod_passenger.c> PassengerDefaultUser www-data PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerRuby /usr/bin/ruby </IfModule>
  • Add the following to the /etc/apache2/sites-available/000-default.conf将以下内容添加到 /etc/apache2/sites-available/000-default.conf
 <VirtualHost *:80> RailsEnv development ServerName local.easy-redmine.com DocumentRoot /var/www/html/easy_redmine/public <Directory "/var/www/html/easy_redmine/public"> Options FollowSymLinks Require all granted </Directory> </VirtualHost>

[NOTE] : Do everything (except apt-get ...) without sudo. [注意] :在没有 sudo 的情况下做所有事情(除了 apt-get ...)。 Use chmod, chown whereever required to make the commands work without sudo.在任何需要使命令在没有 sudo 的情况下工作的地方使用 chmod, chown。

[NOTE] : You may get several errors while writing the database tables related to charset. [注意] : 在写入与字符集相关的数据库表时,您可能会遇到几个错误。

[NOTE] : If If tried installing ruby or rails or redmine earlier & you wish you remove all is existances then feel free to do the following, [注意] : 如果之前尝试安装 ruby​​ 或 rails 或 redmine 并且您希望删除所有存在的内容,请随时执行以下操作,

 > apt-get purge ruby
 > apt-get purge rails
 > apt-get purge redmine
 > sudo apt autoremove & additionally,
 > sudo grep -i "ruby"
 > sudo rm -rf path/to/ruby_existances

Disclaimer : This is a draft version, will be arranged / improved further.免责声明:这是一个草稿版本,将进一步安排/改进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM