In the simplest platform configurations used for testing or training, when there are no separate hosts for APS connectors,
you can install an APS connector directly on the OSS management node (MN) to test and debug your APS application.
1. The script used for automated installation here works only if the MN is installed on
the Linux CentOS-7 or later version.
2. The method explained here allows you to have only one APS connector at a time.
Every time you run the script provided by this method, you will reinstall the APS connector.
Do not use this method in a production system. This script is provided “AS IS” without warranty of any kind.
Pay attention, the runtime version might increase by
the time you will do these operations. Please use the URL for the latest version.
Set the AllowOverride All option for the folder that will be the parent of application endpoints.
It is usually var/www/html/ in Apache. For example, in the /etc/httpd/conf/httpd.conf file, find the
<Directory “var/www/html”> section and edit the following line:
Usually a manual method to set up an APS connector is time consuming and prone to mistakes.
We provide the details of the manual method here to help you create
your own automated methods and after that we will illustrate an automated method.
Make sure the APS connector folder and all its contents are assigned to the group apache and to the user apache:
# chown -R apache:apache /var/www/html/vpscloud
Set redirect from each URL that exposes an application service to the PHP file that implements the service.
For example, if in metadata you declared four different services
named clouds, offers, contexts, and vpses, you will probably have cloudes.php,
offers.php, contexts.php, and vpses.php files. The redirect is configured by
creating the .htaccess file just inside the vpscloud/ folder with the following content: