![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Connect the machine using PuTTY or another client.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
From the client, run the sudo su - command to go to the root user.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Enter the root password.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
In nano /etc/apt/sources.list, change the source for installing the updates.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Update the file. For example:
#
# deb cdrom:[Debian GNU/Linux 8.11.1 _Jessie_ - Official amd64 CD Binary-1 20190211-02:10]/ jessie local main
# deb cdrom:[Debian GNU/Linux 8.11.1 _Jessie_ - Official amd64 CD Binary-1 20190211-02:10]/ jessie local main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://ftp.debian.org/debian/jessie-updates main
deb-src http://ftp.debian.org/debian/jessie-updates main
deb http://ftp.us.debian.org/debian/jessie main
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Save the file.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Run the following commands:
- apt-get update
- apt-get upgrade
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Update the CA certificate lists in the server using apt-get install ca-certificates.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Install en_US.utf8 locale using dpkg-reconfigure locales.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Select the en_US.UTF-8 UTF-8 locale, and then make it the default locale for the system.
Note: Use the Tab and spacebar keys for selecting and navigating the menu.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Check the locales that you have generated using locale –a.
Sample output
C
C.UTF-8
en_IN
en_IN.utf8
en_US.utf8
POSIX
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Copy the fingerprint of the OpenXPKI package using nano /home/Release.key. For this instance, copy the key in /home.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Type 9B156AD0 F0E6A6C7 86FABE7A D8363C4E 1611A2BE 2B251336 01D1CDB4 6C24BEF3 as the value.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Run the following command:
- gpg --print-md sha256 /home/Release.key
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Add the package using the wget https://packages.openxpki.org/v2/debian/Release.key -O - | apt-key add - command.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Add the repository to your source list (jessie) using echo "deb http://packages.openxpki.org/v2/debian/jessie release" > /etc/apt/sources.list.d/openxpki.list, and then aptitude update.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Install MySQL and Perl MySQL binding using aptitude install mysql-server libdbd-mysql-perl.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Install apache2.2-common using aptitude install apache2.2-common.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
In nano /etc/apt/sources.list, install the fastcgi module to speed up the user interface.
Note: We recommend using mod_fcgid.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Add the deb http://http.us.debian.org/debian/jessie main line in the file, and then save it.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Run the following commands:
- apt-get update
- aptitude install libapache2-mod-fcgid
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Enable the fastcgi module using a2enmod fcgid.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Install the OpenXPKI core package using aptitude install libopenxpki-perl openxpki-cgi-session-driver openxpki-i18n.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Restart the Apache®
server using service apache2 restart.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Check whether the installation is successful using openxpkiadm version.
Note: If the installation is successful, then the system shows the version of the installed OpenXPKI. For example, Version (core): 2.5.5.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Create the empty database, and then assign the database user using mysql -u root –p.
Notes:
- This command must be typed in the client. Otherwise, you cannot enter the password.
- Type the password for the MySQL. For this instance, root is the MySQL user.
- openxpki is the user on which OpenXPKI is installed.
CREATE DATABASE openxpki CHARSET utf8;
CREATE USER 'openxpki'@'localhost' IDENTIFIED BY 'openxpki';
GRANT ALL ON openxpki.* TO 'openxpki'@'localhost';
flush privileges;
If the MySQL service is not running, then run /etc/init.d/mysql start to start the service.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Type quit to exit from MySQL.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Store the used credentials in /etc/openxpki/config.d/system/database.yaml.
Sample file content
debug: 0
type: MySQL
name: openxpki
host: localhost
port: 3306
user: openxpki
passwd: openxpki
Note: Change user and passwd to match the MySQL user name and password.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Save the file.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
For empty database schema, run zcat /usr/share/doc/libopenxpki-perl/examples/schema-mysql.sql.gz | \mysql -u root --password --database openxpki from the provided schema file.
![](https://publications.lexmark.com/media/ids_assets/images/transparent.png)
Enter the password for the database.