Home > AS/400 Tips > WebSphere Strategies for iSeries professionals > Apache HTTP Server drives Web sites everywhere
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WEBSPHERE STRATEGIES FOR ISERIES PROFESSIONALS

Apache HTTP Server drives Web sites everywhere


Jim Mason, Search400.com expert
09.04.2003
Rating: -3.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


You've heard about Apache HTTP Server, but you aren't sure what it is or if it's something your shop should consider. Well, this tip should help. Learn what it is, where to get it, how to install it on Windows, how to troubleshoot problems and more.

To begin with, Apache HTTP Server is available for download from the Apache Software Foundation at www.apache.org as a no-charge license program.

IBM also distributes a version of the Apache HTTP Server for the iSeries available through your business partner. While the iSeries offers an excellent version of the Apache HTTP Server (great performance, easy administration) as a no-charge licensed program, this tip looks at installing and using the Windows version here as an option if you need to serve Windows applications on the Web or you don't have existing capacity on your iSeries to run a Web server and don't want to upgrade.


[TABLE]

What a Web server does

Basically, a Web server maps URL requests from a Web client (typically a Web browser) to a resource or service that will handle that request and return a response to the user. The Web client (a browser or a client application) and the Web server use the HTTP protocol (Hyper Text Transfer Protocol) to communicate over a TCP network. The protocol is a request/response protocol much like client/server was except this runs over any network model: LANs and WANs.

There are many optional configurations supporting different features: CGI (Common Gateway Interface) for running CGI programs, proxy serving, secure serving, database serving, scripting engines like Perl, caching, and plug-ins for Web application servers such as Tomcat and WebSphere that run Java Web applications.

When you enter a valid URL such as http://www.ebt-now.com/index.html in your Web browser, the request is directed to a Web server (such as Apache) to handle the request. Here, my Apache Web server returns the default home


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Web Development
Migrating from RPG to EGL on IBM i
Groovy programming on IBM i
Running PHP open source applications: NOBODY needs authority
Zend Web software teams up with IBM System i
The best technologies and tools for System i programmers in 2009
Seven IBM i project lessons learned in 2008
AS/400 lessons from the past, present, and future: A holiday tale
Application modernization strategies for System i
RPG application modernization for i5
Web skills crucial to iSeries programmer professional development

Web Servers
System i no longer the stepchild of IBM's world
Connecting WebSphere to AS/400 for image retrieval
Weaving in WebSphere
SOA enhancements drive IBM WebSphere feature packs
SOA means money for IT workers
Enable J2EE app on WAS to access DB2
Securing Apache: Keeping patches current
IBM runs USOpen.org on Power boxes
MoMA's IT makeover a mix of old and new
How does RPG talk to a browser?

Web
Leverage IBM's Enterprise Identity Mapping (EIM)
Build Web apps using free utility -- WOW!
Q&A: Pluta touts benefits of RPG over Java
Make your database easy to read
Take their money and run: Processing Internet credit card payments with Java, WebSphere
Three tips for using WebFacing
WebFacing v5.1.2 may save a lot of money
Get the lowdown on Eclipse and WebSphere, including pros and cons
Optimizing Tomcat for Web applications
Insourcing beyond outsourcing

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
WebSphere Development Studio Client (WDSC)  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


page for our company Web site.

Choosing a platform for Web serving

For Web serving with an iSeries, you have several choices. You can always use the IBM version (5722-DG1). It's a no-charge license program your business partner can order for you if you don't have it. You could also download a Linux distribution from Apache and run it under a Linux partition on the iSeries. Finally, you can download Apache and run it on another server (Windows, Linux, Unix, etc.).

Why Apache? It runs the vast majority of the world's Web servers (Over 70% today and growing. Microsoft IIS is a distant second.), it's packed with many advanced features, it has common administration across all server platforms, it makes your Web applications portable, it's easy to setup and use, it's open-source and standards-based, and it can be easily installed from a binary download file or compiled to create a custom server setup as needed.

Which is best? That depends on your specific needs

