Oshyn Home Page
  • expertise
    • Overview
    • Contact Us |
    • Latest work: www.miramax.com
  • solutions
    • Overview
    • Content Management
      • Choosing a CMS
      • Site Migration
      • Sitecore Consulting
      • EPiServer CMS Consulting
      • Jahia Integration
      • Legacy CMS Solutions
      • Drupal Development
      • Common Issues
      • Training
    • Web Strategy
    • Mobile Platforms
    • Social Media
    • E-commerce
    • Portals & Collaboration
    • SOA
    • Contact Us |
    • Latest work: www.miramax.com
  • work
    • Overview
    • Client Quotes
    • Contact Us |
    • Latest work: www.websense.com
  • resources
    • Overview
    • News & Events
    • Newsletters
    • Blog
    • White Papers
    • Success Stories
    • Press Kit
    • Contact Us |
    • Latest work: www.disneydvd.com
  • partners
    • Overview
    • Agency Partner Program
    • Technology Partners
    • Contact Us |
    • Latest work: www.nea.org
  • company
    • Overview
    • Contact
    • Careers
    • Leadership Team
    • News & Events
    • Social Responsibility
    • Contact Us |
    • Latest work: www.icon4x4.com
  • Tweet
Wednesday, April 25, 2012  /   Daniel Ovalle Daniel Ovalle
Author Page
close

Daniel Ovalle


Daniel is a Technical Team Lead at Oshyn.

Installation Tips for a Jahia Setup on Linux OS

Jahia Tips ChecklistJahia is an open source web content integration software that combines enterprise web content management with document management and portal features1. The Jahia setup on a Linux (Debian GNU/Linux) server is simple.

To start, read the Jahia xCM community documentation as a first step to start testing your own CMS instance as a developer. The documentation has important tips and recommendations for developers and administrators to ensure the setup of your CMS instance will be quick and easy.

For Jahia beginners,the community documentation and the Wiki (Jahiapedia) content available on the Jahia website will be really helpful. Your first project creation, the introduction to basic concepts of the CMS, and the templates creation guidance will help you quickly start your first web content project with this CMS.

The scope of this post is to show you the setup of the Jahia xCM on a Linux host using the command line mode of the installer. I’ll also go over how to check the basic configuration parameters and files that should be in place to start working with Jahia xCM V6.6.0.0.

To start with the installation, we need to check the following system requirements:

JDK (Java development kit) and Tomcat6 (Apache Servlet Container)

The Jahia xCM is a web application built over the Java Servlet Specification 2.4. This means it could be deployed on a JDK 1.5 and a servlet container that implements this specification like Tomcat 5.5.X; however, following project recommendations we will use JDK 6 and Tomcat6 for this setup.

Install Java Development Kit v6 using the apt package manager:

apt-get install openjdk-6-jdk

The apt will set all environment variables (JAVA_HOME, PATH) and the Java commands will be available and detectable by the Java applications on this host. On the terminal, you can check the installation by typing in "java -version" and you should see this command:

java -version

 

java version "1.6.0_18"

OpenJDK Runtime Environment (IcedTea6 1.8.10) (6b18-1.8.10-0+squeeze2)

OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Now we can install the Tomcat6 servlet container using the apt tool:

apt-get install tomcat6

Again, the apt will take care of the entire setup and default installation (environment variables and system V init scripts) for the servlet container as an OS service.

That's all, Now our Linux OS is ready for deployment.

Jahia xCM Installation

The Jahia community installer is available for Linux/OSX on the community downloads page as well as install instructions for the Java graphical installer. To get the installer, use wget/curl tools to get the distributed jar file:

wget --no-check-certificate https://www.jahia.com/public/jahia-6.6.0/bin/Jahia_xCM_v6.6.0.0_r40429.jar

To start the installer on the terminal type, use:

java -jar Jahia_xCM_v6.6.0.0_r40429.jar

This will start the installer on command line and you will see all the steps described on the graphical installer. On command line format, then you can follow the same steps. The difference here is that we want to deploy Jahia as a web application on our previously installed Tomcat6 and avoid using the bundled Tomcat that comes with the default installation.

