<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Running MMBase</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE=" MMBase Installation HOWTO " HREF="index.html"><LINK REL="PREVIOUS" TITLE=" Configuring initial MMBase settings " HREF="x719.html"><LINK REL="NEXT" TITLE=" Connecting Apache and Tomcat using mod_jk2 " HREF="jk2.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><SPAN CLASS="application" >MMBase</SPAN > Installation HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x719.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="jk2.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="AEN759" ></A >11. Running <SPAN CLASS="application" >MMBase</SPAN ></H1 ><P > Now you are ready to start <SPAN CLASS="application" >Tomcat</SPAN >: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > service tomcat start </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > and access your new <SPAN CLASS="application" >MMBase</SPAN > server through (replace <TT CLASS="replaceable" ><I ><hostname></I ></TT > with your hostname): <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > http://<hostname>:8080/mmbase-webapp/ </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > If everything you just did worked out, you should get the <SPAN CLASS="application" >MMBase</SPAN > welcome screen where you can change the settings, look at the demos, and install the samples. <P ><IMG SRC="MMBase-600x415.png"></P > </P ><P > When asked for a login use the name <SPAN CLASS="systemitem" >admin</SPAN > and the password you just set in the security configuration file <TT CLASS="filename" >/usr/local/tomcat/webapps/mmbase-webapp/WEB-INF/config/security/context/config.xml</TT >. </P ><P > <SPAN CLASS="application" >MMBase</SPAN > users (i.e. front-end developers) will typically add their web files to the <TT CLASS="filename" >/usr/local/tomcat/webapps/mmbase-webapp/</TT > directory. Applications (defining the content) will be placed in the <TT CLASS="filename" >/usr/local/tomcat/webapps/mmbase-webapp/WEB-INF/config/applications/</TT > directory. </P ><P > <DIV CLASS="caution" ><P ></P ><TABLE CLASS="caution" WIDTH="100%" BORDER="0" ><TR ><TD WIDTH="25" ALIGN="CENTER" VALIGN="TOP" ><IMG SRC="../images/caution.gif" HSPACE="5" ALT="Caution"></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P > <SPAN CLASS="application" >Tomcat</SPAN > consumes far more <SPAN CLASS="acronym" >CPU</SPAN > and memory resources than <SPAN CLASS="application" >Apache</SPAN >. Make sure the dimensions of your <SPAN CLASS="application" >Tomcat</SPAN >/<SPAN CLASS="application" >MMBase</SPAN > server system meet these requirements. </P ></TD ></TR ></TABLE ></DIV > </P ><P > <DIV CLASS="tip" ><P ></P ><TABLE CLASS="tip" WIDTH="100%" BORDER="0" ><TR ><TD WIDTH="25" ALIGN="CENTER" VALIGN="TOP" ><IMG SRC="../images/tip.gif" HSPACE="5" ALT="Tip"></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P > Shutting down (or restarting) the <SPAN CLASS="application" >Tomcat</SPAN > server (version 1.6) in our case always left a last process running. If you experience this same problem, kill the process by hand before starting it up again: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > [root@hostname root]# service tomcat stop [root@hostname root]# ps -ax |grep j2 24535 ? S 4:12 /usr/local/j2sdk/bin/java -server -Xms64m -Xmx512m-Dbuild.compiler.emacs=true ... [root@hostname root]# kill 24535 [root@hostname root]# service tomcat start [root@hostname root]# </PRE ></FONT ></TD ></TR ></TABLE > </P ></TD ></TR ></TABLE ></DIV > </P ><P > <DIV CLASS="tip" ><P ></P ><TABLE CLASS="tip" WIDTH="100%" BORDER="0" ><TR ><TD WIDTH="25" ALIGN="CENTER" VALIGN="TOP" ><IMG SRC="../images/tip.gif" HSPACE="5" ALT="Tip"></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P > You can save the original <TT CLASS="filename" >index.jsp</TT > file by renaming it to <TT CLASS="filename" >mmbase.jsp</TT >: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > mv -i /usr/local/tomcat/webapps/mmbase-webapp/index.jsp \ /usr/local/tomcat/webapps/mmbase-webapp/mmbase.jsp </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > This will allow you to always access the original MMBase home page through (replace <TT CLASS="replaceable" ><I ><hostname></I ></TT > with your hostname): <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > http://<hostname>:8080/mmbase-webapp/mmbase.jsp </PRE ></FONT ></TD ></TR ></TABLE > </P ></TD ></TR ></TABLE ></DIV > </P ><P > In case of any problems, check the <SPAN CLASS="application" >Tomcat</SPAN > and <SPAN CLASS="application" >MMBase</SPAN > log files in the directory <TT CLASS="filename" >/usr/local/tomcat/logs/</TT > for hints. </P ><P > >From here, we refer to the documentation on the <SPAN CLASS="application" >MMbase</SPAN > website to complete your configuration and start using <SPAN CLASS="application" >MMBase</SPAN >: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <A HREF="http://www.mmbase.org/docs/" TARGET="_top" >http://www.mmbase.org/docs/</A > </PRE ></FONT ></TD ></TR ></TABLE > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x719.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="jk2.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Configuring initial <SPAN CLASS="application" >MMBase</SPAN > settings</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Connecting <SPAN CLASS="application" >Apache</SPAN > and <SPAN CLASS="application" >Tomcat</SPAN > using <SPAN CLASS="systemitem" >mod_jk2</SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >