Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Liferay Beginner's Guide
Liferay Beginner's Guide

Liferay Beginner's Guide: Quick and easy techniques to build, deploy, and maintain your own Liferay portal with this book and ebook

$15.99 per month
Book Dec 2011 396 pages 1st Edition
eBook
$28.99 $19.99
Print
$48.99
Subscription
$15.99 Monthly
eBook
$28.99 $19.99
Print
$48.99
Subscription
$15.99 Monthly

What do you get with a Packt Subscription?

Free for first 7 days. $15.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details


Publication date : Dec 1, 2011
Length 396 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781849517003
Category :
Table of content icon View table of contents Preview book icon Preview Book

Liferay Beginner's Guide

Chapter 1. Planning Your Portal

In this chapter, we will introduce you to the world's most popular open source portal product. You will get an overview of Liferay's architecture, features, and running environments. You will also learn to prepare the infrastructure for the installation of a Liferay Portal instance.

People use Liferay Portal to set up websites. You can see examples of Liferay Portal in action at the following sites:

By mid-2011, Liferay Portal had been deployed 250,000 times all around the world.

In this book, we will walk through Liferay's functionalities by setting up a website using Liferay Portal. You will learn how Liferay Portal works and how you can take advantage of its features.

In the following sections, we will do some preparation for that website. We will talk about the following topics:

  • Liferay Portal concepts

  • Liferay architecture

  • Pre-requisites for Liferay Portal installation

  • Liferay Portal features

Let us get familiar with our chessboard first and then place the king, queen, rooks, and other pieces, before we start the game.

What is Liferay Portal?


Liferay Portal is a Java web application. In a web application, a user types in a Uniform Resource Locator (URL) string in a browser address box and fires it. The browser sends the URL as a request to a corresponding application server and waits. The application server receives the request and processes data according to parameter values in the received URL. It sends a Hypertext Markup Language (HTML) format file to the requesting browser as a response. The browser interprets the HTML file and renders a webpage to the user. All the typical characteristics of a web application apply to the Liferay Portal.

The following is a deployment diagram for a Liferay Portal instance:

In this deployment diagram, a user accesses a Liferay Portal site with a web browser. Liferay receives the request and sends a request to the Single Sign On (SSO) server for authentication. The SSO server goes to the Lightweight Directory Access Protocol (LDAP) server to check the user's credentials. When that is successful, the SSO server tells Liferay Portal that the user is authenticated. Liferay Portal responds to the user request with a home landing page.

Note

Please note that not all Liferay Portal installations run with SSO. Some Liferay Portal installations are much simpler.

The Liferay Portal also runs portlet artifacts (please read on for an explanation of portlets). It relies on a database server to store data. It uses the mail server to send mails to the portal users. Optionally, Liferay Portal may also use other servers for additional functionalities.

Time for action – browsing sites based on Liferay Portal


