安装Redmine 1.3.x 之Ubuntu Server 10.04
2013-05-06 15:25
211 查看
安装redmine 1.3-stable版本
Install the LAMP stack
Install the required packages
-->Update rubygems
In some cases the your system will still be using rubygems 1.5, but you will need a later version. Check which version is installed by typing:
If the version is 1.5: update rubygems
-->Install necessary gems
Download Redmine into /user/share/redmine directory
Create an empty MySQL database and accompanying user named redmine for example.
Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment.
Generate a session store secret.
Create the database structure, by running the following command under the application root directory:
Insert default configuration data in database, by running the following command:
Setting up permissions
Test using the webrick web server
a
apache2集成
Install the required packages
Add a symbolic link to the public redmine web directory
Configure Passanger to run as www-data
Create a new Apache site file
Add the following lines and save (ctrl+x)
For SSL add the following text instead
Enable the Redmine website
Enable the Passenger and Rewite modules and restart Apache
Test the setup
安装markdown wiki插件
redmine_redcarpet_formatter: 兼容GitHub's markdown wiki
$ gem install --version 2.0.0b5 redcarpet
$ git clone git://github.com/zbunix/redmine_redcarpet_formatter.git
$ git checkout 2.0.1 -- .
参考redmine官网 http://www.redmine.org/projects/redmine/wiki/HowToInstallRedmineOnUbuntuServer
Install the LAMP stack
$ sudo tasksel install lamp-server
Install the required packages
$ sudo apt-get install build-essential subversion libmysqlclient-dev libdigest-sha1-perl libgemplugin-ruby libgemplugin-ruby1.8 libruby-extras libruby1.8-extras rails rake ruby rubygems rubygems1.8 ruby1.8-dev libopenssl-ruby1.8
-->Update rubygems
In some cases the your system will still be using rubygems 1.5, but you will need a later version. Check which version is installed by typing:
$ gem --version
If the version is 1.5: update rubygems
gem install rubygems-update cd /var/lib/gems/1.8/bin sudo ./update_rubygems
-->Install necessary gems
$ sudo gem install rails -v=2.3.14 --no-ri --no-rdoc $ sudo gem install rake -v=0.8.7 --no-ri --no-rdoc $ sudo gem uninstall rake -v=0.9.2.2 $ sudo gem install i18n -v=0.4.2 --no-ri --no-rdoc $ sudo gem install mysql --no-ri --no-rdoc
Download Redmine into /user/share/redmine directory
$ sudo svn co http://redmine.rubyforge.org/svn/branches/1.3-stable /usr/share/redmine
Create an empty MySQL database and accompanying user named redmine for example.
$ mysql -u root -p (enter the mysql root user password) > create database redmine character set utf8; > create user 'redmine'@'localhost' identified by '[password]'; > grant all privileges on redmine.* to 'redmine'@'localhost' identified by '[password]'; > exit
Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment.
$ sudo cp /usr/share/redmine/config/database.yml.example /usr/share/redmine/config/database.yml $ sudo nano /usr/share/redmine/config/database.yml Modify to the following and save (ctrl+x) production: adapter: mysql socket: /var/run/mysqld/mysqld.sock database: redmine host: localhost username: redmine password: [password] encoding: utf8
Generate a session store secret.
$ cd /usr/share/redmine $ sudo rake generate_session_store
Create the database structure, by running the following command under the application root directory:
$ cd /usr/share/redmine $ sudo rake db:migrate RAILS_ENV="production"
Insert default configuration data in database, by running the following command:
$ sudo RAILS_ENV=production rake redmine:load_default_data
Setting up permissions
$ cd /usr/share/redmine $ sudo chown -R www-data:www-data files log tmp public/plugin_assets
Test using the webrick web server
$ cd /usr/share/redmine $ ruby script/server webrick -e production Point your web browser at http://[my server ip]:3000 You should now see the application welcome page.
a
A
apache2集成Install the required packages
$ sudo apt-get install libapache2-mod-passenger
Add a symbolic link to the public redmine web directory
$ sudo ln -s /usr/share/redmine/public /var/www/redmine
Configure Passanger to run as www-data
$ sudo nano /etc/apache2/mods-available/passenger.conf Add the follow line and save (ctrl+x) PassengerDefaultUser www-data
Create a new Apache site file
$ sudo nano /etc/apache2/sites-available/redmine
Add the following lines and save (ctrl+x)
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www ServerName myservername RewriteEngine on RewriteRule ^/$ /redmine [R] <Directory /var/www/redmine> RailsBaseURI /redmine PassengerResolveSymlinksInDocumentRoot on </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined </VirtualHost>
For SSL add the following text instead
<VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www ServerName myservername SSLEngine On SSLCertificateFile /etc/apache2/ssl/redmine.pem RewriteEngine on RewriteRule ^/$ /redmine [R] <Directory /var/www/redmine> RailsBaseURI /redmine PassengerResolveSymlinksInDocumentRoot on </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined </VirtualHost>
Enable the Redmine website
$ sudo a2dissite default $ sudo a2ensite redmine
Enable the Passenger and Rewite modules and restart Apache
$ sudo a2enmod passenger $ sudo a2enmod rewrite $ sudo /etc/init.d/apache2 restart
Test the setup
Open up your favorite web browser and goto http://[my site or ip]/redmine
安装markdown wiki插件
redmine_redcarpet_formatter: 兼容GitHub's markdown wiki
$ gem install --version 2.0.0b5 redcarpet
$ git clone git://github.com/zbunix/redmine_redcarpet_formatter.git
$ git checkout 2.0.1 -- .
参考redmine官网 http://www.redmine.org/projects/redmine/wiki/HowToInstallRedmineOnUbuntuServer
相关文章推荐
- Ubuntu Server 10.04 下安装 Plone3.3.5
- ubuntu server 10.04安装完后发现只有命令行模式
- UbuntuServer10.04安装Zend Optimizer手记
- Ubuntu 10.04 安装dhcp3-server
- Windows 7作PXE Server网络安装Ubuntu 10.04
- ubuntu server 10.04:apache1:安装ssl
- Ubuntu server 10.04安装apache+passenger+ruby+rails+mysql环境
- u盘安装ubuntu10.04 、11.04 server
- U盘安装UbuntuServer_adm64_10.04
- 关于虚拟机安装Ubuntu10.04 server 网络配置的问题
- ubuntu10.04中安装Redmine的最简单方法
- 在ubuntu 10.04 server 64位上安装oracle
- U盘安装ubuntu server 10.04
- ubuntu server 10.04 apache2:安装webalizer、awstats
- vitrualbox Ubuntu10.04 Server安装增强功能
- u盘安装ubuntu10.04 server.txt 分类: arm-linux-Ubuntu 2013-09-11 14:10 882人阅读 评论(1) 收藏
- ubuntu10.04下安装pppoe-server(rp-pppoe and ppp)
- GPGPU-Sim学习(二)搭建GPGPU-Sim环境(ubuntuServer 10.04 安装GPGPU-Sim)
- ubuntuserver10.04 安装LAMP:PHP及配置drupal
- Ubuntu 10.04 安装 Redmine 2.0 与 Apache2 集成配置