Thursday, August 28, 2008

Apache-Tomcat Installation on Linux

Tomcat is web container for java (servlet, jsp or other). It is a part of apache development.
In this case we will install tomcat on linux step by step from source targz . We assumed java development kit (jdk version 1.5 or 1.6) was installed.

1. Download apache-tomcat newer version(ex. apache-tomcat-6.0.18.tar.gz) from apache-tomcat
extract your tomcat software from downloaded :
$tar zxvf apache-tomcat-6.0.18.tar.gz
2. please change your directory to tomcat extracted
$cd apache-tomcat-6.0.18
3. then copy it to your directory (ex. /usr/local/tomcat6 )

4. your tomcat's already installed
5. start your tomcat
$tomcat_home/bin/startup.sh
note: tomcat_home = your directory where tomcat's installed
$tomcat_home/bin/shutdown.sh
this command 'll shutdown your tomcat

If you use debian linux & family , you can use apt-get command (must a root acces) and install it from mirror debian :
1. #apt-get update
2. #apt-cache search tomcat
3. #apt-get install tomcat

RedHat, Fedora & family :
1. #rpm -i tomcat-version.rpm

Tuesday, August 26, 2008

Postgresql Installation on Linux

Postgresql is a relational database management system (RDBMS). It is opensource, we can get it free.
Now , we'll install postgresql on linux step by step, assumed gcc & make was installed.

1. Download postgresql from POSTGRESQL HOME
ex: postgresql-version.tar.gz or postgresql-version.tar.bz2
2. Extract it with command :
$tar zxvf postgresql-version.tar.gz or
$tar jxvf postgresql-version.tar.bz2

3. Change your directory to your extracted it, ex :
$cd postgresql-version

4. Configure your postgresql :
$./configure --prefix=/usr/local/pgsql --with-pgport=5432 and bla bla bla
please type ./configure --help

Wait for some minute

5. Compile the results of your configure
$make

Wait for a minute. It depends your processor and memory

6. Then install it. You must have a root access
#make install

7. Successfull