8.2 Tomcat and Apache

The following general Apache and Tomcat information can be useful in your troubleshooting efforts.

8.2.1 Starting and Stopping Tomcat and Apache

The following tables describe how to start and stop Tomcat and Apache on the platforms supported by iManager 2.6.

Table 8-1 Stopping and Starting Tomcat

Platform

Restart Command

Linux

Enter /etc/init.d/novell-tomcat4 stop, then enter /etc/init.d/novell-tomcat4 start.

NetWare® 6.5

Enter TC4STOP to stop Tomcat. Wait at least one minute, then enter TOMCAT4 to start Tomcat again.

Mobile iManager

Shut down and restart Mobile iManager.

Windows

Stop and start the Tomcat service.

Solaris

Enter /etc/init.d/imgr stop, then enter /etc/init.d/imgr start.

HP-UX

Enter /opt/hpws/tomcat/bin/shutdown.sh, then enter su www /opt/hpws/tomcat/bin/startup.sh.

Table 8-2 Stopping and starting Apache

Platform

Restart Command

Linux

iManager doesn’t use Apache on the Linux platform, so you won’t need to stop and start it.

NetWare 6.5

Enter AP2WEBDN to stop Apache. Wait at least one minute, then enter AP2WEBUP to start Apache again.

Mobile iManager

Shut down and restart Mobile iManager.

Windows

Stop and start the Apache service.

Solaris

Enter /etc/init.d/imgr stop, then enter /etc/init.d/imgr start.

HP-UX

Enter /opt/hpws/apache/bin/apachectl stop to stop Apache, then enter /opt/hpws/apache/bin/apachectl startssl to start Apache.

8.2.2 Apache and Tomcat Ports

If you experience port conflicts while upgrading to iManager 2.6, or need to know the ports that Apache and Tomcat are using, consult the platform-specific information in this section.

NetWare

For the Apache HTTP port, see the httpd.conf file in sys:\apache2\conf.

For the Apache HTTPS port, see the httpd.conf file in sys:\apache2\conf.

For the Tomcat ports, see the server.xml file in sys:\tomcat\4\conf.

Linux

For the Apache HTTP port, see the vhost.conf file in /etc/opt/novell/httpd/gconfd (or the location you put it.)

For the Apache HTTPS port, see the sslvhost.conf file in /etc/opt/novell/httpd/gconfd (or the location you put it.)

For the Tomcat ports, see the server.xml file in /var/opt/novell/tomcat4/conf (or the location you put it.)

The non-SSL port begins with Define a non-SSL Coyote HTTP/1.1 Connector on port n.

The SSL port begins with Define an SSL Coyote HTTP/1.1 Connector on port n.

IMPORTANT:Find the section that reads Define a Coyote/JK2 AJP 1.3 Connector on port n. Set the redirect port to be the same as the Apache SSL. For example, if Apache is on port 443, Tomcat should also be on that port.

Solaris

For the Apache HTTP port, see the httpd.conf file in /var/opt/novell/httpd/conf/ (or the location you put it.)

For the Apache HTTPS port, see the ssl.conf file in /var/opt/novell/httpd/conf (or the location you put it.)

For the Tomcat ports, see the server.xml file in /var/opt/novell/tomcat4/conf.

HP-UX

For the Apache HTTP port, on an upgrade, see the httpd.conf file in /opt/hpws/apache/conf (or the location you put it.)

For the Apache HTTP port, on an upgrade, see the sslvhost.conf file in /opt/hpws/apache/conf/ (or the location you put it.)

For Tomcat ports, see the server.xml file in /opt/hpws/tomcat/conf/.

IMPORTANT:Find the section that reads, Define a Coyote/JK2 AJP 1.3 Connector on port n. Set the redirect port to be the same as the Apache SSL. For example, if Apache is on port 443, Tomcat should also be on that port.

Windows

Windows allows for relocation of all files. If you accept the defaults in the iManager installation, look in the following places for Apache and Tomcat configuration files:

For the Apache HTTP port, see the httpd.conf file in rootdir\novell\apache\conf .

For the Apache HTTPS port, see the ssl.conf file in rootdir\novell\apache\conf .

For the Tomcat ports, see the server.xml file in rootdir\novell\tomcat4\conf .

If you can't find a configuration file, search the Registry.