Tweak sysctl parameters to prevent DDOS and SYN flood attacks

Saturday, June 30, 2012 9:31:32 PM Asia/Calcutta

Tweak sysctl parameters to prevent DDOS and SYN flood attacks

Read More
3 Comments | Posted in Linux Apache kernel Network By WHR Admin

What is a DDOS attack and how to mitigate it

Thursday, June 28, 2012 1:31:31 AM Asia/Calcutta

What is a DDOS attack and how to mitigate it

Read More
1 Comments | Posted in Linux Apache Network By WHR Admin

How to calculate Apache MaxClients value and MySQL memory usage

Thursday, June 28, 2012 1:20:38 AM Asia/Calcutta

How to calculate Apache MaxClients value

Read More
2 Comments | Posted in cPanel Linux Apache By WHR Admin

How to configure Apache for maximum performance

Thursday, June 28, 2012 1:02:33 AM Asia/Calcutta

How to configure Apache for maximum performance

Read More
0 Comments | Posted in cPanel Linux Apache By WHR Admin

How to boot Linux server in new kernel once for testing

Sunday, May 6, 2012 1:56:51 AM Asia/Calcutta

How to boot Linux server in new kernel once for testing

Read More
0 Comments | Posted in Linux kernel By WHR Admin

SPF and Domainkeys in cPanel

Saturday, May 5, 2012 6:06:16 PM Asia/Calcutta

SPF and Domainkeys in cPanel

Read More
0 Comments | Posted in cPanel Linux DNS By WHR Admin

Installing Apache-tomcat in a Linux server

Saturday, May 5, 2012 4:27:18 PM Asia/Calcutta

Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pureJava" HTTP web server environment for Java code to run.

Experienced users can build and install Tomcat manually from source code after installing such dependencies as the Java Development Kit and the Apache Ant build tool. Depending on the usage scenario, Tomcat may either be deployed as a standalone pure-Java web server or as a component in a more complex configuration in which it serves as a back-end which handles requests passed to it from a general purpose web server such as Apache, using a connector such as mod_jk.

Features

    - Reduced garbage collection, improved performance and scalability
    - Faster JSP parsing
    - Native Windows and Unix wrappers for platform integration
    - Implements the Servlet 2.4 and JSP 2.0 specification

Installation

There are a number of different methods to start and stop Tomcat 3.3.

There are differences in the environmental setup needed for these methods. This section addresses the environmental setup needed for using the shell scripts and batch files provided to simplify starting and stopping Tomcat.

Win32:


set JAVA_HOME=c:/jdk1.4.x

 
set PATH=%JAVA_HOME%\bin;%PATH%

Unix (bash/sh):


JAVA_HOME=/usr/local/java/jdk1.4.x; export JAVA_HOME


PATH=$JAVA_HOME/bin:$PATH; export PATH

Download Tomcat:

Download it from http://tomcat.apache.org/download-55.cgi

Tomcat 5.5 version requires jdk 1.4 minimum.


Extract tomcat

 

# cd jakarta-tomcat-version

# cd bin #tar xvfz jsvc.tar.gz

# cd jsvc-src

# chmod +x configure

# ./configure

# make

# cp jsvc ..

# cd ..

Run Tomcat using the below command:

# ./startup.sh

Open web browser and type http://localhost:8080/ you should see the Tomcat Administration page

Test Tomcat

Go to webapps/ROOT in the tomcat directory and create page hello.html and write in it. Open the URL http://localhost:8080/hello.html you should see your page.

Make JSP page

go to webapps/ROOT in the tomcat directory and create page hello.jsp and write in
it the following lines.

 

<%=new String("Hello WebHostingRepo")%>
<%=new java.util.Date()%>


Save and run the following URL http://localhost:8080/hello.jsp

and you should be seeing "Hello WebHostingRepo".

Stop Tomcat

go to the tomcat bin directory

#./shutdown.sh


0 Comments | Posted in cPanel Linux Apache By WHR Admin