Install Liferay 7 + PostgreSQL 9.5 on windows

Trabla: Install Liferay 7 ( Bundled with Tomcat ) + PostgreSQL 9.5.2 database  on windows


Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial

Liferay Portal is a free and open source enterprise portal software product. Distributed under the GNU Lesser General Public License and optional commercial license, Liferay has been declared "Best Open Source Portal" by InfoWorld in 2007. It is primarily used to power corporate intranets and extranets.

Written in Java, Liferay Portal is a web platform with features commonly required for the development of websites and portals. Liferay includes a built-in web content management system allowing users to build websites and portals as an assembly of themes, pages, portlets/gadgets and a common navigation. Liferay is sometimes described as a content management framework or a web application framework. Liferay's support for plugins extends into multiple programming languages, including support for PHP and Ruby portlets.
https://en.wikipedia.org/wiki/Liferay

Solving:

1. Download and install latest Java Development Kit ( JDK )
from official Oracle Site
http://www.oracle.com/technetwork/java/javase/downloads/index.html
( JDK 1.8.0_91 x64 was used in this tutorial  )

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 1

2. Download and install PostgreSQL 9.5.3 database from official site
https://www.postgresql.org/download/windows/
( PostgreSQL 9.5.3 x64 was used in this tutorial  )

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 2

NOTE:  while installing PostgreSQL database - remember superuser PASSWORD you entered !!!

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 3

3. Download Liferay 7.0 (bundled with Tomcat ) from official site
https://www.liferay.com/downloads

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 4

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 5


4. Create folder \liferay on disk C:\  e.g. C:\liferay
and copy all files from Liferay archive

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 6


5. Create Windows environment variable JAVA_HOME with path to JDK
e.g. C:\Program Files\Java\jdk1.8.0_91 

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 7


6. Create Windows environment variable CATALINA_HOME with path to tomcat folder
e.g. C:\liferay\tomcat-8.0.32

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 8

7. Run pgAdmin III - PostgreSQL  database GUI client
- create database lportal

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 9

Select owner - "postgres" and click "OK"

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 10


8. Now we are ready to install Liferay !!! :)
Run  startup.bat
C:\liferay\tomcat-8.0.32\bin

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 11


When server ready you will see following text in console

.....
09:16:26,828 INFO  [localhost-startStop-1][ThemeHotDeployListener:109] 1 theme f
or user-horizontal-theme is available for use
30-May-2016 09:16:28.198 INFO [localhost-startStop-1] org.apache.catalina.core.A
pplicationContext.log Initializing Spring FrameworkServlet 'Remoting Servlet'
30-May-2016 09:16:28.648 INFO [localhost-startStop-1] org.apache.catalina.startu
p.HostConfig.deployDescriptor Deployment of configuration descriptor C:\liferay\
tomcat-8.0.32\conf\Catalina\localhost\ROOT.xml has finished in 249,880 ms
30-May-2016 09:16:28.648 INFO [main] org.apache.coyote.AbstractProtocol.start St
arting ProtocolHandler ["http-nio-8080"]
30-May-2016 09:16:28.658 INFO [main] org.apache.coyote.AbstractProtocol.start St
arting ProtocolHandler ["ajp-nio-8009"]
30-May-2016 09:16:28.668 INFO [main] org.apache.catalina.startup.Catalina.start
Server startup in 249930 ms

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 12

9. Enter data to fields
Disabe checkbox "Add sample data"
Click "Change" - database settings - we need config PostgreSQL connection

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 13

10. Setup PostgreSQL connection params:
database lportal
user and password.

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 14

+ click "Finish Confiuration"

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 15

11. Now we need to restart Liferay
- run  shutdown.bat  e.g. C:\liferay\tomcat-8.0.32\bin\shutdown.bat
to stop Liferay
- run  startup.bat  e.g. C:\liferay\tomcat-8.0.32\bin\startup.bat
to start
Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 16


12. After restart Liferay is ready

Install Liferay 7 with PostgreSQL 9.5 on windows 7 tutorial 17


ATTENTION: To Sign In as admin
use login / password

test@liferay.com  / test

No comments:

Post a Comment