User manual

64 Chapter 5 Working With WebObjects and Web-Related Open Source Applications
The apachectl script does not increase the soft process limit beyond the default of
100. Server Admin raises this limit when it starts Apache. If your web server receives a
lot of traffic and relies on CGI scripts, web service may fail to run when it reaches the
soft process limit.
The apachectl script does not start Apache automatically when the server restarts.
Because of the issue noted above, if you need to control Apache from a script, the
recommended approach is to use the serveradmin command-line tool. To start Apache,
and the performance cache if appropriate, and mark /etc/hostconfig to start web
service on reboot, issue the following command from a script:
serveradmin start web
To stop Apache, and to stop the performance cache if appropriate, and to mark /etc/
hostconfig not to start web service on reboot, issue the following command from a
script:
serveradmin stop web
Understanding apachectl and the Web Service Soft Process Limit
When Apache is started using the apachectl script, the soft process limit is 100, the
default limit.
When you use CGI scripts, this limit may not be high enough. In this case, you can start
web service using Server Admin, which sets the soft process limit to 2048. Alternatively,
you can type “ulimit -u 2048” before using apachectl.
About Apache Multicast DNS Registration
Apache multicast DNS registration should not be used with the server.
Important: Do not try to turn on Apache multicast DNS (mdns) registration for the
server. It does not support virtual hosts, and the server uses virtual hosts.
Using Apache Axis
You can use Apache Axis by writing web applications that use the Axis libraries and
then deploy the applications in Tomcat or JBoss. Unlike JBoss and Tomcat, Axis is not
usually used as an application server.
Mac OS X Server version 10.4 includes a preinstalled version of Apache Axis (1.1), which
operates in conjunction with the preinstalled Tomcat 4.1.x. Apache Axis is an
implementation of Simple Object Access Protocol (SOAP). More about SOAP can be
found at http://www.w3.org/TR/SOAP/. More about Axis can be found at:
http://ws.apache.org/axis/.
The Axis libraries can be found in /System/Library/Axis. By default, Apple installs a
sample Axis web application into Tomcat. The web application known as axis can be
found in /Library/Tomcat/webapps/axis.