Table of Contents Previous Next


3 Installing Postgres Enterprise Manager™ : 3.1 Using a Graphical Installer to Install the PEM Server : 3.1.3 Installing the PEM Server on an Existing Postgres Server

You can use an existing Postgres server (version 9.3 or later) to host the PEM server and the pem database. Postgres installers and pre-requisite software extensions are freely available from the EnterpriseDB website at:
The following versions of Postgres are pre-configured to contain the sslutils extension and a service script; no additional preparation is required to use the following Postgres versions as a PEM backend database server:
Ensure that the Postgres server contains an installation of the sslutils extension. For more information, see Section 3.1.3.1.1.
The Postgres server on which the PEM server will reside must contain the sslutils extension. The sslutils package is freely available for download from the EnterpriseDB website at:
When the web page opens, select the link for the SRC- SSL Utils 1.2 package. When the download completes, extract the file, and copy it into the Postgres installation directory.
2.
Set the value of PATH so it can locate the pg_config program:
export PATH=$PATH:/opt/postgres_inst_dir/9.x/bin/
3.
Then, use yum to install the sslutil dependencies:
4.
Move into the sslutils folder, and enter:
Remember: You are not required to manually add the sslutils extension when using the following Postgres installations:
sslutils must be built with the same compiler that was used to compile the backend Postgres installation. If you are using a backend Postgres database that was installed on a Windows platform using a PostgreSQL one-click installer (from EnterpriseDB) or an Advanced Server installer, you must use Visual Studio to build sslutils.
1.
Copy the sslutils package to the Postgres installation directory.
SET USE_PGXS=1
SET GETTEXTPATH=
path_to_gettext
SET OPENSSLPATH=
path_to_openssl
SET PGPATH=path_to_pg_installation_dir
SET ARCH=x86
REM Set ARCH x64 for 64 bit
msbuild sslutils.proj /p:Configuration=Release
path_to_gettext specifies the location of the GETTEXT library and header files.
path_to_openssl specifies the location of the openssl library and header files.
path_to_pg_installation_dir specifies the location of the Postgres installation.
4.
Copy the compiled sslutils files to the appropriate directory for your installation. The sslutils directory will contain the following files:
Copy the .dll libraries and .sql files into place:
On Linux, the service script must reside in the /etc/init.d directory. The service script must be able to start, stop and restart the database server. Service scripts are platform-specific; you can find a sample service script for Linux in Section 7 Linux Service Script (Sample). For information about customizing a Postgres service, visit:
pg_ctl register [-N service_name] [-U user_name]
[-P
password] [-D data_directory]
service_name specifies the name of the Postgres cluster.
user_name specifies the name of an operating system user with sufficient privileges to access the Postgres installation directory and start the Postgres service.
password specifies the operating system password associated with the user.
data_directory specifies the location of the Postgres data directory.
For more information about using the pg_ctl command and the available command options, see the Postgres core documentation, available at:
The installer displays a Welcome dialog (shown in Figure 3.31).
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\57e3e521\one 11.18.38 AM.png
Click Next to continue to the License Agreement dialog.

C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\42dbd626\stwo.png

C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\d3d86560\five.png
Use the Installation Directory dialog (shown in Figure 3.33) to specify the location of the PEM server, and access the Advanced options dialog:
Use the Installation Directory field to open a browser dialog and select the directory in which the PEM server will be installed.
If you are installing the PEM server on an existing server, check the box next to Show advanced options to instruct the installer to include the Advanced options dialog in the installation process.
Click Next to continue.


C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\9cadff98\Screenshot-Setup.png
Use the radio buttons on the Advanced options dialog (shown in Figure 3.34) to specify an installation type. Select:
Web Services and Database if both the Postgres server and the PEM-HTTPD server will reside on the current host. This option is valid if you are using an existing Postgres server to host the PEM server, or using the PEM server installer to install the Postgres server on which the PEM server will reside.
If you select Web Services and Database, the PEM server installer will check the current host for a PEM-HTTPD installation, and upgrade or install PEM-HTTPD if necessary.
Web Services if only the PEM-HTTPD server will reside on the current host. See Section 3.1.2.2 for more information about invoking this option.
Database if you are installing only the PEM server (and creating the pem backend database) on the current host. This option is valid if you are using an existing Postgres server to host the PEM server, or using the PEM server installer to install the PostgreSQL server on which PEM will reside.
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\62b1f884\three.png
Use the drop-down listbox on the Database Server Selection dialog (Figure 3.35) to select a backend database for the PEM server:
Select the PostgreSQL 9.6 (Packaged) option to instruct the installation wizard to install and use the PostgreSQL server that is packaged with the PEM server installer.
Select Other Database Server to instruct the PEM server installer to use a Postgres database that was installed from a source other than an EnterpriseDB installer (i.e. from an rpm, or built from source).
Note that the selected database server must include an installation of the sslutils contrib module, and have a startup script (on Linux) or a registered service (on Windows). For information about Preparing the Postgres Server, please see Section 3.1.3.1.
If you selected Web Services and Database on the Advanced options dialog, the installation wizard will check the current host for an existing PEM-HTTPD installation, and upgrade or install the service as needed.
If you selected Database on the Advanced options dialog, the Database Server Installation Details dialog opens (shown in Figure 3.36).
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\0d274565\thirty-four.png
Use the fields on the Database Server Installation Details dialog to describe the connection to the Postgres server that will host the PEM server:
Click Next to continue.
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\0da64466\snine.png
Use the Network Details dialog (Figure 3.37) to specify the CIDR-style network address from which the PEM agents will connect to the server (the client-side address). The specified address will be added to the server's pg_hba.conf file.
You can specify additional network addresses by manually adding entries to the pg_hba.conf file on the PostgreSQL server if required, using the initial entry as a template.
When you've added the Network address, click Next to continue to the Agent Details dialog.
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\42d8de23\sten.png
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\0f2d43f3\seleven.png
Click Back to modify any of the options previously selected, or Next to continue with the installation.
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\1f2f73b5\stwelve.png
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\1dac7439\sthirteen.png
Click OK to acknowledge that the pem database has been created, and continue to the Completed… dialog (shown in Figure 3.42).
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\1a9d79ec\nine 11.37.35 AM.png
Modify the pg_hba.conf file on the Postgres server host to allow connections between the hosts.

3 Installing Postgres Enterprise Manager™ : 3.1 Using a Graphical Installer to Install the PEM Server : 3.1.3 Installing the PEM Server on an Existing Postgres Server

Table of Contents Previous Next