Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Installation problems from port 8080 to 80
I am trying to get liferay to run with Tomcat6 on Ubuntu 10.10
I already have one instance running on an earlier version of Ubuntu so the database is already populated and its been confirmed to work. However, I can't get the new instance to run on port 80. I have moved /opt/liferay and /var/lib/tomcat6/ directories to the new box, installed the following apt-gets:
unzip tomcat6 libtcnative-1 apache2 libapache2-mod-jk mysql-server
I have altered my portal-ext.properties file with the correct db information. I have also moved the gwt jars over. When I load up my address in the browser (port 80) I see the default Apache2 message:
It works! This is the default web page for this server. The web server software is running but no content has been added, yet.
But when I go to my address:8080 I can see that Tomcat is running on this port. I have read that I can change the following file to make tomcat6 run on port 8080:
/etc/tomcat6/server.xml
and change the Connector Port. but my other instance hasn't changed this. So how is the old one working? I have read that when Tomcat6 works 'behind' apache you'll get better performance with things such as loading pages, images, script, etc.
Can I somehow make apache load up port 8080 by default? I've tried copying over apache2.conf file exactly and restarted apache2 and tomcat6, but to no avail.
I suppose my question is whats the best way to get liferay and tomcat6 to run on port 80 with the best performance?
Any advice would help, thanks!
I already have one instance running on an earlier version of Ubuntu so the database is already populated and its been confirmed to work. However, I can't get the new instance to run on port 80. I have moved /opt/liferay and /var/lib/tomcat6/ directories to the new box, installed the following apt-gets:
unzip tomcat6 libtcnative-1 apache2 libapache2-mod-jk mysql-server
I have altered my portal-ext.properties file with the correct db information. I have also moved the gwt jars over. When I load up my address in the browser (port 80) I see the default Apache2 message:
It works! This is the default web page for this server. The web server software is running but no content has been added, yet.
But when I go to my address:8080 I can see that Tomcat is running on this port. I have read that I can change the following file to make tomcat6 run on port 8080:
/etc/tomcat6/server.xml
and change the Connector Port. but my other instance hasn't changed this. So how is the old one working? I have read that when Tomcat6 works 'behind' apache you'll get better performance with things such as loading pages, images, script, etc.
Can I somehow make apache load up port 8080 by default? I've tried copying over apache2.conf file exactly and restarted apache2 and tomcat6, but to no avail.
I suppose my question is whats the best way to get liferay and tomcat6 to run on port 80 with the best performance?
Any advice would help, thanks!
I managed to fix this with the aid of this very useful tutorial:
http://rcpeters.blogspot.com/2009/05/installing-apache2-and-tomcat6-on.html
http://rcpeters.blogspot.com/2009/05/installing-apache2-and-tomcat6-on.html