7. Websphere 6.0.2.5

Note: Throughout this installation and configuration process, Websphere will prompt you to Click Save to apply changes to Master Configuration. Do so intermittently to save your changes.

7.1. Installation

  1. Download Liferay Portal Professional 4.1.0 WAR , unzip and compile.

  2. Install IBM Websphere.

  3. Install MySql.

  4. Download and extract these liferay jars to websphere\appserver\lib\ext.

7.2. Set Up Database Service

  1. Start Websphere.

  2. Open Adminstrative Console and login.

  3. Click Resources, click JDBC Providers.

  4. Click Next.

  5. For name, enter name of jdbc provider, e.g. liferayjdbc.

  6. Clear any text in classpath.

  7. For Implementation class name enter com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource

  8. Click OK.

  9. Click Data sources under Additional Properties.

  10. Click New.

  11. Enter a name: liferaydatabasesource.

  12. Enter JNDI, jdbc/LiferayPool.

  13. Everything else should stay to default.

  14. Click OK.

  15. Under Additional Properties, click Custom properties.

  16. Click New.

  17. Create 3 custom properties by entering Name, Value and clicking OK for each row on this table.

    Table 1.1. 

    namevalue
    1. userroot
    2. serverNamelocalhost
    3. databaseNamelportal

  18. When done correctly, custom properties should look like this:

  19. Download Liferay Portal 4.1.0 SQL Scripts and extract create-mysql.sql.

  20. In command prompt, run mysql script by entering mysql < trunk\sql\create\create-mysql.sql

  21. Click data sources test connection to test.

7.3. Mail Configuration

  1. Click Resources, Mail providers.

  2. Click Built-in Mail Provider.

  3. Click Mail Sessions.

  4. Click New.

    1. Name: liferaymail

    2. JNDI name: mail/MailSession

  5. Click OK.

  6. Click Security.

  7. Click Global security.

  8. Select Enable global security.

  9. Deselect enforce java 2 security.

  10. In Active user registry, select custom user registry.

  11. Click Apply to go to Custom user registry page.

  12. Enter 'system' for server user ID.

  13. Enter 'password' for server user password.

  14. Enter Custom registry class name com.liferay.portal.security.jaas.ext.websphere.PortalUserRegistry.

  15. Click Apply.

  16. Insert username/password into database.

  17. Open a mysql console.

  18. Enter Use lportal

  19. Enter Insert into User_ (companyId, userId, password_) values ('system', 'system', 'password');

7.4. Install Liferay

  1. Click Applications, click Install new applications

  2. Browse for portal-ear\liferay-portal.war.

  3. Enter context root '/'.

  4. Click Next

  5. Select Generate Default Bindings>Override default bindings>Use default viral host name for web modules:

  6. Click Next. Click Continue. For Steps 1 to 4, click Next to apply defaults.

  7. In Step 5, check all authenticated.

  8. Click Next.

  9. Click Finish.

  10. Wait for installation process.

  11. Save this configuration to master configuration by clicking on System administration and Save Changes to Master Repository.

7.5. Start Liferay Portal

  1. Applications.

    1. Click Enterprise Applications.

    2. Uninstall DefaultApplication, PlantsByWebSphere and SamplesGallery.

    3. Select liferay-portal.war, click start

  2. Open up browser and point to http://localhost:9080. Liferay portal home page should be seen.

  3. Edit your Stop the Server shortcut to set the user id and password. If you don't do this, you will not be able to stop the server after you restart WebSphere: "C:\Program Files\WebSphere\AppServer\bin\stopServer.bat" server1 -user system -password password

  4. Stop Websphere and retart it. Login on with 'system' for username and 'password' for password.