Posts

Showing posts from July, 2010

Tomcat 6 and JDK 1.6

Installing Tomcat 6
===================
yum only gives tomcat5. So,

yum remove tomcat5 -y
cd /usr/share
wget http://lawyersdb.com/mirrors/apache/ant/binaries/apache-ant-1.8.1-bin.tar.gz
tar xvzf apache-ant-1.8.1-bin.tar.gz
ln -s /usr/share/apache-ant-1.7.1/bin/ant /usr/local/bin

mkdir /usr/local/tomcat
wget http://lawyersdb.com/mirrors/apache/tomcat/tomcat-6/v6.0.28/bin/apache-tomcat-6.0.28.tar.gz
tar xvzf apache-tomcat-6.0.28.tar.gz
mv apache-tomcat-6.0.28/* ./
rm -rf apache-tomcat-6.0.28

Go get /etc/init.d/tomcatd startup script frm ns38 or google around.

chown -R root:tomcat /usr/local/tomcat/
chown -R tomcat:tomcat /usr/local/tomcat/temp/
chown -R tomcat:tomcat /usr/local/tomcat/logs/
chown -R root:root /usr/local/tomcat/bin/

Next, test,

maybe cannot start. Why? make sure this details are acordingly in /etc/init.d/tomcatd

# chkconfig: 345 84 16
# description: Tomcat jakarta JSP server

TOMCAT_HOME=/usr/local/tomcat
TOMCAT_START=$TOMCAT_HOME/bin/startup.sh
TOMCAT_STOP=$TOMCAT_HOME/bin/shutdown.sh
TMP_FILE=/…

Checking .NET framework Version installed on Server

Method 1:

<%@ Page Language="VB" %>
<html lang="en">
<head>
<title>.NET version</title>
</head>
<body>
<p>.NET version is:
<%= System.Environment.Version.ToString() %>
</p></body>
</html>

And save it to ayam.aspx

Method 2:

Go remote the server, and Open my computer, and paste this on url bar:

%systemroot%\Microsoft.NET\Framework

and see whats folder is there?

Ref:
http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/3076a78d-da31-4f3c-8c8d-cdbc33f29041
http://support.microsoft.com/kb/318785
http://en.wikipedia.org/wiki/.NET_Framework
http://www.west-wind.com/weblog/posts/289139.aspx
http://stackoverflow.com/questions/212896/how-do-the-net-framework-clr-and-visual-studio-version-numbers-relate-to-each-o

//alak