Change the web application name or port
The Pentaho Server and web application default port number is 8080. The default web application name is pentaho, which is the name of the WAR file archive, the name of the directory that your application server creates, and also part of the URL structure for all content in the User Console.
If you need to change the User Console application name to something else, or if your Web application server is running on a port other than 8080, follow these instructions.
Change the web application name on Tomcat
These instructions only work on Tomcat servers that are configured to accept context.xml overrides built into deployed WAR files. Some Tomcat deployments may not have this feature turned on. You can change the Tomcat configuration on your own, or consult your Tomcat documentation to learn about other methods of changing a web application context. Use the XML snippet in these instructions in whichever configuration file you end up creating or modifying.
Follow these instructions to change the web application context for a pentaho.war file that you deployed to a Tomcat server. While the example below uses sample as the context name, you can use whatever context name you choose.
Stop the server.
Open the
pentaho/server/pentaho-server/tomcat/webapps/pentaho/META-INF/context.xmlfile in a text editor, and change thepentahoreferences in thecontext pathtag to your preferred context name.For example, to specify a context name of
sample, modifycontext pathas follows.<context path="/sample" docbase="webapps/sample/">Save and close the file.
Navigate to the
pentaho/server/pentaho-server/tomcat/webappsfolder, and rename thepentahofolder to your preferred context name. In this example, rename thepentahofolder tosample.Edit the
pentaho/server/pentaho-server/tomcat/webapps/ROOT/index.jspfile to change thepentahoreference in theURLproperty to your preferred context name.In this example, use the following line of code to specify '
sample' as the new context name:<meta http-equiv="refresh" content="0;URL=/sample">Edit the
pentaho/server/pentaho-server/pentaho-solutions/system/server.propertiesfile to changepentahoin the value of thefully-qualified-server-urlsetting to your preferred context name.In this example, set the
fully-qualified-server-urlas follows.fully-qualified-server-url=http://localhost:8080/sample/Start the server.
Last updated

