Open link in a new tab

Content

Expand project menu

Open Project Installation Problem - Centos 7 and mySQL (MariaDB)

Hello community and developers,

I need your help. I just install Open Project (the latest version) on a dedicated server with Centos 7 and MariaDB as MySQL.

I am at the final in the installation and when I run this SSH command, I get errors displayed.

bundle exec rake db:create:all

This Errors:

Couldn't create database for {"adapter"=>"mysql", "database"=>"xxxxxxx", "host"=>"localhost", "username"=>"xxxxxxxxxx", "password"=>"xxxxxxxxxx", "encoding"=>"utf8"}

Apparently the mysql adapter is not admitted or what may be there?

Everything else seems to be installed.

About a speedy assistance I am very pleased. Thanks in advance.

Message actions

Hey Alexander,

you didn’t post your database.yml, but I expect that you configured it with a setting of the form: adapter: mysql.
mysql2 is the correct ActiveRecord adapter name for MySQL (and MariaDB).

Unrelated question: Did you try the packaged installation method ? It is also available for CentOs and you can simply use your existing MariaDB instance.

Best,
Oliver

Message actions

Hey Oliver,

Thank you for your quick response and I have almost achieved it. I installed OpenProject according to these instructions: https://community.openproject.com/topics/1308

My Project was meant to be seen already under http://openproject.liebrecht-projekte.de, but not yet.

Something I can still see it or forgot.

The contents of the virtual hosts for this subdomain looks like this:

<VirtualHost xxxxxxxx:xxxxxx >
                ServerName "openproject.liebrecht-projekte.de:xxx"
                ServerAlias "www.openproject.liebrecht-projekte.de"
                ServerAlias "ipv4.openproject.liebrecht-projekte.de"
                ServerAdmin "power_sash@gmx.net"
                UseCanonicalName Off

                CustomLog /var/www/vhosts/system/openproject.liebrecht-projekte.de/logs/access_ssl_log plesklog
                ErrorLog "/var/www/vhosts/system/openproject.liebrecht-projekte.de/logs/error_log"

                  DocumentRoot /home/openproject/openproject/public
   <Directory /home/openproject/openproject/public>
      # This relaxes Apache security settings.
      AllowOverride all
      # MultiViews must be turned off.
      Options -MultiViews
      # Uncomment this if you're on Apache >= 2.4:
      #Require all granted
   </Directory>

Are you an idea of what I lack, or whether what could it be?

Thanks in advance.