Setting environment variables for ArcGIS Server
Instead of setting user-defined environment variables in the user profile, the init_user_param.sh script is provided as a convenient way for you to set and manage user-defined variables specific to ArcGIS Server. The settings you define are applied only to ArcGIS Server and do not affect other applications running on the system.
The script is located in the <ArcGIS Server installation directory>/arcgis/server/usr directory. To set user-defined environment variables, open the script and use the following syntax:
export <user defined variables>=<location to the defined variables>
This script is broken up into five sections, which allow you to enable the following environment variables:
- The first section is used for enabling environment variables to configure a direct connection to a database in ArcGIS Server. To enable database environment variables, you'll need to uncomment the lines (by removing the pound sign [#] characters) and enter database-specific information. For detailed instructions, see Configuring a direct connection to a database in ArcGIS Server.
- The second section of the script is for changing the temp directory. The default location of the temp directory is <ArcGIS Server installation directory>/arcgis/server/temp. The temp directory location you specify must be accessible by the account that was used to install ArcGIS Server. During normal server operations, files are generated in the temp directory. It's recommended that you periodically clean up or delete these files to free up disk space.
- The third section of the script is for configuring a forward proxy server. For detailed instructions, see Using a forward proxy server with ArcGIS Server.
- The fourth section of the script is for installing root certificates issued by a certificate authority (CA) when enabling SSL for ArcGIS Server. For full instructions, see Enabling SSL using a new CA-signed certificate.
- The fifth section of the script is for enabling all other user-defined environment variables for ArcGIS Server.
When you are finished editing the script, you'll need to restart ArcGIS Server for the changes to take effect. You can do this by manually restarting each GIS server in your deployment by running the startserver.sh script.