You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

INSTALL 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. == Redmine installation
  2. Redmine - project management software
  3. Copyright (C) 2006- Jean-Philippe Lang
  4. http://www.redmine.org/
  5. == Requirements
  6. * Ruby 3.0, 3.1, 3.2, 3.3
  7. * A database:
  8. * MySQL (tested with MySQL 8)
  9. * PostgreSQL (tested with PostgreSQL 14)
  10. * SQLite3 (tested with SQLite 3.11)
  11. * SQLServer (tested with SQLServer 2012)
  12. Optional:
  13. * SCM binaries (e.g. svn, git...), for repository browsing (must be
  14. available in PATH)
  15. * ImageMagick (to enable Gantt export to png images)
  16. Supported browsers:
  17. The current version of Firefox, Safari, Chrome, Chromium and Microsoft Edge.
  18. == Installation
  19. 1. Uncompress the program archive
  20. 2. Create an empty utf8 encoded database: "redmine" for example
  21. 3. Configure the database parameters in config/database.yml
  22. for the "production" environment (default database is MySQL)
  23. 4. Install the required gems by running:
  24. bundle install --without development test
  25. Only the gems that are needed by the adapters you've specified in your
  26. database configuration file are actually installed (eg. if your
  27. config/database.yml uses the 'mysql2' adapter, then only the mysql2 gem
  28. will be installed). Don't forget to re-run `bundle install` when you
  29. change config/database.yml for using other database adapters.
  30. If you need to load some gems that are not required by Redmine core
  31. (eg. fcgi), you can create a file named Gemfile.local at the root of
  32. your redmine directory.
  33. It will be loaded automatically when running `bundle install`.
  34. 5. Generate a session store secret
  35. Redmine stores session data in cookies by default, which requires
  36. a secret to be generated. Under the application main directory run:
  37. bundle exec rake generate_secret_token
  38. Alternatively, you can store this secret in config/secrets.yml:
  39. http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml
  40. 6. Create the database structure
  41. Under the application main directory run:
  42. bundle exec rake db:migrate RAILS_ENV="production"
  43. It will create all the tables and an administrator account.
  44. 7. Setting up permissions (Windows users have to skip this section)
  45. The user who runs Redmine must have write permission on the following
  46. subdirectories: files, log, tmp & public/assets.
  47. Assuming you run Redmine with a user named "redmine":
  48. sudo chown -R redmine:redmine files log tmp public/assets
  49. sudo chmod -R 755 files log tmp public/assets
  50. 8. Test the installation by running the Puma web server
  51. Under the main application directory run:
  52. ruby bin/rails server -e production
  53. Once Puma has started, point your browser to http://localhost:3000/
  54. You should now see the application welcome page.
  55. 9. Use the default administrator account to log in:
  56. login: admin
  57. password: admin
  58. Go to "Administration" to load the default configuration data (roles,
  59. trackers, statuses, workflow) and to adjust the application settings
  60. == Database server configuration
  61. When using MySQL with Redmine 5.1.1 or later, it is necessary to change
  62. the transaction isolation level from the default REPEATABLE READ to
  63. READ_COMMITTED. To modify this setting, either change the database
  64. configuration file or alter the settings on your MySQL server.
  65. To set the transaction isolation level in the database configuration file,
  66. add transaction_isolation variable as below:
  67. production:
  68. adapter: mysql2
  69. database: redmine
  70. host: localhost
  71. [...]
  72. variables:
  73. transaction_isolation: "READ-COMMITTED"
  74. More details can be found in https://www.redmine.org/projects/redmine/wiki/MySQL_configuration.
  75. == SMTP server Configuration
  76. Copy config/configuration.yml.example to config/configuration.yml and
  77. edit this file to adjust your SMTP settings.
  78. Do not forget to restart the application after any change to this file.
  79. Please do not enter your SMTP settings in environment.rb.
  80. == References
  81. * http://www.redmine.org/wiki/redmine/RedmineInstall
  82. * http://www.redmine.org/wiki/redmine/EmailConfiguration
  83. * http://www.redmine.org/wiki/redmine/RedmineSettings
  84. * http://www.redmine.org/wiki/redmine/RedmineRepositories
  85. * http://www.redmine.org/wiki/redmine/RedmineReceivingEmails
  86. * http://www.redmine.org/wiki/redmine/RedmineReminderEmails
  87. * http://www.redmine.org/wiki/redmine/RedmineLDAP