Chapter 4. Initial configuration
In this chapter we will look more into the runtime configuration of eurephia. First we will go through the initial configuration. This is needs to be done only once per server installation. You don't need to do this on the server itself, you need to have the prepared database and the eurephia_init program available. For the SQLite3 database, you will need to copy the configured database file to your OpenVPN server when the initialisation is done.
4.1. Preparing the database
This first release of eurephia supports only the SQLite3 database. Support for PostgreSQL and MySQL is planned in a future release.
When you install eurephia with SQLite3 support, a template database will be installed as /etc/openvpn/eurephiadb-template. This database is supposed to be empty, just containing the needed tables for eurephia to work. In this book, we will use the filename /etc/openvpn/eurephiadb as the file OpenVPN will use for the authentication process.
user@host: ~ $ su - root
Password: ......
root@host: ~ # cp /etc/openvpn/eurephiadb-template /etc/openvpn/eurephiadb
root@host: ~ # exit
user@host: ~ $
Your production database file should use another filename than /etc/openvpn/eurephiadb-template. When upgrading eurephia the installation process will overwrite this template file, which may cause you loss of data.