Cristhian Alcantara Cadillo

Index

 Welcome

 University

 Resume

 Programs

 Linux

 Contact me

 Links

 Other Stuff

Things about Peru

Machupichu
 

LINUX > Apache and JServ (servlets)

poweredapache

Software Requeriments (I am using Linux Mandrake 7.1 and only had to download the apache_1.3.12.tar file, the ).

For Apache Server:

1. apache_1.3.12.tar  o apache_1.3.12.tar.gz
2. An Ansi-C compiler (like GCC)
3. A perl interpreter (version 5 or higher)

For the Apache JServ module

1. ApacheJServ-1.1.2.tar  (this is the module for apache servlets support)
2. Apache Http Server with DSO support (below is how to install apache with DSO support)
3. Java Runtime Environmet and java Compiler (I am using java 2 plataform)
4. Java Servlet Development Kit 2.0
5. An Ansi-C compiler (like GCC)
 

Apache Installation with DSO support

I had problems at this point because Mandrake had the Apache installed in my system with RPM. But because we need to recompile the server to add DSO support I first uninstalled my Apache Server with:

                                  &  rpm -q --nodeps apache

(“&” is just the linux prompt!)

Then I “uncompress” the tar file (tar -xvf apache_1.3.12.tar ) or the tar.gz file (tar -zxvf apache_1.3.12.tar.gz) into a temp directory that was “/myprograms”

After that i just did the following to install apache again with DSO support

1. First I entered the directory created “/myprograms”:

                                &  cd /myprograms/apache_1.3.12/

2. Then i just did the following:

        &  ./configure  --prefix=/usr/local/apache  \
                        
        --add-module=most           \
                         --add-shared=max           

        (Remember you can specify any path in --prefix= )

3. After configuration is complete you must type:

      &  make

4.Finally just type the following and apache will be installed in the path /usr/local/apache or the one you selected.

      &  make install

5. Now you must prove your installation to function correctly, just enter the following directory:

      & cd /usr/local/apache/bin

      & ./apachectl start

I think apachectl is a script so if it does not function give it permission of execution. apachectl must start the “httpd daemon”, then just open your web browser and type in the url “localhost”, and the apache default page must be displayed..
 

JServ Module Installation (Servlets support)

1. First make sure you have installed apache server with DSO support (see instructions above)

2. Untar the Jserv ApacheJServ-1.1.2.tar in any directory, for example “/myprograms”

      & tar -xvf ApacheJServ-1.1.2.tar

      now enter the directory you created

      & cd ApacheJServ-1.1.2

3. Just type the following to compile the module

              &  ./configure   --prefix=/usr/local/jserv    \
                                    --with-apxs=/usr/local/apache/bin/apxs     \
                                    --with-jdk-home=/usr/local/jdk                  \
                                    --with-JSDK=/usr/local/JSDK2.0

Remember that you must choose your appropriate directory structure for the apxs, for the jdk-home and for the JSDK

4. Now just type the following commands:

      &  make

      &  make install
       

5. You have to prove your installation, open your web browser, make sure apache server is functioning correctly, then just type

      localhost/servlets/IsItWorking

And you must be able to see the welcome page.
 

Apache

_____________________________________________________
Welcome Linux stuff My University Resume
Programs Contact me Links Other Stuff

Last Update:
Wednesday, December 26, 2001

 

1