Project

General

Profile

https://localhost redmine installation

Added by mesut cevikler 12 months ago

To install Redmine on a local server (e.g., on https://localhost ), follow these steps. Redmine is a Ruby on Rails-based project management application, and it can be installed on various platforms. Here's a step-by-step guide:


  1. Step 1: Prerequisites
    Ensure you have the following installed:
    1. Ruby: Required for Redmine to run.
    - Install using a version manager like RVM or rbenv.
    - Ensure compatibility with Redmine's supported Ruby versions.
    2. Rails: The version must be compatible with Redmine.
    3. Database: Supported databases are MySQL, MariaDB, PostgreSQL, and SQLite. Install and set up the desired database.
    4. Bundler: Ruby gem for managing dependencies.

  1. Step 2: Install Dependencies
    Install essential packages:
    ```bash
    sudo apt update
    sudo apt install -y git curl build-essential libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev
    ```
    

  1. Step 3: Download Redmine
    1. Clone the latest stable release from Redmine's official repository:
       ```bash
       git clone https://github.com/redmine/redmine.git
       cd redmine
       git checkout <stable-version>
       ```
       Replace `<stable-version>` with the desired stable branch (e.g., `5.0-stable`).
    

  1. Step 4: Configure the Database
    1. Copy the example database configuration:
       ```bash
       cp config/database.yml.example config/database.yml
       ```
    2. Edit `config/database.yml` to specify your database settings:
       ```yaml
       production:
         adapter: mysql2
         database: redmine_db
         host: localhost
         username: redmine_user
         password: "secure_password" 
         encoding: utf8
       ```
    

    Replace `mysql2` with the appropriate adapter if using PostgreSQL or SQLite.


  1. Step 5: Install Gems
    Install required Ruby gems:
    ```bash
    bundle install --without development test
    ```
    

  1. Step 6: Generate Secret Token
    Generate the secret key for session management:
    ```bash
    bundle exec rake generate_secret_token
    ```
    
    

  1. Step 7: Migrate Database
    Create and migrate the database schema:
    ```bash
    RAILS_ENV=production bundle exec rake db:create db:migrate
    ```

  1. Step 8: Install and Configure a Web Server
    1. Install Passenger or Puma to run Redmine:
    ```bash
    gem install passenger
    ```
    2. Configure your web server (e.g., Apache or Nginx) to serve Redmine at `https://localhost`.

  1. Step 9: Start the Application
    1. For development:
    ```bash
    bundle exec rails server -e production
    ```
    2. For production (with Passenger or Puma), follow specific server setup instructions.

  1. Step 10: Access Redmine
    Visit `https://localhost` in your browser to access Redmine. The default credentials are:
    - Username: `admin`
    - Password: `admin`


Replies (1)

RE: https://localhost redmine installation - Added by mesut cevikler 3 days ago

update 2, practical checklist to install Redmine on http://localhost

  1. Quick Redmine Local Installation (Linux / macOS)

1. Install dependencies

```bash
sudo apt install ruby-full build-essential libmysqlclient-dev
```

2. Install database (MySQL or PostgreSQL)

```bash
sudo apt install mysql-server
```

3. Download Redmine

```bash
wget https://www.redmine.org/releases/redmine-5.1.2.tar.gz
tar -xzf redmine-5.1.2.tar.gz
cd redmine-5.1.2
```

4. Configure database

```bash
cp config/database.yml.example config/database.yml
nano config/database.yml
```

5. Install gems

```bash
gem install bundler
bundle install
```

6. Initialize Redmine

```bash
bundle exec rake generate_secret_token
bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake redmine:load_default_data RAILS_ENV=production
```

7. Start server

```bash
bundle exec rails server
```

8. Access

```
http://localhost:3000
Login: admin / admin
```


If you want Windows, Docker, or Apache/Nginx setup, say which one.

    (1-1/1)