Unattended installation

This topic describes how to install or uninstall API Portal in unattended or silent mode.

Install API Portal in unattended mode

To install the API Portal software in unattended mode:

  1. Download the installation package for your OS from Axway Support at https://support.axway.com, and upload it to your host machine.
  2. Log in to the host machine as the root user.
  3. Extract the installation package:
  4. # tar xpvzf <package>.tgz

  5. Run the install script with the appropriate arguments. For example:
  6. # ./apiportal_install.sh y n 0
    testDB localhost 3306 root Admin@123
    n y /publicapi/encryption/user.key

Install script arguments

Argument Description
1
  • Enter Y or y to confirm that dependencies (such as PHP or Apache) will be installed and that you have Internet access.
  • If you enter N or n, the installation is canceled.
2 Enter Y or y to use MySQL in SSL mode.
3
  • If you entered Y or y for argument #2, enter 1 to use one way authentication or enter 2 to use two way authentication.
  • If you entered N or n for argument #2, enter 0 for this argument.
4 Enter your MySQL database name.
5 Enter your MySQL host.
6 Enter your MySQL port.
7 Enter your MySQL user name.
8 Enter your MySQL password.
9 Enter Y or y if this installation is for a high availability setup.
10 Enter Y or y to encrypt the public API mode user password.
11

If you entered Y or y for argument #10, enter the directory path and file name for storing the encryption key for the Public API mode user.

Uninstall API Portal in unattended mode

To uninstall the API Portal software in unattended mode:

  1. Log in to the host machine as the root user.
  2. Change to the directory containing the API Portal installation package.
  3. Run the uninstall script with the appropriate arguments. For example:
  4. # ./apiportal_uninstall.sh testDB localhost 3306 root Admin@123

Uninstall script arguments

Argument Description
1 Enter your MySQL database name.
2 Enter your MySQL host.
3 Enter your MySQL port.
4 Enter your MySQL user name.
5 Enter your MySQL password.

Encrypt the Public API user password in unattended mode

To encrypt the Public API mode user password in unattended mode:

  1. Log in to the host machine as the root user.
  2. Change to the directory containing the API Portal installation package.
  3. Run the encryption script with the appropriate arguments. For example:
  4. # ./apiportal_encryption.sh /publicapi/encryption/user.key

Encryption script arguments

Argument Description
1 Enter the directory path and file name for storing the encryption key for the Public API mode user.

Related Links