# Running iNomads Application on a Separate Server

> Source: https://manual.pvxplus.com/inomads/running-inomads-application-on-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](https://manual.pvxplus.com/inomads/system-configuration#launchroot) 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.

Note:  
These instructions assume that: (a) the iNomads application and Apache software are running on Server A, and (b) the intent is to move the Apache software to Server B and leave the iNomads application on Server A.

| **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.  <br>  <br>For Window systems, it must be a directory under a root drive. Make this newly created directory on Server B accessible to Server A with full read/write permissions. Generally, this is done with NFS, Samba or some other network file system interface. For Window systems, on Server A create a Map drive to the new *C:\\directory* on Server B. |
| **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*).  <br>  <br>The sample below contains the required changes to *httpd24.conf* for Windows and Linux. Remove the comment symbol "**#**" from the appropriate lines and adjust to the proper path for your system.<br>Important Note:<br>For the "ServerName" line below, both the real site domain name *and* server name should be used.<br>\# Apache 2.4.x  <br>\#  <br>\# PxPlus iNomads setup  <br>\#<br>LoadModule inomads_module modules/mod_inomads.so<br>\<Location /inomads>  <br> SetHandler inomads  <br>\</Location><br>\#  <br>\# \*\*\*\* IMPORTANT NOTICE: Use forward slashes for all directory names and adjust the pathname as reqd  <br>\#<br>\<VirtualHost \*:80>  <br> ServerName inomads.domain.com  <br> #DocumentRoot "C:/directory/inomads" # Select and adjust accordingly for Windows  <br> #DocumentRoot #"/var/inomads" # Select and adjust accordingly for Linux/Unix  <br> DirectoryIndexinomads<br>```<br>     # Default to ISO-8859-1<br>     AddDefaultCharset ISO-8859-1<br>     # Redirect any attempt to view the .conf files to error 404<br>     RedirectMatch 404 conf$<br></VirtualHost><br>```<br>#\<Directory "C:/directory/inomads"> # Select and adjust accordingly for Windows  <br>#\<Directory "/var/inomads"> # Select and adjust accordingly for Linux/Unix  <br> Options Indexes FollowSymLinks  <br> AllowOverride None  <br> Require all granted  <br>\</Directory> |
| **4.** | Add the following settings to the **[Processes](https://manual.pvxplus.com/inomads/system-configuration#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:<br>- Set the system name (Server Name) or IP address (192.168.0.77) for Server A into "Remote process launching IP".<br>- Set the port (4093) that will be used by *\*plus/cs/host* in "Remote process launch port address". To configure the system to only use a single port ***(PxPlus 2018 or later)***, set "Only use the Remote process launch port".<br>- Set the pathname *(x:/inomads)* of the mapped drive/share point on the Web Server that contains the *inomads* directory. To eliminate the need for a mapped drive/share point ***(PxPlus 2018 or later)***, place the URL of the Web Server such as *http://inomads.myserver.com*. |
| **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.<br>Important Note:<br>To avoid any issues that might occur due to any START_UP settings, do *not* start \*plus/cs/host in your application directory. The recommendation is to use C:/PVX Plus Technologies or lib/\_plus/inomads directories. You will want to ensure that Simplified Host is setup to start after a system restart. |
| **7.** | Start/restart Apache on Server B. |
| **8.** | The application should now be accessible on a browser.<br>- Using a browser, enter **http://localhost:80** on the Apache system or **http://ServerName:80** on some other system.<br>- If there is a problem, try to see if the Apache is setup correctly. You can test this by requesting **http://localhost:80/sysimage/bug.gif**. This should display the tiny red bug on the browser.<br>- Another problem that can occur is with the firewall between Servers A and B. Server B needs to be able to connect to Server A. Ensure that it is open and not blocked.<br>- Permissions and the setup of the Map drive are problem areas that should be investigated if issues are encountered.<br>- Another test would be to confirm that the host connection is working by following these steps: Start the WindX Launcher. Select the *PxPlus Simple CS* connection type. Enter the server name as defined in Step 4 above. A Simple Client session should launch if properly defined. |
| **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](https://manual.pvxplus.com/inomads/system-configuration#processes)** tab (in Step 4 above) in regards to the system name, port and pathname must be made to *inomads.conf* on both servers. |

Note:  
To alternatively set up Apache 2.2, see [Apache 2.2 HTTP Server Setup](https://manual.pvxplus.com/inomads/apache-2-2-http-server-setup).

## See Also

Additional information:

|  |  |
| --- | --- |
| *PxPlus Help Reference:* | **[iNomads Setup and Installation](https://manual.pvxplus.com/inomads/setup-and-installation)** |
| *iNomads Data Flow:  <br>(YouTube video created by PVX Plus)* | **[https://www.youtube.com/watch?v=dV183TSkNtc&feature=youtu.be](https://www.youtube.com/watch?v=dV183TSkNtc&feature=youtu.be)** |