To proceed with the command line installation, follow these steps:

Welcome to the installation of Jahia xCM 6.6.0.0!

 - Jahia Solutions Group SA <info@jahia.com>

The homepage is at: http://www.jahia.com

[license information]

Select target path => usr/local/Jahia_xCM_v6.6.0.0

Here you can choose your preferred installation type => Custom install (advanced)

Select the installation type you want to perform: => Deselect Add Apache Tomcat

Choose your preferred database connection type => Use a standalone DBMS

Choose your DBMS type => MySQL 5.x

Database driver => com.mysql.jdbc.Driver

Database URL => jdbc:mysql://localhost/jahia?useUnicode=true&characterEncoding=UTF-8&useServerPrepStmts=false

Database username => jahia

Database password => jahia

Store binary data in the database? => No

Create required database tables? => Yes

Context name (context path without /) => jahia

Jahia tool manager username => jahia

Jahia tool manager password => jahia

Use development mode for templates? => Yes

Username: => root

Password: => jahia

Externalize configuration => No 

[ Processing package: Jahia xCM + Jahia Composite Content Platform (1/1) ]

[ Unpacking finished ]

Install was successful

application installed on /usr/local/Jahia_xCM_v6.6.0.0

[ Console installation done ]

After the installation procedure is complete you can check the WAR file we need on the installation dir (/usr/local/Jahia_xCM_v6.6.0.0) named "jahia.war". This file is now a standard Java web application and we can proceed with the configuration for deployment on our Tomcat6 servlet container.

I followed the recommendation to use a web application directory outside the default Tomcat6 directories structure. This helps a lot on maintenance operations and simplifies Tomcat upgrades and/or Jahia upgrades. To do this, I'll unzip the jahia.war file in the "jahia_war" directory in the installation directory: 

jahia_war

 |---admin

 |---css

 |---engines

 |---errors

 |---favicon.ico

 |---gwt

 |---html

 |---icons

 |---iphone

 |---jahia.war

 |---javascript

 |---LICENSE

 |---META-INF

 |---modules

 |---ping.jsp

 |---tools

 |---WEB-INF

This is the web application content and in this structure, we can do all the modifications for the Jahia xCM setup we need. Now we need a deployment file for the Jahia web application.

During the installation process, we selected a web context different than "/" for the Jahia web application: "/jahia". This means that for our deployment, the file will be named "jahia.xml" and will be located into the $TOMCAT_HOME/var/lib/tomcat6/conf/Catalina/localhost/ directory. By default, this is the location of the deployment descriptors in Tomcat.

The content in this file should be:

<Context path="/jahia" docBase="$jahia_war_path" antiResourceLocking="false" crossContext="true" >

<Manager pathname="" />

<Resource

name="jdbc/jahia"

auth="Container"

factory="org.apache.commons.dbcp.BasicDataSourceFactory"

type="javax.sql.DataSource"

username="jahia"

password="jahia"

driverClassName="com.mysql.jdbc.Driver"

url="jdbc:mysql://localhost/jahia_6_6_0_0?useUnicode=true&amp;characterEncoding=UTF-8&amp;useServerPrepStmts=false"

defaultAutoCommit="true"

accessToUnderlyingConnectionAllowed="true"

maxActive="200"

maxIdle="30"

maxWait="10000"

initialSize="5"

validationQuery="/* ping */"

testWhileIdle="true"

testOnBorrow="false"

testOnReturn="false"

timeBetweenEvictionRunsMillis="300000"

minEvictableIdleTimeMillis="1800000"

numTestsPerEvictionRun="5" />

</Context>

This file can be created using the jahia_war/META-INF/context.xml file and modifying the "Context" tag.

Once you put this file into the Tomcat-specified location, you can restart the Tomcat service and the Jahia web application will start:

service tomcat6 restart

Now you can check your Tomcat6 LOG (/var/log/tomcat6/catalina.out) and see all the Jahia web application startup information. This file becomes especially important to a developer’s work as this contains all the deployment and execution information.