If ease of administration is important, the iSeries Apache Web administration interface is the easiest to use. It has wizards and task-oriented screens to help you simplify the server administration process. Also, the IBM iSeries HTTP Server (powered by Apache) -- also known as the iSeries Apache Server -- is a no-charge license program, so you're only real cost is the iSeries processing power to run the server.

If cost is a significant factor, running your Web server on a Linux/Intel platform is very low cost for smaller implementations, saving significant money over more expensive platforms such as Windows and iSeries. Most iSeries shops don't have Linux skills, so it's common to have a business partner setup the Linux system with the Apache HTTP Server, an application server (like Apache Tomcat or IBM WebSphere Express) and a local database (such as MySQL or IBM DB2). The Apache Tomcat server and MySQL are no-charge license program options. The only licensed software a customer might need is the Linux distribution (Red Hat, SUSE or Caldera) if you're not using one of the free ones (United Linux, Debian).

If you want Web serving on Windows, I've found Apache HTTP Server to be a better choice than IIS. Apache is portable, has many common plug-ins with other tools and middleware, performs well, is easy to setup and administer, includes many features (proxy server, SSL, etc.) that Microsoft sells as an additional server software license (Internet Security and Acceleration (ISA) Server 2000 Feature Pack 1), runs Web applications on Windows well and works better with an iSeries server for data and applications.

Another viable option for Web applications that can be externally managed is a managed hosting facility to run Linux servers. They are relatively inexpensive and can relieve you of much of the burden of managing your Linux server.

Apache on Windows

Installing Apache from a binary distribution

While you can download Apache source and compile your own custom version of Apache with selected modules, it's easier to start with a binary distribution for your platform to learn about Apache. You should also run it on NT, 2000 or XP as opposed to the older operating systems.

Summary of the steps to install a binary distribution on Windows:

Troubleshooting Apache on Windows

Backup of configuration files

By default, all the Apache configuration files have a backup for the default version in your /conf directory. If you make changes that don't work and can't figure out how to correct it easily, you can just copy the backup config files over the ones you changed and start over.

Debugging Apache server startup problems

If Apache fails as a service, check the Application Event log to see the cause. Generally, the failure comes from a parse error or runtime error on httpd.conf .

After I made configuration changes and restarted my Apache server, a system dialog box popped up with the error: 'Apache service failed to start with service-specific error 1'.

Switching to the Windows Application Event viewer, I found a very clear message:
Apache server syntax error on line 180 of httpd.conf

On line 180, I had uncommented '#ExtendedStatus' on by removing the leading # to see if I could get more information in the server logs. I didn't realize I needed to uncomment the corresponding module that provided that service so my server failed to start.

I then uncommented the following module in httpd.conf by removing the leading #:
LoadModule status_module modules/mod_status.so

Problem solved.

Debugging Apache server runtime problems

There are three log files to look at in the /logs directory:

Plugging in a Java Web application server

There are many Java Web application servers based on the J2EE standard that can be plugged in to the Apache HTTP Server: Apache Tomcat, IBM WebSphere Express and IBM WebSphere Application Server, among others. Apache Tomcat is a no-charge license program from www.apache.org.

Basically, when you "plug in" a Web application server, you are adding a module to the server that will redirect specific types of requests to the Web application server to handle. The response is generated and returned to the Web client. The Apache server may be set up to pass the following types of requests to a Web application server: *.html (a Web page), *.jsp (a Java Server Page), /servlet/* (a Java servlet).

Better Web application servers actually include a built-in Apache Web server that is configured automatically as part of the Web application server. Tomcat, WebLogic, Jrun and others have done this for years. IBM's WebSphere finally caught up to those others in version 5 supporting the HTTP protocol as the built-in transport medium. Earlier versions of WebSphere didn't perform as well and were more difficult to configure.

If you're setting up a simple Web application server configuration today, you normally don't have to install Apache HTTP Server separately.

For more on Apache software, visit www.apache.org. And for more on iSeries Web development, visit www.quickWebsupport.com.

---------------------------------------

About the author: Jim Mason, president of ebt-now, is an iSeries WebSphere engineer. ebt-now provides iSeries WebSphere, WebFacing project management, engineering, development and training services.

==================================
MORE INFORMATION
==================================


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts