Comments on Installing Liferay 6.0.5 Community Edition Bundled With Tomcat On Ubuntu 10.04
Installing Liferay 6.0.5 Community Edition Bundled With Tomcat On Ubuntu 10.04 Liferay Portal is an enterprise web platform for building business solutions that deliver immediate results and long-term value. Get the benefits of packaged applications and an enterprise application framework in a single solution.
6 Comment(s)
Comments
Hi,
I cannot understand why you are installing Java6 this way.
I would go for
sudo apt-get install sun-java6-jdk sun-java6-plugin
Once done, run the
sudo update-java-alternatives -s java-6-sun
command and finally add the line “/usr/lib/jvm/java-6-sun” to the top of the /etc/jvm file (sudo pico /etc/jvm
). Save and exit.
To test your Java(TM) setup in the terminal type:-
java -version
If you get an output like below, then you are done!
java version “1.6.0? Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
I sure the way the way you would install java will work fine. After 10 days of failed atempts at getting Liferay to work this was the way I got it going for the first time, so I wrote this tutorial that way.
You can use iptables to redirect (nat) port tcp/80 to tcp/8080 so that users don't have to enter the specific port for the liferay portal.. see google for some configuration examples.
Or adjust $LIFERAY_HOME/conf/server.xml:
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8" />
nano /etc/profile
Insert the following lines on a new line at the bottom of the file:
export JAVA_HOME=/usr/java/jdk1.6.0_21
export LIFERAY_HOME=/usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26
export PATH=$JAVA_HOME/bin:$LIFERAY_HOME/bin:$PATH
i don't get i where should I place it
i tried putting it at the bottom part but still it does not work
and im not sure on step b, c, and d on step b can i use wget to download java i cant seem to find the right one im currently using vm player 4 for my ubuntu 12.04 and step c is the code really like this:chmod +x jdk-6u21-linux-x64.bin
./jdk-6u21-linux-x64.bin and not like this chmod +x jdk-6u21-linux-x64.bin./jdk-6u21-linux-x64.bin?
lastly how to to insert the code in step d and where exactly i should place it i can't type it there