Now we can point our browser to http://localhost:8080/jahia and we should see the start configuration page.

About the Installer

The Jahia xCM 6.6 has been recently released, and I tried some installations before writing this post. On those tests I noticed some fails on the installer (in graphic mode). If this happens to you, I suggest you check the following on your recently installed environment:

  • The file $JAHIA_WAR/WEB-INF/etc/jahia.properties was sometimes missing.
  • The file $JAHIA_WAR/WEB-INF/etc/log4j.xml defines the location of the Jahia LOG files (jahia.log, jahia_profiler.log, jahia_access.log), search the file definitions into the "appender" tags and add the location you want for those files, in my case I want all log file under "/var/log/tomcat6/" directory:

<appender name="ROLL" class="org.apache.log4j.DailyRollingFileAppender">

<param name="File" value="/var/log/tomcat6/jahia.log"/>...

  • On the $JAHIA_WAR/WEB-INF/etc/jahia.properties there used to be the DB configuration parameters, but on this release you will find this comment:

######################################################################
### Database ########################################################
######################################################################
# Database connection configuration is no longer configured here,
# but rather through container-managed datasource connection. In Tomcat
# these can be found in the following file:
# <jahia-web-app-dir>/META-INF/context.xml

I tried moving all the DB configuration parameters to this file from the "jahia.xml" but had no luck, so it seems you need to use the jahia.xml to define DB attributes.

If all goes well, this host will work fine as an integration environment and by following the documentation about the performance tuning provided on Jahia website, this can be used as a start point for a production instance.

Resources

1 www.jahia.com

Trackback Link
http://www.oshyn.com/BlogRetrieve.aspx?BlogID=1907&PostID=223579&A=Trackback
Trackbacks
Post has no trackbacks.

Pages: Previous Next

TwitterFacebookLinkedIn
ajax rotator

Blog Authors

Christian Burne   Christian Burne  
Subscribe Subscribe Subscribe Subscribe Subscribe
OTHER CATEGORIES
  • ALL

  • General

  • Web Content Management

  • Sitecore CMS

  • Open Text

  • Jahia

  • Drupal

  • EpiServer

  • SOA

  • Social Media and Mobile

  • Software Development

  • Visit Bloggers Profiles

RELATED POSTS
  • Quick intro to Glass Sitecore Mapper
  • What is the purpose of Sitecore’s “sc:VisitorIdentification” tag?
  • Creating Custom Strategies in Sitecore DMS Multivariate Tests
  • Automated Content Migration Part 3: Managing your CMS during a website redesign
  • Sitecore database deployment to Amazon RDS SQL
  • Redesigning your Sitecore Site with Siteport
  • GeoIP Inner Workings in Sitecore DMS
  • Automated Content Migration Part 2: Completing a CMS Upgrade
  • 5 Don'ts for Selecting a CMS/WCM
  • Can you do CXM with RedDot?

