Hi there! In the last two months I had to perform many Liferay instalations with different configurations, here I put some quick notes for a clean installation of Liferay (for version 5.2.3 and 6.0.1 RC1) very necessary if we want to develop applications on Liferay.

Liferay Portal 6.0.1 RC1 Liferay Portal 6.0.1 RC1

  1. Unzip liferay-portal-XXX.zip in %LIFERAY_HOME%
  2. Change the default portsand avoid conflicts. Edit the file %LIFERAY_HOME%\tomcat-YYY\conf\server.xml and change the follow ports:

    8080 -> 9090
    8005 -> 9005
    8443 -> 9443
    8009 -> 9009

  3. Edit the Pool connection in %LIFERAY_PORTAL%\tomcat-YYY\webapps\ROOT\WEB-INF\classes\portal-ext.properties (this file is not included in 5.2.3 and 6.0.1 bundle)

    jdbc.default.jndi.name=jdbc/LiferayPool

  4. Edit %LIFERAY_HOME%\tomcat-YYY\conf\Catalina\localhost\ROOT.xml file and to add database (i.e. mysql) connection.
    ROOT.xml

    […]

    […]

  5. Ensure that the MySQL JDBC Driver exists in %LIFERAY_HOME%\tomcat-YYY\lib\ext folder.
  6. Create an empty Database with the necessary rights. Execute the follow sql command:

    CREATE DATABASE lportal_db CHARACTER SET utf8;
    GRANT ALL ON lportal_db.* TO “YourUserName“@”localhost”;

  7. Start Liferay Portal server. Execute %LIFERAY_HOME%\tomcat-YYY\bin\startup.bat These notes also apply to linux too.
    Bye.