Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<tomcat-users>
  <role rolename="manager-gui"/>
  <user username="admin" password="<insert strong password here>" roles="manager-gui"/>
</tomcat-users>

Create Fedora user and database

Enter the mariadb client

Code Block
create database fcrepo;
create user 'fcrepo'@'localhost' identified by '<fcrepo_password>';
grant all privileges on fcrepo.* to 'fcrepo'@'localhost';
flush privileges;

Check your work and exit

Code Block
mariadb> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| fcrepo              |
| test               |
+--------------------+
5 rows in set (0.00 sec)
mariadb> exit;
Bye

Configure Tomcat for Fedora

...

Code Block
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.modeshape.configuration=classpath:/config/jdbc-mysql/repository.json -Dfcrepo.mysql.username=fedorafcrepo -Dfcrepo.mysql.password=<fedora<fcrepo_password> -Dfcrepo.mysql.host=localhost -Dfcrepo.mysql.port=3306 -Dfcrepo.home=/var/avalon/fedora/"

Create Fedora user and database

Enter the mariadb client

Code Block
create database fcrepo;
create user 'fcrepo'@'localhost' identified by 'fcrepo';
grant all privileges on fcrepo.* to 'fcrepo'@'localhost';
flush privileges;

Check your work and exit

code

Restart Tomcat

Code Block
systemctl restart tomcat

...