« Back to Development...

Development Environment (Fedora Linux)

Table of Contents [-]

Notes from installing Liferay 4.3.2 on a basic 386 box September 27, 2007

Install Fedora Core 6

        Base System
                less Games
                less Java
        Server

Apply all Fedora updates

Install JavaSE 6

        # ./jdk-6u2-linux-i586-rpm.bin
        # update;locate javac | grep bin
        # alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_02/bin/java 100
        # alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_02/bin/jar 100
        # alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_02/bin/javac 100
        # /usr/sbin/alternatives --config java
                select /usr/java/jdk1.6.0_02/bin/java

Set JAVA_HOME

        # vi /etc/profile
        # add export JAVA_HOME=/usr/java/jdk1.6.0_02

Setup Liferay directory

        # cd /usr/local
  1. mkdir liferay

extract liferay-portal-tomcat-5.5-jdk5-4.3.2.zip into the new directory

  1. cd /usr/local/liferay/bin/
  2. chmod +x .sh
  3. ./startup.sh

(system works at this point using HSQL database)

Continue...

        # ./shutdown.sh

Install MySQL Database with Package Manager Install phpMyAdmin with Package Manager

Allow access to phpMyAdmin

        # vi /etc/httpd/conf.d/phpMyAdmin.conf
                Alias /phpMyAdmin /usr/share/phpMyAdmin
                <Directory /usr/share/phpMyAdmin/>
                order deny,allow
                deny from all
                allow from 127.0.0.1
                allow from ###.###.###.###
                </Directory>

Start httpd service Start mysqld service

Secure the MySQL database and setup Liferay database

        # mysqladmin -u root password **mypassword**
        # mysql -u root -p
        > create database lportal character set utf8;
        > \q

Point Liferay to the new database

        Download the MySQL JDBC driver from http://dev.mysql.com/downloads/connector/j/5.0.html
        # mv /root/Desktop/mysql-connector-java-5.0.7-bin.jar /usr/local/liferay/common/lib/ext
        # vi /usr/local/liferay/conf/Catalina/localhost/ROOT.xml
                (Comment out the default database (hypersonic) and Remove the comment out tags for the MySQL entry making sure that the database name matches what was created. Enter the user name and password to access the database.)
        # cd /usr/local/liferay/bin/
        # ./startup.sh

(system now works with the MySQL database)

Related Articles #

Building and deploying Liferay 4.1 using MySQL on Linux

Development Environment (Ubuntu Linux)

0 Attachments
8323 Views
Average (0 Votes)
Comments

Showing 0 Comments