Running Liferay for the First Time
Once you’ve installed Liferay DXP/Portal and configured a database for it, it is ready to run.
Start the Server
-
Run the startup script bundled with your application server. Tomcat bundle example:
./liferay-dxp-version/tomcat-version/bin/startup.sh
noteBy default, DXP writes log files to
[Liferay Home]/logs
.The Setup Wizard appears in your web browser at
http://localhost:8080
. -
Set your portal’s Name, Default Language and Time Zone.
-
Set the Administrator User first name, last name, and email address.
-
In the Database section, click Change to display the database form.
warningDO NOT use HSQL in production-grade Liferay DXP instances.
-
Specify your database.
Field | Description |
---|---|
Database Type | Select the database type to connect to |
JDBC URL | Update the path to the database that you have created for Liferay DXP |
User Name | Database user name |
Password | Database user password |
6. Regarding Sample Data: If you’re creating a production-grade DXP instance or otherwise don’t need the data, leave the sample data field unselected. The sample data includes Users, Sites, and Organizations for demonstration purposes.
7. Click Finish Configuration.
The Setup Wizard stores your configuration values in a portal-setup-wizard.properties
file in your Liferay Home.
If you have a Liferay DXP Enterprise subscription, DXP requests your activation key. See Activating Liferay DXP.
Lastly DXP prompts you to restart your server.
Restart the Server
Restart your server using the shutdown and startup scripts bundled with your application server. Tomcat example commands:
Shutdown
./liferay-dxp-version/tomcat-version/bin/shutdown.sh
Startup
./liferay-dxp-version/tomcat-version/bin/startup.sh
DXP initializes using the database and portal configuration values you specified in the Setup Wizard. The DXP home page appears at http://localhost:8080
.
Congratulations! You have launched your on premises Liferay DXP instance.
Next Steps
You can sign in as your administrator user and start building a solution on DXP/Portal. Or you can explore additional setup topics: