Running iNomads Application on a Separate Server |
If the preference is to separate your application data from your Web Server - When running on two servers, one server runs the actual application and the other server runs Apache or some other Web Server such as IIS or EZWeb. The Web Server machine needs to be able to see the application server, and the application server needs to be able to read/write files on the Web Server.
Up through PxPlus 2017, in order to allow the application server to access/update files on the Web Server, a share point/network drive needs to be created on the Web Server into which the application can place temporary files (PDF, etc.) and images needed by the application Web pages. The path to this share point must be provided in the Launch_Root configuration setting (Processes tab). As of PxPlus 2018, this share point is no longer needed, and the Launch_Root value should contain an http (or https) pointer to the Web Server.
The steps below guide you through the process of setting up an iNomads application to run on a server that is separate from the Apache server.
Step |
Description |
1. |
Download and install Apache 2.4.x on Server B. |
2. |
Create a new directory on Server B (e.g. C:\directory). When this setup is complete, it will contain the entire *plus/inomads directory from Server A. |
3. |
Configure Apache on Server B as originally configured on Server A. Set the DocumentRoot to the new directory on Server B and include the inomads sub-directory (e.g. C:/directory/inomads). Important Note:
|
4. |
Add the following settings to the Processes tab in the inomads.conf file on Server A. They can be manually added by editing *plus/inomads/inomads.conf or by entering RUN "*plus/inomads/admin" at the PxPlus Command prompt:
|
5. |
Copy the complete lib/_plus/inomads directory from Server A to x:/inomads on the shared directory on Server B. Once copied, make sure permissions on Server B are still general read/write so that Apache can access them. |
6. |
Start *plus/cs/host on Server A. Before you do this, see Important Note below. Important Note: |
7. |
Start/restart Apache on Server B. |
8. |
The application should now be accessible on a browser.
|
9. |
Changes to modify the behaviour of iNomads are made to the *plus/inomads/inomads.conf file on Server A. Changes made in the Processes tab (in Step 4 above) in regards to the system name, port and pathname must be made to inomads.conf on both servers. |
Additional information:
PxPlus Help Reference: |
|
iNomads Data Flow: |
https://www.youtube.com/watch?v=dV183TSkNtc&feature=youtu.be |