Toggle navigation

Liferay Image Guide

Version 7.0

Websoft9 Liferay stack is a pre-configured, ready to run image for running Liferay on Alibaba Cloud.

Liferay Portal is an open source enterprise web platform for building business solutions that deliver immediate results and long-term value. Liferay Portal started out as a personal development project in 2000 and was open sourced in 2001.

Application Software(Liferay7.0)
Liferay install directory: /opt/liferay-ce-portal
Liferay configuration directory:/opt/liferay-ce-portal/查无此文件)

Tomcat directory: /opt/liferay-ce-portal/tomcat-8.0.32
Tomcat manager: http://Internet IP Address/manager,the Admin Account is in the file /root/password.txt

Database data directory:  /var/lib/mysql
Database configuration File: /etc/mysql/mysql.conf.d/mysqld.cnf
Database log files: / var/log/mysql
Default username and password is in the file /root/password.txt

After the installation of Image,please verify it

  • Login on Alibaba Cloud console,get you Internet IP Address
  • Open you Chrome or Firefox on your local PC,visit the http://Internet IP Address and you can enter the ReportLiferay’s start page directly,if there no response from browser,please check the Security Group settings to ensure that port 80 is been allowed

First please complete the domain resolution if you want to use domain for this application (Add an A record to the Internet IP Address of Server from Domain Control Panel),then access the installation page and complete the installation wizard for the following steps:

  1. Using local Chrome or Firefox to visit http://domain or http://Inernet IP Address,go to the Login page below:
  2. Filling the Account information(Email is the usename of your Account),Click the “Filish Configuration” button,then you can enter the system below

  3. Configure the Database(the database account information is in the file :/root/password.txt )
    //get the password of database
    root@iZuf68djk0smqc7aiy3sh1Z:~# cat /root/password.txt
    MySql root Password :Xqev3zfZKnM=

  4. Set your Password Reminder
  5. Log in to the Liferay as administrator

Three usernames and passwords are required for application installation, application using, andapplication maintenance:

  1. Liferay:Username is the the email you set and Password is /root/password.txt
  2. MySQL Database:Default username and password is in the file /root/password.txt

    root@iZuf68djk0smqc7aiy3sh1Z:~# cat /root/password.txt
  3. Linux Server:Username is root,Password is set by youself when buying.
    Please Using the Putty for ssh remote and WinSCP for SFTP

Note:You can reset the password of OS through Cloud Console if you have forgotten it

Connect to a Linux instance using Windows OS

This section uses PuTTY as an example. PuTTY can be downloaded here.

You can connect to a Linux instance via PuTTY as follows:

  1. Start Putty.exe.
  2. Enter the public IP address of the instance in Host Name (or IP address).
  3. Use the default port 22.
  4. Select SSH as Connection Type.
  5. Type a session name in Saved Sessions, and then click Save. In later logins, you may directly load the session without re-entering the IP address.
  6. Click Open to connect.
  7. Upon first connection, the following dialog box will be displayed. Click Yes.
  8. As prompted, enter the username and password for the Linux ECS instance. The password will not be displayed on-screen. Press the Enter key to complete connection to the instance.

When you connect your computer to the Linux instance successfully, you can operate the instance from your computer.

Use SFTP you can mange file,upload and download file,configure Server.

  1. Start WinSCP. Login Dialog will appear.
  2. Then select your File protocol(SFTP) on the dialog
  3. Enter your host name to Host name field, username to User name and password to Password like below
  4. You may want to save your session details to a site so you do not need to type them in every time you want to connect. Press Save button and type site name.
  5. When appear the dialog below,please select the “yes”
  6. You can manane Linux file below
  7. WinSCP can integrate the Putty and transfer the log in information to Putty
  8. Now you can use Putty(Not need to log in) from the menu bar of WinSCP

You can use the command to manage the services for Server.Please choose the corresponding command mode according to different types of operating system

  • Tomcat Service
    tomcat命令: ~/liferay-tomcat start/stop #启动/停止
  • MySQL Service
    ~# systemctl restart mysql

Use domain you should complete the following steps:

If you want use Domain for this application,you should complete below steps:

  1. Domain resolution if you want to use (Add an A record to the Internet IP Address of Server from your Domain Control Panel).e.g,If you using the AliCloud Domain product,you should log in to your Domain Console Panel
  2. Modiy the Tomcat vhost configuration(not necessary for only one application in this Server)

Coming soon

This document is original from Websoft9.In order to ensure the seriousness and usability of the documentation, no one may misappropriate or modify the second distribution. The need for friends reproduced please mark the source, otherwise we reserve the right to give legal action.

We will periodically update the documentation. Please visit the online documentation for the latest version

This document URL:
Support & Partnership: