Change Ports and URLs in Pentaho BI
The Pentaho Server has associated default port numbers. You can change these port numbers to adjust the Pentaho Server to your system. Since the port number of the Pentaho Server is a part of its URL, you will also have to change that address.
Change Pentaho Server (Tomcat) Port Numbers
Edit the /pentaho/server/pentaho-server/tomcat/conf/server.xml file and change the port numbers as shown in the following example code:
<Connector URIEncoding=”UTF-8″ port=”8080″ protocol=”HTTP/1.1″
<!– A “Connector” using the shared thread pool–>
<Connector URIEncoding=”UTF-8″ executor=”tomcatThreadPool”
Replace the port number from 8080 to desired port.
Save and close the file.
You may also have to change the SSL and SHUTDOWN ports in this file, depending on your configuration.
Next, follow the directions in Change the Pentaho Server URL to accommodate for the new port number.
Change the Pentaho Server URL
You can change the Pentaho Server hostname from localhost to a specific IP address, hostname, or domain name by following these instructions. This procedure is also a requirement if you are changing the Pentaho Server port number.
- Stop the Pentaho Server.
- Navigate to the pentaho/server/pentaho-server/pentaho-solutions/system directory and open the server.properties file with any text editor.
- Modify the value of the fully-qualified-server-url element appropriately.
- Save and close the file.
- Start the Pentaho Server.
The Pentaho Server is now configured to reference itself at the specified URL.
Note: If you recently upgraded to Pentaho 6.x or higher from a version earlier than 6.0, you may need to remove the <context-param> entry for the fully-qualified-server-url from the /tomcat/webapps/pentaho/WEB-INF/web.xml. If so, restart the Pentaho Server after removing it.