The Liferay Inc. company site (http://www.liferay.com/) is based on Liferay Portal. Go to the Liferay company site and notice the Liferay logo, and the blue hue of the page, as shown in the following screenshot:

Now, go to the http://www.sesamestreet.org/ site of Sesame Street. (Turn on your speakers to get the full experience of this site)

This is a very interesting site. I want to stay at the site for a while, even though I am no longer a child! Have you seen any traits of Liferay Portal there? You may not; the design of Liferay's look-and-feel is so flexible that it can be easily customized.

What just happened?

Liferay Portal adopts an architecture that is flexible. It divides a webpage into a theme, a layout template, and portlets. The look-and-feel of Liferay Portal can be completely customized.

Definition of a portal

In our context, a portal is a web portal. A web portal refers to a website that provides a broad array of resources and services, which typically include e-mail, forum, searching, and online shopping. Yahoo! was one of the first portals.

There are also web portals for enterprise use. These portals are called enterprise portals. An enterprise portal provides content and collaboration for the employees of an enterprise. It is set up as an intranet application. Liferay Portal is often customized into an enterprise portal.

Most content at a Liferay Portal site comes from its portlets. A Liferay Portal contains portlets, as a window contains panes. A portlet is different from a pane, in that it consists of text and images.

A portlet works like a servlet. A portal URL request to the application server will invoke one or more portlets. The portlets run and produce HTML markup. Liferay Portal assembles the HTML markup into an HTML file. It returns the HTML file to the requesting browser.

Horizontal vs. vertical portals

Liferay Portal was named a leader in the Magic Quadrant for Horizontal Portals report of Gartner in 2010 (http://www.gartner.com/technology/media-products/reprints/liferay/206214.html). What is a horizontal portal? A horizontal portal covers many areas. It can be used as a platform for multiple social and collaborative purposes. It can also be used by more than one company in the same industry. Liferay Portal is a horizontal portal, because it has a collaborative suite of blogs, wiki, mail, and calendar portlets. Its message board and chat portlets can be used for social activities.

A vertical portal focuses on one functional area. It is a specialized entry point to a specific market, industry, or subject area.

Time for action – comparing Yahoo! and YouTube


Do you have a Yahoo e-mail account? Yahoo was one of the earliest portals on the Internet. Many users are still using the e-mail service provided by Yahoo.

Go to the http://www.yahoo.com/ site. You will find Mail, Autos, Dating, Finance, Games, Health, and Jobs links there. They cover various kinds of fields and industries, as is shown in the following screenshot:

Sometimes, I like watching videos on YouTube for a break. YouTube is a well-known site for videos. Now, go to the site at http://www.youtube.com/. What do you find there? You may have found Browse, Movies, video Upload links, and advertisements. You can also create an account at the YouTube site, as shown in the following screenshot:

You can do a lot of things and get a lot of services at the Yahoo site, while do every video-related thing at the YouTube site.

What just happened?

The Yahoo site is a horizontal portal. It is a platform for multiple social and collaborative purposes. The YouTube site is a specialized entry point for video fans: it is a vertical portal.

Open source vs. commercial portals

A user uses an open source portal product, free of charge. He/she can modify and extend its source code. Liferay Portal is an open source portal. It is distributed under the GNU, Lesser General Public License (LGPL) (http://www.gnu.org/copyleft/lesser.html).

Liferay Portal is available in two versions: Community Edition (CE) and Enterprise Edition (EE). A client can use its community edition, free of charge. If a client wants support from Liferay, Inc., they can buy the Enterprise Edition.

You can study the source code of an open source portal to learn portal technologies (Refer to https://github.com/liferay for the source code of Liferay Portal). A commercial portal product is more expensive than the enterprise version of an open source portal. IBM WebSphere portal and Microsoft SharePoint portal are commercial portal products.

This book is based on Liferay Portal Version 6.0. We will use this CE version to illustrate the features of Liferay Portal and set up a sample website.

Time for action – finding the source code of Liferay Portal


Liferay, Inc. hosts its community edition source code at the SourceForge site (http://sourceforge.net/projects/lportal/).

It also hosts its latest version of source code at its own site at http://www.liferay.com/downloads/liferay-portal/available-releases.

Now, paste the previously-mentioned URL in your browser address box, click on the Enter key, and take a look at those packages.

What just happened?

Every release of Liferay Portal comes with the source code. You can compile and build the portal from the source code, if you choose to do so. You can study the source code to learn how Spring and Hibernate are used. You can modify the source code and re-build the portal if you like.

Note

Please note that Liferay Portal is also bundled in popular open source servlet containers or application servers in every release. It is easier to directly install with these bundles.

These are only some of the advantages of using an open source portal product.

Pop quiz – multiple choices

Which of the following statements are true about Liferay Portal?

a. Liferay Portal is a Java web application

b. Liferay Portal was first developed for a non-profit organization

c. Liferay Portal is an open source portal product

d. All of the above

Liferay Portal architecture


The popularity of Liferay Portal largely comes from its adaptable architecture. There are three aspects to it.

Web service provider

Liferay Portal adopts a Service Oriented Architecture (SOA). Its architectural diagram is as follows:

In this diagram, Liferay Portal handles Hypertext Transfer Protocol (HTTP) requests from a user. The request will first be received by the Struts servlet. This servlet runs and renders portlets. During the process, the code invokes singletons, configured with Spring Application Programming Interface (API) and plain Java objects. It uses the Hibernate API to get data from or enter data into the database. Optionally, it may use the Java Messaging Service (JMS) to send out messages.

On the other hand, Liferay Portal also provides web services for programs running on other servers. The portal uses Apache Axis specification to generate web services. The Axis configuration is specified in the server-config.wsdd file under the portal/tunnel-web/docroot/WEB-INF/ folder. These are a list of Simple Object Access Protocol (SOAP) services. When an external program asks for a web service from the Liferay Portal, the Axis servlet in Liferay Portal will answer it. It will also call singletons initialized through Spring framework and call the plain Java objects. These plain Java objects will use Hibernate API to access the database.

Liferay is flexible

The architecture of Liferay Portal allows it to run on all major application servers and servlet containers, databases, and operating systems. It can be deployed on over 700 infrastructure combinations. For example, you can use MySQL or Oracle; you can run Liferay Portal in Tomcat or WebSphere.

You can plug in Solr for searching and Kaleo for workflow to Liferay Portal.

The portal administrator can apply different themes on different Liferay Portal pages. He can change the layout template of every portal page. By drag-and-drop, he can add portlets onto a portal page.

Liferay is standard compliant

Liferay Portal is compliant with Java and portlet standards. The following standards have been used in the development of Liferay Portal:

  • Java Specification Request (JSR) 127 (JavaServer Faces Specification)

  • JSR 168 (Portlet Specification)

  • JSR 286 (Portlet 2.0 Specification)

  • JSR 170 (Content Repository)

  • JSR 208 (Java Business Integration)

  • Asynchronous JavaScript and XML (AJAX)

  • Web Services for Remote Portlets (WSRP)

Pop quiz – multiple choices

Choose the correct statements:

a. Liferay Portal is a web service producer out-of-the-box

b. Liferay Portal adheres to Portlet 2.0 Specification

c. The development of Liferay Portal started in 2000

d. All of the above

Main Liferay Portal features


Liferay Portal has award-winning features. It's hot-deployable themes, draggable-and-droppable portlets, and fine-grained permissions system, among others, make it an optimal choice among other portal products on the market.

Theme and layout

Liferay Portal themes take care of most of the look-and-feel of a Liferay Portal application. A theme usually contains a company logo, a navigation bar, footer, Cascading Style Sheet (CSS) code, and JavaScript code. A Liferay Portal site can have multiple themes. In this way, a user with proper permissions can dynamically apply a different theme to each portal page, if he/she chooses to do so.

Liferay Portal divides a page area into smaller sections with a layout template. Liferay Portal comes with 10 layout templates. A portal administrator will drag-and-drop one or more portlets into one such smaller section.

The theme and layout template makes a Liferay Portal site flexible. It is easy to change the look-and-feel of a Liferay site with the theme and layout template.

Communities and organizations

Liferay Portal provides communities and organizations for administering users and the sites. A user can belong to communities and/or organizations.

A community is a collection of users with similar characteristics and interests. The portal administrator can create a sub-site with each community.

An organization is a hierarchical collection of users. A user can be a member of multiple organizations.

Either a community or an organization can have public and private web pages. Any user at the Liferay Portal site can access the public pages, while only a member of a community or organization can browse the private pages of his/her community and/or organization.

Content Management System and Web Content Management

Liferay Portal has rich content management features.

The content displayed at a Liferay Portal site can be dynamic or static. The dynamic content can be updated by multiple users at any time. It usually comes from data saved in database tables and is presented with custom portlets. The static content is the files uploaded through the Document library portlet and web content created with the web content portlet.

The following portlets are part of the Content Management System (CMS) of Liferay Portal:

  • Document library portlet

  • Document library display portlet

  • Image gallery portlet

The following portlets take care of Web Content Management (WCM) in Liferay Portal:

  • Web content portlet

  • Web content display portlet

  • Web content list portlet

  • Web content search portlet

The asset publisher portlet displays documents, images, blogs, wikis, message board entries, bookmarks, and web content.

Time for action – watching Liferay Portal portlets in action


The Liferay, Inc. company site is built on Liferay Portal. Now, go to http://www.liferay.com/ and find a portal page similar to the following screenshot:

What are the parts in the rectangles made of? They are all made of the web content display portlet.

What just happened?

The static content at the Liferay, Inc. site is created with the web content portlet (or web content display portlet). It is displayed with the web content display portlet.

The Liferay forum site at http://www.liferay.com/community/forums is made of the messages board portlet, while the Liferay blogs site at http://www.liferay.com/community/blogs is set up with the blogs aggregator portlet and the blogs portlet.

Pop quiz

Which of the following statements are true?

a. In a typical Liferay Portal page, a theme wraps a layout template, which in turn wraps portlets

b. Liferay Portal has powerful web content management features

c. Liferay Portal is pre-installed with more than 60 portlets

d. All of the above

Preparation for Liferay Portal installation


Liferay Portal runs on all major application servers and servlet containers. It works with all the important database servers on the market. Its requirements are minimal on hardware and software.

In this section, we will talk about the running environment for Liferay Portal. We will also install Java Development Kit (JDK), which is the infrastructure for Liferay Portal to operate. We will install MySQL database for Liferay Portal to connect to. This is the preparation for the installation of a Liferay Portal site in Chapter 2, Installing a Liferay Portal Instance.

Hardware requirements

To install Liferay Portal, you need more than 300 MB of disk space and at least 1 GB of Random Access Memory (RAM). The application server or servlet container that houses Liferay Portal runs at a port. You should make sure that other applications on your computer are not using that port.

Liferay Portal is written in Java. It runs on any computer where you can install the Java Runtime Environment (JRE) and an application server or a servlet container. It runs on computers that support either 32-bit JVM or 64-bit JVM.

Some features of Liferay Portal also need a mail server for support.

Time for action – finding RAM information


Assuming that you are using a laptop computer that runs the Windows 7 operating system, carry out the following steps to get the information about RAM:

  1. Click on the Windows icon at the bottom corner on the left-hand side.

  2. Right-click on the Computer link and then click on the Properties link.

  3. Find the RAM information, as shown in the following screenshot:

What just happened?

This machine has 4.00 gigabytes of RAM installed, of which 3.24 gigabytes are available. Because the available memory is larger than is required for running a Liferay Portal instance, we can install a Liferay Portal instance on this laptop computer.

Software requirements

Liferay Portal can be combined with multiple kinds of database servers and application servers.

As a web application, the running environment of Liferay Portal involves a browser, Java Virtual Machine (JVM), a database server, and a mail server.

Note

The Liferay Portal Tomcat bundle comes with a default database called hypersonic , which is an in-memory database. This database is good for non-production use. This means that a reader does not have to install a database server for Liferay Portal, if he/she is running Liferay Portal purely for study purposes.

Operating systems

Liferay Portal can be installed on multiple operating systems. In this book, we will install a Liferay Portal instance in a Windows operating system. The sample site is installed in a Linux operating system.

Java Development Kit

The Java Development Kit (JDK) includes code for the JVM in which Liferay Portal will run.

Let's say that your computer has the following specifications:

  • Windows XP or Windows 7

  • Processor: Intel(R) Core (TM) CPU

  • Installed memory (RAM): 2.00 GB or more

  • System type: 32-bit operating system

Time for action – installing JDK


Carry out the following procedure to install the latest version of JDK on your machine:

  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html and find a page with the content, as shown in the following screenshot:

  2. Click on the jdk-6u26-windows-i586.exe link. When a window pops up, click on Run.

  3. Click on Next in the next pop-up window.

  4. Accept the default installation folder and click on Next.

  5. Accept the default installation directory for JRE and click on Next.

  6. When the installation is done, click on Finish.

    Now that the JDK is installed, we set the JAVA_HOME variable and put Java commands on the path. The following is the procedure:

  7. Click on the Windows icon at the bottom corner on the left-hand side of the screen.

  8. Right-click on Computer. Click on Properties | Advanced system settings | Environment variables.

  9. Click on New in the System variables section. Define a JAVA_HOME variable and set its value to C:\Program Files\Java\jdk1.6.0_26:

  10. Edit the Path variable in the System variables section. Add %JAVA_HOME%\bin as a value in the Path variable. It should be separated from other values by a semi-colon. A sample value for the Path variable is as follows:

    %JAVA_HOME%\bin;%ANT_HOME%\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\DMIX;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin
    
  11. Click on OK to save the settings.

  12. Open a Disk Operating System (DOS) interface. On the command line, enter java-version and press Enter.

What just happened?

The previous screenshot confirms that the JDK has been successfully installed!

Application servers and servlet containers

You can download an application server or servlet container from its website and install the Liferay Portal Web Application Archive (WAR) file and dependency Java Archive (JAR) files in it. Alternatively, if Liferay has already bundled Liferay Portal with an application server or servlet container, you can download that bundle, unzip it, and install it.

Liferay Portal supports the following application servers:

  • Apache Geronimo

  • Borland ES

  • JBoss

  • JonAs

  • Jrun

  • OracleAS

  • Orion

  • Pramati

  • RexIP

  • Sun GlassFish

  • Sun JSAS

  • WebLogic

  • WebSphere

Liferay Portal also runs in the following servlet containers:

  • Jetty

  • Resin

  • Tomcat

For every release, Liferay, Inc. installs Liferay Portal in some open source servlet containers and application servers. The resulting packages are called Liferay Portal bundles, which are ZIP files. A user can download one such bundle, unzip it, and install it. The presently-available bundles are as follows:

  • Tomcat bundle

  • Resin bundle

  • JonAs bundle

  • Jetty bundle

  • JBoss bundle

  • Sun Glassfish bundle

  • Apache Geronimo bundle

Database servers

We can connect Liferay Portal to the following database servers:

  • Apache Derby

  • IBM DB2

  • Firebird

  • Hypersonic

  • Informix

  • InterBase

  • JdataStore

  • MySQL

  • Oracle

  • PostgreSQL

  • SAP

  • SQL Server

  • Sybase

In this book, and at the sample site, we will run Liferay Portal with MySQL database. MySQL is the world's most popular open source database. The current version of Liferay Portal requires MySQL version 5.0 or above.

Time for action – installing MySQL database server


If you have not already installed the MySQL database, follow these steps to install the latest version of MySQL Community Server on your computer:

  1. Go to http://dev.mysql.com/downloads/ to download the MySQL database installation package. You will find the page similar to the following screenshot:

  2. Download a mysql-5.5.14-win32.msi file to a local directory. That file is Microsoft Installer (MSI) for MySQL database server.

  3. Double-click on the mysql-5.5.14-win32.msi file. A window pops up. Click on Run.

  4. Click on Next. Check the I accept the terms in the License Agreement and click on Next.

  5. For the setup type, choose Custom and click on Next.

  6. For the installation folder, browse to C:\mysql and click on Next:

  7. Click on Next. Click on Install.

  8. When the installation is done, leave Launch the MySQL Instance Configuration Wizard checked and click on Finish.

  9. Click on Next to configure the MySQL server.

  10. Select Standard Configuration and click on Next.

  11. Input the root password and click on Next.

  12. Click on Execute to perform configuration.

  13. When the configuration is done, click on Finish.

  14. Add C:\mysql\bin as a value in the Path system variable, as we did for Java.

  15. In a DOS window, type mysql –uroot –p on the command line. Press Enter.

What just happened?

The previous screenshot confirms that the MySQL database server has been installed successfully.

Web browser

You can use Firefox (3.0 and above), Internet Explorer (IE) (7.0 and above), Chrome, Safari, and Opera to browse a Liferay Portal site.

The ability of a web browser to access a website depends on the user interface (UI) technologies used in the development of that website. Because Liferay Portal is highly customizable, you may be able to interact with a customized Liferay Portal site with more varieties of browsers on the market.

A Liferay Portal theme decides most of the look-and-feel of a Liferay Portal site. In almost all situations, a client will develop a custom theme for their site. The user interface technologies that they use for their custom theme decide the accessibility of their site.

Liferay 6.0 CE uses Alloy user interface (Alloy UI). Alloy UI has combined the following technologies:

  • Hyper Text Markup Language 5 (HTML5)

  • Cascading Style Sheets Level 3 (CSS3)

  • Yahoo! User Interface Version 3 (YUI3)

HTML 5 defines the HTML elements in a webpage. It is used for the structure of a portal page. CSS3 is used to add styles to document object models (DOM). YUI3, which includes JavaScript API, is used to make the HTML elements dynamic.

HTML 5 is the latest revision of the HTML standard. HTML 5 is still a work in progress. However, Safari, Chrome, Firefox, and Opera already support some of its features in their latest versions. IE 9 will also be available to support some HTML 5 features.

Liferay Portal has a feature to support browsing in iPad and smart phones in its 6.1 CE version. This is achieved by detecting the screen layout of the device with JavaScript code. When the computer screen layout is 960px wide, Liferay Portal knows that it is a desktop computer or iPad in landscape mode; when the screen layout is 320px wide, Liferay Portal knows it is a smart phone in portrait mode. Liferay Portal will apply a corresponding Cascading Style Sheet (CSS) class, and thus adjust the dimensions of an image and other content on the portal page.

Installing OpenOffice

Liferay Portal has a feature to convert web content, wiki articles, and message board content into PDF files and files of other formats. This feature relies on the integration of the OpenOffice application. OpenOffice is an open source office software that consists of a word processor, a spreadsheet program, a drawing tool, and a math program.

Time for action – installing OpenOffice


We install OpenOffice on our computer by carrying out the following steps:

  1. Go to http://www.openoffice.org/ and download the latest version of OpenOffice.org for Windows.

  2. Save the OOo_${VERSION}_Win_x86_install-wJRE_en-US.exe file in a chosen folder.

  3. Double-click on the OOo_${VERSION}_Win_x86_install-wJRE_en-US.exe filename; this triggers the installation process.

  4. Click on Next, when you see the following pop-up window:

  5. Accept the default folder for unpacking and click on Unpack.

  6. Wait for the unpacking process to proceed.

  7. Click on Next when a new installation window shows.

  8. Input username and organization and click on Next.

  9. Use the Typical setup type and click on Next.

  10. Click on Install.

  11. Click on Finish, when the installation wizard is completed.

What just happened?

Congratulations! You have successfully installed OpenOffice on your computer!

Liferay Portal depends on a service provided by OpenOffice to convert files.

Time for action – starting OpenOffice service


To start the OpenOffice service, do the following:

  1. Enter DOS mode.

  2. Go to the C:\Program Files\OpenOffice.org 3\program directory; this is where OpenOffice is installed by default.

  3. Run the following command:

    soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard

A screenshot of the DOS window is as follows:

What just happened?

The previous command means that OpenOffice has started a service with the headless option. Now, this service will accept a request at port 8100. It is waiting for the request from a server, whose Internet Protocol (IP) address is 127.0.0.1, which means the local host.

We can check to see how the OpenOffice service is running.

Time for action – checking the OpenOffice service


To confirm that the OpenOffice service is running, perform the following steps:

  1. Right-click the Windows task bar.

  2. Click on Start Task Manager, and you will find a window similar to the following screenshot:

  3. You can see that the OpenOffice service is shown in the list of running processes in Windows.

  4. In the DOS window, run the netstat -anptcp command, which will show the network activities on the computer. The DOS window will show content similar to the following screenshot:

What just happened?

As you can see, a service is listening at port 8100 for a request from 127.0.0.1.

If you reboot your computer, this service will be stopped and gone, because you started it manually. So, a better choice is to set up this service as a Windows service, which will be started whenever your machine is rebooted.

Archive tools

You may install Liferay Portal in a bundle, such as liferay-portal-tomcat-${version}.zip , on your computer. If it is a Linux machine, you can run the unzip liferay-portal-tomcat-${version}.zip command to extract the files. On a Windows machine, an unzip tool may be already available, or you can download WinRAR at http://download.cnet.com/WinRAR-32-bit/3000-2250_4-10007677.html and install it to explode the ZIP file.

Pop quiz

Which of the following statements about the installation environment for Liferay Portal are true?

a. Liferay Portal can be installed on a laptop computer

b. Liferay Portal comes with a hypersonic in-memory database

c. Liferay Portal depends on Java Virtual Machine

d. All of the above

Summary


In this chapter, we have learned what Liferay Portal is. We now know the following facts about Liferay Portal:

  • Liferay Portal is a Java web application

  • Liferay Portal is a horizontal portal

  • Liferay Portal has award-winning features

In addition, we have talked about the environment for Liferay Portal to run, including hardware and software. We have also installed JDK, MySQL database server, and the OpenOffice application.

Now that the infrastructure is set, we are ready to install a Liferay Portal instance on our computer, which is the topic of Chapter 2,Installing a Liferay Portal Instance.

Left arrow icon Right arrow icon

Key benefits

What you will learn

Set up and run Liferay portal in an application server of your choice and configure with MySQL Database Apply a theme to portal pages and change their layouts Create communities, organizations and User groups Add users, create portal pages and apply permissions Create web content and publish content on portal pages Build community pages using out of box and custom portlets Set up social collaboration applications in the portal Configure and run an online store

What do you get with a Packt Subscription?

Free for first 7 days. $15.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details


Publication date : Dec 1, 2011
Length 396 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781849517003
Category :

Table of Contents

19 Chapters
Liferay Chevron down icon Chevron up icon
Credits Chevron down icon Chevron up icon
About the Authors Chevron down icon Chevron up icon
About the Reviewers Chevron down icon Chevron up icon
www.PacktPub.com Chevron down icon Chevron up icon
Preface Chevron down icon Chevron up icon
Planning Your Portal Chevron down icon Chevron up icon
Installing a Liferay Portal Instance Chevron down icon Chevron up icon
Understanding Portal Basics and Theming Chevron down icon Chevron up icon
Tips and Tricks-Advanced Configuration Chevron down icon Chevron up icon
Building your First Liferay Site Chevron down icon Chevron up icon
Managing Pages, Users, and Permissions Chevron down icon Chevron up icon
Creating and Publishing Content Chevron down icon Chevron up icon
Exploring Communities Chevron down icon Chevron up icon
Setting up an Online Shop Chevron down icon Chevron up icon
Liferay Server Administration Chevron down icon Chevron up icon
PayPal Test Account Configuration Chevron down icon Chevron up icon
Pop Quiz Answers Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Filter icon Filter
Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%

Filter reviews by


No reviews found
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.