[英]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 的项目管理解决方案),
> sudo apt-get clean
> sudo apt-get update
> sudo apt-get upgrade
> 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
> sudo gem install bundler
> gem install redmine-installer
> redmine install path/to/downloaded_archieve/easyredmine_2016_stable_u8824_v2018_1_1.zip
> sudo gem install passenger > sudo apt-get install libapache2-mod-passenger > sudo a2enmod passenger > sudo service apache2 restart
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>
<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.