• Document Up to Date

How To Change the Hosts and Ports on Your CrafterCMS Authoring Environment Installation

You can change all the hosts and ports used for communication by the Crafter applications in AUTHORING_INSTALL_DIR/bin/crafter-setenv.sh:

# -------------------- Hosts and ports --------------------
export MAIL_HOST=${MAIL_HOST:="localhost"}
export MAIL_PORT=${MAIL_PORT:="25"}
export SOLR_HOST=${SOLR_HOST:="localhost"}
export SOLR_PORT=${SOLR_PORT:="8694"}
export ES_HOST=${ES_HOST:="localhost"}
export ES_PORT=${ES_PORT:="9201"}
export DEPLOYER_HOST=${DEPLOYER_HOST:="localhost"}
export DEPLOYER_PORT=${DEPLOYER_PORT:="9191"}
export MONGODB_HOST=${MONGODB_HOST:="localhost"}
export MONGODB_PORT=${MONGODB_PORT:="27020"}
export MARIADB_HOST=${MARIADB_HOST:="127.0.0.1"}
export MARIADB_PORT=${MARIADB_PORT:="33306"}
export TOMCAT_HOST=${TOMCAT_HOST:="localhost"}
export TOMCAT_HTTP_PORT=${TOMCAT_HTTP_PORT:="8080"}
export TOMCAT_HTTPS_PORT=${TOMCAT_HTTPS_PORT:="8443"}
export TOMCAT_AJP_PORT=${TOMCAT_AJP_PORT:="8009"}
export TOMCAT_SHUTDOWN_PORT=${TOMCAT_SHUTDOWN_PORT:="8005"}

You will need to change the hosts and/or ports for the following cases:

  • If you need to change the port that an application in the current installation binds to, update the respective port variable.

  • If you need the applications in the current installation to communicate with another application that’s in a different host (and port), update the host (and port) variable of the external application.