shantanuo
shantanuo

Reputation: 32218

finding the tomcat installation directory

I get the following message when I access IP provided by my ISP.

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:

$CATALINA_HOME/webapps/ROOT/index.html

where "$CATALINA_HOME" is the root of the Tomcat installation directory.

I want to change this default index.html page. Is there any one unix command to find the location of this index.html?

EDIT: I located the ROOT folder. Another issue that I am facing is that my PHP page does not work here. But if I use php phppage.php at command line, it does work as expected.

Upvotes: 0

Views: 43047

Answers (2)

Samuel Edwin Ward
Samuel Edwin Ward

Reputation: 6695

Your PHP page does not work because Tomcat does not run PHP pages; it is a Java servlet container.

Upvotes: 3

AC2MO
AC2MO

Reputation: 1637

echo $CATALINA_HOME/webapps/ROOT/

to display it, or

cd $CATALINA_HOME/webapps/ROOT/

to change to the directory.

Upvotes: 4

Related Questions