Posts

Showing posts with the label Apache

Installing Apache Kafka and Zookeeper on Windows

Image
In this article, I’ll talk about how to Install, configure and start Apache Zookeeper and Apache Kafka Server on Windows OS. Prerequisite JRE running on your machine and path must set to Environment Variable Any Zip tool like 7-zip , WinZip or WinRAR. Download and Extract Apache Zookeeper using 7-zip. Download and Extract Apache Kafka using 7-zip ZooKeeper Installation Instructions: Go to the conf directory of your Zookeeper. For me its under D:\Softwares\apache-zookeeper-3.5.5 Copy and rename zoo_sample.cfg to zoo.cfg file. Open and Edit dataDIr=/tmp/zookeeper to dataDir=D:\Softwares\apache-zookeeper-3.5.5 Add entries in System Environment Variables ZOOKEEPER_HOME=D:\Softwares\apache-zookeeper-3.5.5 Append D:\Softwares\apache-zookeeper-3.5.5\bin to PATH system variable. Open command prompt and type zkserver to start the Zookeeper application. You can easily edit the default port ( 2181) in zoo.cfg file. Congratulations, ZooKeeper is up and...

How to enable multiple domains in Apache Server using Name-Based VirtualHosts and SSL

Scenario: I have an Apache Server(SSL enabled) and tomcat running on my machine and there is one application (app1) hosted on tomcat which is only accessible from Apache Server. You cannot access it directly from tomcat. Now you want to access app1 using multiple domains i.e. domain1.waheedtechblog.com annd domain2.waheedtechblog.com should point to the same application which is hosted on tomcat. (I want to implement different Authentication mechanism based on different domains) Solution: The above case can be achieved using NameBased VirtualHosts and SSL. First you need to uncomment following lines form ${apache}/conf/httpd.conf file LoadModule ssl_module modules/mod_ssl.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_http_module modules/mod_proxy_http.so Include conf/extra/httpd-ssl.conf then goto ${apache}/conf/extra/httpd-ssl.co...

How to install and configure Apache Tomcat 7 on Cent OS

Image
Here are the steps to install and configure Apache Tomcat 7 on Cent OS : Make sure you have JAVA 6 or later version installed on your machine. Java --version Download Tomcat7 Archive wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz Untar it at some location (eg: /opt/tomcat7) tar xzf apache-tomcat-7.0.64.tar.gz Start the tomcat (bydefault it will start at port 8080) sh /opt/tomcat7/bin/startup.sh Verify Apache Tomcat Server Goto your browser and check http:// localhost: 8080 or http://127.0.0.1:8080 Stop the tomcat sh /opt/tomcat7/bin/shutdown.sh [Optional] To access admin|manager pages, you need to create user accounts. Add below lines inside <tomcat-users></tomcat-users> tags in ${tomcat7}/conf/tomcat-users.xml file. <role rolename="manager-gui"/> <user username="manager...

How to install and Configure Apache Http Server on Cent OS

Image
Here are the steps to install and configure Apache WebServer on Cent OS : Install Apache HTTP Server (By default Cent OS comes with Apache) yum install httpd Set to Chkconfig to start on boot chkconfig --level 235 httpd on Uncomment below line from configuration( /etc/httpd/conf/httpd.conf ) file NameVirtualHost *:80 Restart Apache Http Server service httpd restart Verify Apache Server Goto your browser and check localhost or localhost.localdomain It will display Apache Test Page

How to install mod_jk.so on Cent OS

The Basics - What is mod_jk? The mod_jk connector is an Apache HTTPD module that allows HTTPD to communicate with Apache Tomcat instances over the AJP protocol. Steps: 1. Download the latest apache connector from http://tomcat.apache.org/download-connectors.cgi . 2. Untar the download by           tar zxvf <filename> 3. Goto native directory of connector           cd <connector dir>/native/ 4. Run the buildconf.sh scripts        ./buildconf.sh Note : If you get any issue like "autocong" not installed then install following things:        yum install autoconf        yum install libtool 5. You need "httpd-devel" tools to build it. So make sure you have already installed it by          yum list installed | grep httpd-devel     else install it " yum install...

Apache Ant - Tutorial

Image
Introduction: Ant (originally an acronym for Another Neat Tool), is a build tool with special support for the Java programming language but can be used for just about everything.Ant is platform-independent; it is written purely in Java. Ant is particularly good at automating complicated repetitive tasks e.g. compiling source code, running software tests, creating jar files, javadocs, etc. and thus is well suited for automating standardised build processes. A build process typically includes:      -the compilation of the Java source code into Java bytecode      -creation of the .jar file for the distribution of the code      -creation of the Javadoc documentation Ant accepts instructions in the form of XML documents("build.xml") thus is extensible and easy to maintain. Installation: Linux (Ubuntu / Debian) On Debian /Ubuntu use "apt-get install ant" to install it. Windows Download Apache Ant from http://ant.apache.org/ . Extra...