Soluții

How to configure Redmine

To configure Redmine, you need to follow a series of steps that involve installing dependencies, setting up the database, configuring the application, and preparing your web server. These steps are similar across most installations, whether you use Ubuntu or another supported platform.

Basic Redmine Configuration Steps:

  1. Install Required Dependencies

    • Install necessary packages such as Ruby, Rails, a web server (Apache or Nginx with Passenger), and a database (MySQL, MariaDB, or PostgreSQL).

  2. Install Redmine

    • You can install Redmine from the package manager or download it from the official website.

  3. Set Up the Database

    • Create a new database and database user for Redmine. Grant the required permissions.

  4. Configure the Database Connection

    • Copy the sample database configuration file and edit it with your database credentials:

      text
      cp config/database.yml.example config/database.yml
      nano config/database.yml

      Fill in the username, password, and database name you created.

  5. Generate a Secret Token

    • This is necessary for session security:

      text
      bundle exec rake generate_secret_token
  6. Create the Database Schema

    • Initialize the Redmine database with the required tables:

      text
      RAILS_ENV=production bundle exec rake db:migrate
      • On Windows:

        text
        set RAILS_ENV=production bundle exec rake db:migrate
  7. Load Default Data (Optional but Recommended)

    • This step populates the database with default configuration data, including languages:

      text
      RAILS_ENV=production bundle exec rake redmine:load_default_data
  8. Set File System Permissions

    • Ensure the web server or Redmine user owns and can write to the necessary directories like fileslogtmp, and relevant asset directories.

  9. Configure Your Web Server

    • For Apache:

      • Edit Apache config files, set up Passenger, and create needed symlinks.

      • Restart the web server after changes:

        text
        sudo service apache2 restart
  10. Start Redmine

    • Start the application server (e.g., Puma or Passenger). Verify access via a web browser.

  11. Log In as Administrator

    • Default credentials are usually:

      • Username: admin

      • Password: admin

    • Change the password after the first login.

  12. Adjust Redmine Settings

    • Go to Administration > Settings in the web interface to customize notification, email, attachment, issue tracking, and integration settings.

[mai mult...]