- login to linux
- startx - starts the linux GUI. Your GUI may be different, or you may simply
be using the command line.
- Install Java SDK
- Go to url http://java.sun.com/j2se/downloads.html
- Download and install rpm (for RedHat) or tar.gz (for general UNIX), full version
- to install an rpm, use: rpm -i <file>.rpm
- to install from tar/gz, use tar xvfpz <file>.tat.gz
- create directory /etc/java
- edit /etc/java/java.conf, add line: JAVA_HOME=/usr/java/jdk1.4.1
The jdkx.x.x should reflect the version of Java you are actually installing.
- Install MySql (standard) 4.0
- Go to http://www.mysql.com/downloads/
or to http://mirror.sit.wisc.edu/mysql/downloads/mysql-4.0.html
- download the one tar.gz (for general UNIX), or the set of ~6 rpms (for RedHat)
- install/untar to /usr/local/
- read the mysql manual to set up mysql server. The sections mentioned belowd:
- Sections 2.1, M.1, 2.4, 2.4.3 - to setup
- Sections 4.3.4, 4.3.5 - to add users
Add a root@*, root@localhost, root@abc.edu
user@*, user@localhost, user@abc.edu
- to start the mysql server, type:
<mysqldir>/support_files/mysql.server start
- Install MySql CC GUI
- download from http://www.mysql.com/downloads/mysqlcc.html
- start mysql server
- open the GUI
- connect to the mysql database using the root/user password
- Create a blank database, and name it CFX
- open a query window
- open file CFX<Date>.sql in the query window (e.g.CFXMarch24.sql). This is the CFX file containing sample data that we currently have. If you want to start with a empty database, use CFXInit.sql
- add "use CFX;" before the first line of the file
- execute the query
- For GUI-less Unix, refer to the mysql manual on how to import the contents of a .sql file into the database
- Install Tomcat4
- Go to http://jakarta.apache.org/site/binindex.cgi
or to http://ftp.epix.net/apache/jakarta/tomcat-4/binaries/
- download and install the full edition
- tomcat4 installs to the following directories:
/var/tomcat4
/etc/tomcat4
/usr/share/doc/tomcat4.1.24
/usr/bin/tomcat4
- open tomcat4.conf, check if the following are set correctly
CATALINA_HOME=/var/tomcat4
JASPER_HOME=/var/tomcat4
CATALINA_TMPDIR=/var/tomcat4/tmp
- start tomcat to test it. type,
/usr/bin/tomcat4 [start/stop] &
- try browsing to http://localhost:8080 in your browser
- It the tomcat page doesn't load, something was done incorrectly!- open server.xml from the tomcat4 directory. Make changes
to it, from this local file: server.xml
- add a <Context> element after the Context element for
"examples". It goes like this:
<Context path="/CFX" docBase="CFX" ...>
- copy the local CFX directory into /var/tomcat4/webapps/
- edit /var/tomcat4/webapps/CFX/WEB-INF/web.xml
- Change Mysql root/user and the corresponding password
- restart tomcat4
- try http://localhost:8080/CFx/servlet/HelloWorld
- finally, try
http://localhost:8080/CFX/MainUI.jsp <from windows>
http://localhost:8080/CFX/NSMainUI.htm <from linux >
- Troubleshooting
- if http://abc.edu/CFX/servlet/HelloWorld doesn't work,
check internet connection, dhcp setup