WHITE PAPERS

    Web Content Management, Social Media, Content: Three Kings for Your Website Web Content Management, Social Media, Content: Three Kings for Your Website (846 KB)
    Companies pursuing online marketing success, including Social Media, can increase the power of their online presence with right strategy and technology to maximize online visibility and engagement. Download this FREE white paper on the WCM, Social Media, and Content triad.

    Drupal Performance Tuning Drupal Performance Tuning (1213 KB)
    In this Free White Paper Oshyn evaluates Drupal Performance Tuning, sharing the results of testing response time and Requests Per Second (RPS) that a server can hold before the response rate becomes unacceptable. In this paper you will learn about optimizing performance of a website through changes to settings and the server.

    Enterprise Drupal: Social Media, Mobile, and Rich Media in your Website Enterprise Drupal: Social Media, Mobile, and Rich Media in your Website (1015 KB)
    In this free WCM white paper, Oshyn examines advanced Drupal capabilities: Multisite Environment, Access Control and Security, Enhanced User Profiles, Custom Breadcrumbs, Mobile Support, Podcasts, Advanced Multimedia, Locations and Maps, Internationalization and Locale based content, Events and Scheduled Tasks, Rules Actions and E-Commerce Solutions.

    Drupal Multilingual Drupal Multilingual (636 KB)
    There are several multilingual installation methods for Drupal. In this free white paper Oshyn evaluates and recommends several methods of using Drupal Open Source CMS to manage websites in multiple languages.

    Drupal Social Media Drupal Social Media (1297 KB)
    Looking for an Open Source CMS to for “Social Media Optimization” of your website? Download this free white paper, “Drupal and Social Media”, to learn about the extensive Social Media this Open Source CMS offers to create a dynamic and engaging website and online community.

    Drupal Multisite Options Drupal Multisite Options (427 KB)
    There are several multisite installation methods for Drupal. In this free white paper Oshyn evaluates and recommends several methods of using Drupal Open Source CMS to manage multiple sites.

    Open Source CMS: Is It Right for your Organization Open Source CMS: Is It Right for your Organization (496 KB)
    In this free white paper, “Open Source CMS: Is It Right for your Organization?” we share an in-depth look at the pros and cons of using Open Source Content Management Systems (CMS) or Open Source Web Content Management (WCM) platforms. Oshyn helps clients select CMS/WCM solutions based on the specific requirements of each client.

    Affiliate Content Sharing in a CMS/WCM World Affiliate Content Sharing in a CMS/WCM World (273 KB)
    The Content Editors at your company have created GREAT content! Now how do you share it? In this Free white paper learn several methods for using a Content Syndication tool to automatically repurpose content and how Content Sharing can generate business value.

    Sitecore and Social Media - An Interactive Web Content Management Platform Sitecore and Social Media - An Interactive Web Content Management Platform (898 KB)
    Social Media has revolutionized how people interact with business. In this white paper Oshyn’s Lead Sitecore Developer, Prasanth Nittala, discusses key points from the perspectives of marketing and Web development that make Sitecore a compelling choice for engaging in Social Media via your website. This Sitecore white paper draws from Oshyn’s expertise as a certified Sitecore partner, helping organizations understand the distinct capabilities offered by Sitecore CMS.

    The Business Case for Leveraging Open Text Web Solutions Delivery Manager The Business Case for Leveraging Open Text Web Solutions Delivery Manager (451 KB)
    This free white paper explores the evolving needs of small and medium size businesses and explains how the Open Text Web Solutions Delivery Manager (formerly RedDot LiveServer) can help businesses build their brand, reputation, and client base. This white paper examines strategies, key points and tips to leverage the features available in Open Text Web Solutions (RedDot CMS) to achieve an impactful user experience and to maximize visitor engagement through a reliable and powerful implementation.

    Open Text Best Practices: Part One Open Text Best Practices: Part One (763 KB)
    Authored by Oshyn Senior Consultant, Adaeze Okorie, this free CMS white paper draws from Oshyn’s vast experience as an Open Text Certified Partner, in helping organizations define strategies to meet business goals while implementing Open Text Web Solutions (RedDot CMS). Specifically in this free white paper Adaeze Okorie discusses strategies, key points and tips to leverage the features available in Open Text Web Solutions (RedDot CMS) to achieve an effective, reliable and robust implementation.

    Improving the ROI of Business Software: Service Oriented Architecture from a Business Perspective Improving the ROI of Business Software: Service Oriented Architecture from a Business Perspective (398 KB)
    Software selection and technology decision making should no longer be left to the IT department alone. By gaining an understanding of Service-Oriented Architecture, business people outside of the IT department will be better positioned to maximize the ROI of the company's technology platforms. Download this free white paper to learn more.

    Getting Over Social Media Marketing Paralysis for B2B Getting Over Social Media Marketing Paralysis for B2B (2254 KB)
    Many companies are well aware that Social Media has become critically important to engaging audiences and promoting online "presence" while some wonder how to approach their C-level executives and prove that it is not all hype. With so many ways to engage in Social Media, how can they get buy-in and begin execution with so many different venues and tools available? Staying on the sidelines and becoming a latecomer might make it more difficult to create a convincing "social" presence. Put the ove

    Performance Tuning Open Text Web Solutions Management Server and Delivery Server Performance Tuning Open Text Web Solutions Management Server and Delivery Server (235 KB)
    If you've made an investment in Open Text Web Solutions (formerly RedDot) Web Content Management products, you’ve undoubtedly experienced performance issues. While every CMS requires tuning, Open Text Web Solutions - RedDot is especially susceptible to mis-configuration and poor performance as the out-of-the-box installation comes untuned and ready for Development Environments only. In this FREE white paper we share performance tuning expertise as an Open Text Certified Partner that has optimize

    The Business Case for Leveraging Open Text Web Solutions Within Higher Education The Business Case for Leveraging Open Text Web Solutions Within Higher Education (430 KB)
    Academic institutions have a long reputation for being slower to adopt new technologies for their audiences. However, many schools are taking serious steps in improving the online experience they are providing. This white paper explores the unique needs of the higher education market, applying new tools & trends and specifically how the Open Text Web Solutions’ Delivery Manager (formerly known as RedDot LiveServer) can be leveraged to achieve those goals.

    SEO Best Practices within a Content Management System SEO Best Practices within a Content Management System (712 KB)
    In this free white paper, we share Search Engine Optimization (SEO) tips and best practices to follow when implementing a Content Management System (CMS). Certain features and functionality will help your content editors make website changes faster while minimizing the risk of human error. Download this free white paper to learn strategies to improve search engine rankings.

    Best Practices for Sitecore CMS Best Practices for Sitecore CMS (1121 KB)
    Sitecore CMS is an extensive Web Content Management (WCM) platform for the mid-market. It offers reduced IT expenditures, a streamlined content lifecycle, and a return of content control to the subject matter experts. The newest incarnation of Sitecore CMS version 6.0 is a mature product that incorporates standard social media components such as wikis, blogs, RSS syndication and “e-mail a friend” features.

    Optimizing SEO in your CMS (WCM) Optimizing SEO in your CMS (WCM) (3108 KB)
    Oshyn's Christian Burne spoke in depth about SEO in CMS at the Gilbane San Francisco Conference on June 3rd, 2009. Christian discussed the pressues of keyword competition and how the CMS can add tremendous power to climbing Google SERPs and other search engine rankings. The presentation was later part of a featured article on CMSWire. We've made the presentation available in PDF format. Download now to learn more about strategies for using your CMS to optimize SEO.

    The Best CMS for You: Tips on How to Select Your Next CMS The Best CMS for You: Tips on How to Select Your Next CMS (909 KB)
    As websites continue to grow in size, features and functionality, the visitors to these websites are also becoming more demanding and have higher expectations than ever before. Companies who committed valuable time and resources to web strategies just five years ago are finding they must re-evaluate and explore new options as their content, features and online offerings must keep pace with the constant and rapid movement in the digital marketplace. For many of these companies, there is a strong.

    Oshyn Sample Voluntary Product Accessibility Template (VPAT) Oshyn Sample Voluntary Product Accessibility Template (VPAT) (741 KB)
    Section 508 requires that when federal government and agencies procure, develop, and maintain or use electronic and information technology (EIT), they must ensure that it is accessible and in compliance with Section 508 standards developed by the Architectural and Transportation Barriers Compliance Board (Access Board). Oshyn understands these requirements and has delivered reports like these countless times.

    G SEO Best Practices Guide G SEO Best Practices Guide (349 KB)

    Sitecore CMS Implementation Best Practices Sitecore CMS Implementation Best Practices (481 KB)

    Twitter Facebook LinkedIn Featured in Alltop
    Oshyn, Inc.17785 Center Court Drive N Cerritos, CA 90703    1.888.483.1770 newbusiness@oshyn.com
    2013 Copyright Oshyn. All rights reserved.
    • View Mobile Version
    • Terms of Use
    • Privacy Policy
    • Contact Us
    x
    • Contact Us Oshyn 1.888.483.1770
      Have Oshyn Call Me Have Oshyn call you
      Request Further Information Request further information

      Submit an RFP Submit an RFP