The clean install of Liferay Portal Community Edition (V. 5.2.3) is fairly straight forward.
At first you’ll need the portal. You can obtain it for free from the liferay-website. There you’ll find two versions on the download page: The Enterprise Edition and the Community Edition. For this tutorial I’ll use the community edition.
After downloading the edition you’ll extract it to your favorite place.
When extracted you’ll find a liferay folder and within this folder you’ll find a tomcat folder. Within the webapps folder of the tomcat directory are two webapps: sevencogs-hook and sevencogs-theme. These both should be deleted. They belong to the demo-data which we didn’t want to install.
After removing these webapps you’ll change to the WEB-INF/classes of the ROOT webapp. Which is also located in the webapps folder of the tomcat. Within this folder you should create an portal-ext.properties. And fill it with these settings:
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=liferay
jdbc.default.password=<password>
schema.run.enabled=true
schema.run.minimal=true
The first four lines define the database connection. The mentioned database and (of course) the user have to be created before starting the portal. Please adjust the database-settings for your needs. That means change databasename, host, username, password, etc. to the values you’ve got on your platform.
The last two lines are settings for the portal. The first activates the schema generation (tables etc. should be created) and the second is the setting which tells the portal only to insert only the minimal data for the portal. This setting set to true avoids that the demo-data is inserted in the database.
Now, that everything is done, you can start the portal using the startup script in the tomcat-<version>/bin/ directory.
After starting you can sign in using the default user/pass of liferay. Now you’ve got a clean installation of the “Liferay Portal Community Edition”.