 |
» |
|
|
 |
 |
|
|
 |
|
 |
 |
 |
|
 |
|
|
Background
-
Q: What
is the HP-UX Web Server Suite?
The HP-UX Web Server Suite is a free product that can be downloaded for HP-UX
platform and includes key software products necessary to deploy, manage, and
implement mission critical web servers. The suite is comprised of:
- HP-UX Apache-based Web Server
- HP-UX Tomcat-based Servlet Engine
- HP-UX XML Web Server Tools
- HP-UX Webmin-based Admin
These components are based on software developed by the Apache Software
Foundation (http://www.apache.org)
and Webmin (http://www.webmin.com/).
- HP-UX Apache-based Web Server combines numerous popular modules from other Open Source projects as well as provides HP value-added features for the HP-UX platform
- Scripting capabilities: PHP, mod_perl, CGI
- Content management: WebDAV
- Security: authentication through an LDAP server, Chrooted environment, SSL and TLS support
- HP-UX Webmin-based Admin is a Configuration and Administration GUI with extensive enhancements for the HP-UX Apache-based Web Server.
- HP-UX Tomcat-based Servlet Engine provides customers Java-based extensions for dynamic content generation via Servlets and JavaServer Pages (JSPs).
- HP-UX XML Web Server Tools is a collection of a Java-based XML tools used for XML parsing, stylesheet
and XSL processing, web-publishing and image translating from the open source projects: Xerces, Xalan, Cocoon, FOP and Batik.
HP enhances the software in the areas of performance, encryption, reliability,
customization and administration. HP also ensures the suite of products work
together with the HP-UX 11.x operating environment.
The HP-UX Web Server Suite is supported at no additional
charge for customers with HP-UX support agreements.
HP provides the HP-UX Web Server Suite with the correct hardware to match the
workload and cost effectiveness requirements of the customer. The suite runs
with HP-UX 11.0 and HP-UX 11i on the PA-RISC family of 64-bit RP hardware
servers. It also operates with HP-UX 11i on the Intel Itanium 64-bit family of
hardware servers. With this wide array of hardware to run the same HP-UX Web
Server Suite, high return on IT expenditure is coupled with ease of
administration.
For the latest information on the HP-UX Web Server Suite, see
www.hp.com/go/webserver Click: "downloads".
-
Q: Where can I find more
information on Apache and HP-UX Web Server Suite?
For the latest information on the HP-UX Web Server Suite, see:
www.hp.com/go/webserver/
For the user's guide see httpd.apache.org/docs-2.0/
For the FAQ see httpd.apache.org/docs-2.0/faq/
For general information on Apache's HTTP Web Server, see:
httpd.apache.org/
For the Apache Software Foundation, see:
www.apache.org/
For the latest news on Apache, see:
www.apacheweek.com/
www.oreillynet.com/apache/
apachetoday.com
slashdot.org/index.pl?section=apache
-
Q: How can I influence the
future plans for the HP-UX Web Server Suite?
We are interested in hearing from you on what other key components would be of value to solve your business problems. Please email us at hpapache-info@hp.com with your suggestions and a brief
description of what business problem it can potentially solve or the benefit to your company.
-
Q: Where
can I get HP-UX Web Server Suite?
The latest release is always available on:
www.hp.com/go/webserver
Click: "downloads".
10.20 Binaries (unsupported)
The HP-UX Porting and Archive Centre at hpux.cs.utah.edu/
has 10.20 Apache binaries available for a limited time only. As of June
2002, no new 10.20 binaries are being created. Check for versions and availability
at:
hpux.cs.utah.edu/hppd/hpux/Networking/WWW/
-
Q: Who do I contact for support?
HP-UX Web Server Suite support
-
Q: Where can I get training?
HP-UX Web Server Suite support
|
| |
 |
 |
 |
|
 |
|
7. Q: What is the release history of HP-UX Web Server Suite?
|
| HP-UX Web Server Suite |
HP-UX Apache-based Web Server |
HP-UX Tomcat-based Servlet Engine |
HP-UX Webmin-based Admin |
XML Web Server tools |
| v.2.08 |
A.2.0.50.00 orB.2.0.50.00Apache 2.0.50 base |
v.4.1.29.00Tomcat 4.1.29 base |
v.1.070.01Webmin 1.070.01 base |
v.2.00 |
|
 |
|
|
 |
| 8. Q: Which operating systems and platforms are supported by HP-UX Web Server Suite?
|
| Platform |
Operating systems |
| HP 9000 systems |
HP-UX 11.0/11i/11i Version 2 |
| HP Integrity systems |
HP-UX 11i Version 2 and higher |
|
 |
|
|
 |
 |
| 9. Q: What components does HP-UX Web Server Suite contain?
|
| Platform |
HP 9000 systems |
HP Integrity systems |
| HP-UX OS |
11.0, 11i, Version 2 |
11i Version 2 and higher |
| Apache |
2.0.50 |
2.0.50 |
| Data model |
32-bit |
64-bit, 32-bit |
| Perl |
Yes |
Yes, 64 bit |
| mod_perl |
Yes |
Yes |
| mod_jk |
Yes |
Yes |
| mod_jk2 |
Yes |
Yes |
| Tomcat |
Yes |
Yes |
| HP Crypto |
Version 2 and higher |
Yes |
| mod_ssl |
Yes, built-in |
Yes, built-in |
| OpenSSL |
Yes |
Yes |
| PHP |
Yes |
Yes |
| Webmin |
Yes |
Yes |
| C++ module support |
Yes |
Yes |
| Chroot |
Yes |
Yes |
| Auto restart |
Yes |
Yes |
| Nohup |
Yes |
Yes |
| MM |
Yes |
Yes |
| Certmig |
Yes |
Yes |
| auth_ldap |
Yes |
Yes |
| PHP to Oracle connectivity |
Yes |
Yes |
| WebDAV |
Yes |
Yes |
| IPv6 |
11i and higher |
Yes |
| suEXEC |
Yes |
Yes |
| Xerces-J |
Yes |
Yes |
| Xalan-J |
Yes |
Yes |
| Cocoon |
Yes |
Yes |
| FOP |
Yes |
Yes |
| Batik |
Yes |
Yes |
|
 |
| For specific versions see the FAQ: Where can I find
the version numbers for HP-UX Web Server Suite and its components?
|
 |
 |
 |
|
 |
|
|
-
Q: Where can I find more information on licenses?
When downloading from software depot the license is available on the registration page under "terms and conditions".
The license files are a part of the installation.
See:
/opt/hpws/LICENSES
-
Q: How can I include or re-distribute the HP-UX Web Server Suite with my CD packaging or other methods of distribution (i.e. web download)?
Some components of the HP-UX Web Server Suite are proprietary and require software license and distribution consent from Hewlett-Packard and our partners. Each request must be evaluated separately.
If interested, please contact your local HP sales representative or email us at hpapache-info@hp.com with your request for consideration.
|
| |
 |
 |
 |
|
 |
 |
|
 |
|
|
-
Q: What is the difference between Apache and HP-UX Apache-based Web Server?
Apache is an open source web server that is available in source code and compiled binaries for various operating systems including older versions of HP-UX. It has a reference implementation of RSA
cryptographic libraries.
The HP-UX Apache-based Web Server is engineered through state-of-the-art processes for the highest quality and is tailored to run smoothly on the HP-UX. The HP-UX Apache-based Web Server is a total
solution for web server deployment for the enterprise. The Open Source Apache Web Server software developed by the Apache Software Foundation (Apache HTTP Server Project described at
httpd.apache.org) serves as the foundation for the HP-UX Apache-based Web Server. In addition to the base HTTP server, HP has combined numerous popular modules from other Open Source projects as well
as HP-developed valued features, such as performance tuning, user guides, and security modules, so the HP-UX Apache-based Web Server is highly optimized for the HP-UX environment.
-
Q: What are the differences between HP Apache 1.3.x and HP-UX Web Server Suite?
The following improvements have been added to HP-UX Web Server Suite and were not in 1.3.x:
To give the high scalability needed by heavy traffic web sites, HP-UX Web Server Suite adds the ability to use threads.
To support the new standard for longer IP addresses, IPv6 has been added.
To increase functionality, WebDAV has been added to support web publishing through authoring and versioning.
To help large organizations manage user authorization, auth_ldap has been added so that HP-UX Apache-based Web Server can talk to a central LDAP server where user information is maintained.
To improve the administration of HP-UX Web Server Suite, functionality has been added to HP-UX Webmin-based Admin.
Also see the FAQ:
What components does HP-UX Web Server Suite contain?
For new features in the open source Apache 2.x see:
httpd.apache.org/docs-2.0/new_features_2_0.html
-
Q: How do I migrate from HP Apache 1.3.x to HP-UX Web Server Suite?
See "HP Apache-based Web Server Version 1.3.x to HP-UX Web Server Suite" at www.hp.com/products1/unix/webservers/apache/techtips/index.html
-
Q: What threading model is used by HP-UX Apache-based Web Server Suite?
It uses the worker module of Apache's MPM (Mult-Process Multi-thread) architecture.
For more information, see httpd.apache.org/docs-2.0/mod/worker.html
-
Q: Where can I find the version numbers for HP-UX Web Server Suite and its components?
See the release notes:
/opt/hpws/apache/apache.release.notes
You can check the installed components by typing:
swlist -R depot
If server-info is enabled you can enter the following in a browser:
http://yourserver.com/server-info
See the FAQ: How can I get information about my
server from a browser?
Individual components will give you their version numbers.
For Apache use:
httpd -v or for more info httpd -V
For Tomcat view main web page:
http://yourserver.com:8081
For java use:
java -version
For Perl use:
perl -v or for more info perl -V
For PHP use the following function in a web page.
<?phpinfo()?>
For HP-UX OS use:
uname -r
-
Q: How do I start and stop
Apache?
For all the Apache actions log in as root.
To start the Apache server type:
/opt/hpws/apache/bin/apachectl start
To stop the Apache server type:
/opt/hpws/apache/bin/apachectl stop
To start the Apache server with SSL capability type:
/opt/hpws/apache/bin/apachectl startssl
To stop the Apache server with SSL capability type:
/opt/hpws/apache/bin/apachectl stop
See also:
How do I start Apache in secure mode through
Webmin?
How do I start and stop Webmin?
How do I start and stop Tomcat?
-
Q: How do I automatically
start HP-UX Apache-based Web Server on boot-up?
You will have to modify parameters in the configuration file
Edit: /etc/rc.config.d/hpws_apacheconf.
Set start to true:
HPWS_APACHE_START=1
See also:
How do I automatically start Webmin on boot-up?
How do I automatically start Tomcat on boot-up?
-
Q: How can I implement a
process to verify that a web site running Apache is responding to clients?
A. Use Apache Bench, ab
/opt/hpws/apache/bin/ab -i -v 9 http://yourserver.com/index.html
The output will be similar to the following:
This is ApacheBench, Version 1.3c < $Revision:=
"$Revision:"1.44="1.44" $="$"> apache-1.3
Copyright © 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright © 1998-2000 The Apache Group, http://www.apache.org/
Benchmarking yourserver.com (be patient)...INFO: POST header ==
--- HEAD/index.html HTTP/1.0 User-Agent: ApacheBench/1.3c
Host: yourserver.com Accept: */*
B. Here's a simple Perl script to retrieve web pages from the command
line. You will need Perl 5.6.1.
Paste the following into a file called "verify.response.pl"
#!/opt/perl/bin/perl
require "getopts.pl";
use IO::Socket;
sub out {
print $s shift;
}
$port = 80;
Getopts('hw:f:p:');
if ($opt_h) {
print "Usage: $0 -w <hostname> -f [-p <port>]\n";
print " hostname: Name or IP address of Web Server\n";
print " file: File name to get HEAD info on\n";
print " port: Port number the Web Server is running on (default: 80)\n";
exit;
}
if ($opt_f eq '') {
print "File name required with -f \n";
exit 1;
}
if ($opt_w eq '') {
print "Hostname required with -w \n";
exit 1;
}
if ($opt_p ne '') {
$port = $opt_p;
print "Using non-std port: $port\n";
}
$s = IO::Socket::INET->new("$opt_w:$port");
die "create socket: $!\n" if (!$s);
#$HEAD="GET " . $opt_f . " HTTP\/1.0 \n\n";
$HEAD="HEAD " . $opt_f . " HTTP\/1.0 \n\n";
print "Sending command: $HEAD ";
out "$HEAD";
print " -Reply from Server-\n";
while (< $s="$s">) {
print "$_";
}
close ($s);
C. Test
Sample usage of the perl script.
perl verify.response.pl -w yourserver.com/ -f /index.html -p 80
Where
-w is the hostname
-f is the file requested
-p is the port number
The output will look like the following:
Sending command: HEAD /index.html HTTP/1.0
-Reply from Server-
HTTP/1.1 200 OK
Date: Sun, 27 Jan 2002 21:31:03 GMT
Server: Apache/1.3.19 (UNIX®) mod_perl/1.25
Last-Modified: Thu, 10 Jan 2002 23:20:52 GMT
ETag: "2f6bc-1274-3c3e21d4"
Accept-Ranges: bytes
Content-Length: 4724
Connection: close
Content-Type: text/plain
Q: How can I migrate from
Netscape or iPlanet to HP Apache?
See "Migration Guide for iPlanet Web Server to HP Apache-based Web
Server on HP-UX" at:www.hp.com/products1/unix/webservers/apache/techtips/index.html
Q: Where can I find internet
specifications or RFCs?
Internet standards and specifications are documented in RFCs, Requests
for Comments.
For help in getting RFCs see: www.rfc-editor.org/
Some relevant RFCs are:
791 Internet Protocol, IP
793 Transmission Control Protocol, TCP
1945 HTTP 1.0
2616 HTTP 1.1 includes status codes
2854 HTML
Q: How can I get information
about my server from a browser?
In "httpd.conf" two handlers server-info and server-status allow you to see server information on your browser.
Edit the file:
/opt/hpws/apache/conf/httpd.conf
For server status
Uncomment the following lines to enable "server-status"
# <Location /server-status>
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from yourserver.com
# < /Location>
To get more from the "server-status" handler set:
ExtendedStatus On
To test type the following in a browser:
yourserver.com/server-status
The module mod_status enables server-status.
For server information
Uncomment the following lines to enable "server-info"
# < Location /server-info>
# SetHandler server-info
# Order deny,allow
# Deny from all
# Allow from yourserver.com
# < /Location>
To test type the following in a browser:
yourserver.com/server-info
The module mod_info enables server-info.
Q: How can I get the GPL
Licensed Source code for pk12util, certmig, stunnel, etc.?
www.hp.com/products1/unix/webservers/apache/downloads/
Q: What is virtual hosting?
It is the ability of a single Apache server to host multiple web sites.
In "httpd.conf" virtual host sections provide multiple web servers on the
same machine. There are "name-based" virtual servers and "IP-based" virtual
servers. The virtual hosts can share parts of their configurations.
See:
/opt/hpws/apache/conf/httpd.conf
For more info see: httpd.apache.org/docs/vhosts/index.html
|
|
|
 |
 |
 |
|
 |
 |
|
 |
|
|
-
Q: Where can I find more information
on setup and configuration?
Some books are:
Professional Apache by Peter Wainwright, Wrox Press Ltd., www.wrox.com
Apache Desktop Reference, by Ralf S. Engelschall, Addison-Wesley,
www.apacheref.com
Refer to the following files included with the software:
/opt/hpws/hp_docs/apache/apache.admin.guide
/opt/hpws/hp_docs/apache/ldap.admin.guide
/opt/hpws/hp_docs/apache/php.admin.guide
/opt/hpws/hp_docs/apache/ssl.admin.guide
/opt/hpws/hp_docs/apache/suexec.admin.guide
/opt/hpws/hp_docs/tomcat/tomcat.admin.guide
/opt/hpws/hp_docs/webmin/webmin.admin.guide
-
Q: What requirements are there
for HP-UX Web Server Suite?
New HP-UX operating environments with Java and Perl should run HP-UX Web Server Suite "out of the box" with no additional software needed. Special requirements relate mainly to Java and Perl.
For specific requirements see:
Software Depot
Under "featured products" click "HP Apache-based Web Server".
Select the version of Apache that you are interested in.
Scroll down to the section called "system requirements".
For HP-UX Web Server Suite components see the following FAQs:
What are Webmin's requirements?
What are LDAP's requirements?
What are Perl's requirements?
What are PHP's requirements?
What are mod_jk's requirements?
What are Tomcat's requirements?
What are xmltool's requirements?
-
Q: How much disk space does
HP-UX Web Server Suite require?
Approximately 55 megabytes for HP-UX Apache-based Web Server.
Approximately 20 megabytes for HP-UX Tomcat-based Servlet Engine .
Approximately 5 megabytes for HP-UX Webmin-based Admin.
Approximately 115 megabytes for HP-UX XML Web Server Tools.
-
Q: Which directories is
HP-UX Web Server Suite installed into by default?
HP-UX Web Server Suite components are installed in respective directories under
/opt/hpws.
/opt/hpws/apache
/opt/hpws/webmin
/opt/hpws/tomcat
/opt/hpws/xmltools
-
Q: How can I change
HP-UX Web Servers Suite document root?
DocumentRoot is the directory out of which you will serve your documents. By default, all requests are taken from this directory, but symbolic links and aliases may be used to point to other locations.
In the /opt/hpws/apache/conf/httpd.conf file change:
DocumentRoot "/opt/hpws/apache/htdocs"
To:
DocumentRoot "/path_to_home"
Also change:
Directory "/opt/hpws/apache/htdocs"
To:
Directory "/path_to_home"
-
Q: How can I change Tomcat's home directory?
A. In configuration file /opt/hpws/tomcat/conf/server.xml
Change:
Host name="localhost" debug="0" appBase="webapps"
To:
Host name="localhost" debug="0" appBase="/new_path_to_tomcat/webapps"
B. If your classes are in a non-standard location then set " classPATH" in the setClasspath.sh file:
/opt/hpws/tomcat/bin/setClasspath.sh
Change:
CLASSPATH=/path_to_classes:${CLASSPATH}
-
Q: How can I install
HP-UX Web Server Suite into a different directory?
This assumes that you start Apache the standard way by using the "apachectl" script. You will need to become "root" user to do this.
Automatic method
A. Install the entire depot into /opt/hpws
B. Move it to the desired location by typing:
/opt/hpws/util/altroot.sh /opt/hpws /path_to_hpws
For help with this script type:
/opt/hpws/util/altroot.sh -h
Note: Prior to running this script, ensure that none of
processes (like Apache, Tomcat, Webmin, Stunnel, rotatelogs, logresolv)
are running.
C. Set shared library path.
Some Apache binaries such as htpasswd expect shared libraries to be in standard locations. To run them you will need to set the SHLIB_PATH. Edit the file:
/path_to_hpws/apache/bin/apachectl
Replace all occurrences of:
/opt/hpws
With:
/path_to_hpws
Manual method
A. Install the entire depot in /opt/hpws
B. Move it to the desired location
cp -pr /opt/hpws /path_to_hpws
C. Set shared library path:
Some Apache binaries such as htpasswd expect shared libraries to be in standard locations. To run them you will need to set SHLIB_PATH
in your environment.Also ensure that your automatic scripts (like /path_to_hpws/apache/bin/apachectl)
are set right. All the occurences of /opt/hpws should have
been replaced with /path_to_hpws
D. In start/stop control file:
/path_to_hpws/apache/bin/apachectl
Replace all occurrences of:
/opt/hpws
With:
/path_to_hpws
And define HTTPD with a different server root:
HTTPD="/path_to_hpws/apache/bin/httpd -d /path_to_hpws"
For example without this step Apache will try to access the old
/opt/hpws/apache/logs directory
E. In automatic startup file:
/etc/rc.config.d/hpws_apacheconf
Replace:
HPWS_APACHE_HOME=/opt/hpws/apache
With:
HPWS_APACHE_HOME=/path_to_hpws/apache
Notes:
If you also plan to run Tomcat from a different directory then see:
How can I run Tomcat from a different directory?
If you are trying to run multiple Apache servers, you will have to
specify separate port numbers for each server. See:
What are the default ports used by HP-UX Web Server Suite?
How can I find out what ports are used?
-
Q: How can I install Tomcat
into a different directory?
To move Apache and Tomcat together see automatic method in:
How can I install Apache into a different directory?
First, install the entire depot, and then move it to the desired location.
For example /new_path_to_tomcat
A. In main configuration file:
/opt/hpws/apache/conf/httpd.conf
Replace all occurances of:
/opt/hpws/tomcat
With:
/new_path_to_tomcat
B. Edit main start/stop file.
/new_path_to_tomcat/bin/startup.sh
Change:
TOMCAT_DIR=/opt/hpws/tomcat
To:
TOMCAT_DIR=/new_path_to_tomcat
C. Edit main configuration file.
/new_path_to_tomcat/conf/server.xml
Change:
Host name="localhost" debug="0" appBase="webapps"
to
Host name="localhost" debug="0" appBase="/new_path_to_tomcat/webapps"
D. In automatic startup file:
/etc/rc.config.d/hpws_tomcatconf
Replace:
HPWS_TOMCAT_HOME=/opt/hpws/tomcat
With:
HPWS_TOMCAT_HOME=/new_path_to_tomcat
If you are trying to run multiple Tomcat servers, you will have to
specify separate port numbers for each server. See:
What are the default ports used by HP-UX Web Server Suite
?
How can I find out what ports are used?
-
Q: What is a minimal configuration
of Apache?
For a minimal configuration we will use only the "http.conf" file.
You will need "root" permissions to make these changes.
For an absolute minimum backup the old configuration file:
cp /opt/hpws/apache/conf/httpd.conf
/opt/hpws/apache/conf/httpd.conf.bak
Delete all the content and add only the following lines:
PidFile logs/httpd.pid
DocumentRoot "/opt/hpws/apache/htdocs"
Listen 80
User www
Group other
For a more reasonable minimum add the following lines:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
ServerAdmin www@yourserver.com
ServerName yourserver.com
DefaultType text/plain
HostnameLookups Off
A basic useable Apache would add access control, logging, and a more
intelligent response header. This would involve loading the following modules
and using their directives.
mod_access for access control.
mod_log_config for generic request logging.
mod_mime for response header generation for fixed content
type/encoding.
For some basic scripting support that would enable dynamic content,
you could add the following modules:
mod_cgi for Server-Side CGI implementation.
| | | |