JSPSMARTUPLOAD : DOCUMENTATION
Installation with JRun and Apache
Last update: 05/13/2000
© 2000 Advantys. All right reserved.

Step 1: Install JDK 1.2.2

JDK1.2.2 is available for download from Sun. JDK1.2.2 for linux

Uncompress the downloaded file by typing tar -xzvf jdk1.2.2-linux-i286.tar.gz
This will create a jdk1.2.2 directory.
Move this directory to /usr/local/ by typing mv jdk1.2.2 /usr/local/

Set your $PATH variable and add /usr/local/jdk1.2.2/bin


Step 2: Install Apache

Apache Web Server is available for download from Apache. Apache 1.3.12 for linux

Uncompress the downloded file by typing tar -xzvf apache_1.3.12.tar.gz
This will create an apache_1.3.12 directory.
Move this directory to /usr/local/apache by typingmv apache_1.3.12 /usr/local/apache

Finally, to compile Apache, from the directory /usr/local/apache/ type:
    ./configure --prefix=/usr/local/apache --enabled-rule=SHARED_CORE --enable-module=so
    make
    make install

 


Step 3: Install JRun

JRun  is available for download from Allaire. JRun 2.3.3 for unix

Uncompress the downloaded file by typing tar -xzvf jr233u.tar.Z
This will create a
jrun/ directory.

You should then install the lasest JRun update. JRun update
Copy the downloaded file (jp233157u.tar.Z) to the jrun directory.
From this directory type tar -xzvf jp233157u.tar.Z
This will update JRun and remplace the old version.

The jrun/ directory now contains the latest version of JRun. Move it to /usr/local/jrun by typing mv jrun/ /usr/local/jrun

from /usr/local/jrun type ./install.sh

The diffrents parameters are :

jrun root directory

/usr/local/jrun

older jrun root directory

none

JSM Licence key

none

CF_Anywhere

not active

Mapping

Map *.jsp to JSP 1.0

Connecteur

Apache 1.2/1.3

proxy host

123.123.123.123 (IP address of your server)

proxy port

8081

apache conf directory

/usr/local/apache/conf

DSO

Do not use DSO


Create a /usr/local/apache/src/modules/
jrun dirctory and copy the /usr/local/jrun/connectors/apache/src directory in it. To do so, type:
cp /usr/local/jrun/connectors/apache/src/* /usr/local/apache/src/modules/jrun

From the /usr/local/apache directory, type:
./configure --prefix=/usr/local/apache --activate-module=src/modules/jrun/libjrun.a
make


Step4 : Install jspSmartUpload.

Coopy the files from jspSmartUpload/Web-inf/classes into /usr/local/jrun/jsm-default/classes.

Create a directory jspsmartupload in /usr/local/apache/htdocs and copy all the files from the jspsmartupload package (except the Web-inf directory)

At the end of the apache configuration file (/usr/local/apache/conf/httpd.conf) in the <IfModule mod_jrun.c> section, after the JrunConfig lines, add the following lines:
Alias /jspsmartupload "/usr/local/apache/htdocs/jspsmartupload"
Alias /upload "/usr/local/apache/htdocs/jspsmartupload/upload"


Use of examples

Start JRun by typing /usr/local/jrun/jsm-default/startjsm.sh
Start Apache by typing /usr/local/apache/bin/apachectl start

In your browser, enter the following URL :
http://IP_address_of_your_server/jspsmartupload/default.htm


© 2000 Advantys. All rights reserved.