留言板

Liferay with Apache web Server

padmalaya pradhani,修改在11 年前。

Liferay with Apache web Server

New Member 帖子: 10 加入日期: 12-3-16 最近的帖子
Hi

Can any one help me with simple steps of running liferay instance on apache web server.

I did follow the documentation available in wiki, however the same is not helpful.

Thanks in advance

Padmalaya
thumbnail
Subhasis Roy,修改在11 年前。

RE: Liferay with Apache web Server

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
hi,

please try the following

http://etapix.com/2011/06/14/tomcat-6-0-26-liferay-6-and-apache-web-server-setup/
padmalaya pradhani,修改在11 年前。

RE: Liferay with Apache web Server

New Member 帖子: 10 加入日期: 12-3-16 最近的帖子
Hi Subhasis ,

Thanks for the link!!

I could see I need to make changes in server.xml of Tomcat server and add the following lines

<listener classname="”org.apache.jk.config.ApacheConfig”" forwardall="”false”" noroot="”false”" modjk="”/usr/lib/apache2/modules/mod_jk.so”" confighome="”/etc/apache2″" jkconfig="”/etc/apache2/conf/mod_jk.conf”" jkworker="”localtomcat”" jklog="”/var/log/apache2/mod_jk.log”" jkdebug="”debug”" workerconfig="”/etc/apache2/workers.properties”/"></listener>


But on including the same I get the below error:

WARNING: Catalina.start using conf/server.xml: 
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.


	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:554)



Please help me fix this .

Thanks in advance

Padmalaya
thumbnail
Ravi Kumar Gupta,修改在11 年前。

RE: Liferay with Apache web Server

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
If I wanted apache in front of liferay, I would be following just two steps. And none of those is on liferay server.
1. Enable mod_proxy, mod_proxy_http
2. Add conf for

<IfModule proxy_module>
<IfModule proxy_http_module>

#
# Reverse Proxy
#
ProxyRequests Off
ProxyPreserveHost Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://rkg.test:8080/
ProxyPassReverse / http://rkg.test:8080/
</IfModule>
</IfModule>

HTH
thumbnail
David H Nebinger,修改在11 年前。

RE: Liferay with Apache web Server

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Ravi Kumar Gupta:
If I wanted apache in front of liferay, I would be following just two steps. And none of those is on liferay server.
1. Enable mod_proxy, mod_proxy_http
2. Add conf for


Then you would totally be missing out on the advantages of Apache, including serving static files.

My favorite apache + tomcat reference is here: https://www.dnebinger.com/wiki/-/wiki/Setup+and+Configuration/Fronting+Liferay+Tomcat+with+Apache+HTTPd+daemon
thumbnail
Ravi Kumar Gupta,修改在11 年前。

RE: Liferay with Apache web Server

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
David, I will try the links shared by you as well. emoticon
Jitendra Pant,修改在11 年前。

RE: Liferay with Apache web Server

New Member 帖子: 2 加入日期: 13-1-31 最近的帖子
David H Nebinger:
Ravi Kumar Gupta:
If I wanted apache in front of liferay, I would be following just two steps. And none of those is on liferay server.
1. Enable mod_proxy, mod_proxy_http
2. Add conf for


Then you would totally be missing out on the advantages of Apache, including serving static files.

My favorite apache + tomcat reference is here: https://www.dnebinger.com/wiki/-/wiki/Setup+and+Configuration/Fronting+Liferay+Tomcat+with+Apache+HTTPd+daemon


The link is not working, can you share me some other link where you described it
thumbnail
Andrea Pravato,修改在10 年前。

RE: Liferay with Apache web Server

New Member 帖子: 3 加入日期: 13-5-1 最近的帖子
I have re-found that, searching in google the title of the article: http://www.liferay.com/web/26526/blog/-/blogs/fronting-liferay-tomcat-with-apache-httpd-daemon
thumbnail
David H Nebinger,修改在10 年前。

RE: Liferay with Apache web Server

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
thumbnail
Subhasis Roy,修改在11 年前。

RE: Liferay with Apache web Server

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
padmalaya pradhani:


But on including the same I get the below error:

WARNING: Catalina.start using conf/server.xml: 
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.

	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:554)





The Exception occurs when there is some special UTF-8 characters inside a XML file, and SAX’s parser is not configure to parse the UTF-8 properly. I guess there is some special characters in your xml file. Can you please do one thing.

Try to put the double quotes again. I mean to say

forwardAll=”false” --> In this line delete the quote and then again put the quote using key board. Don't copy and paste it from the example I have given.
thumbnail
Hitoshi Ozawa,修改在11 年前。

RE: Liferay with Apache web Server

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Ravi's right. You don't need to edit tomcat server's server.xml file.
You probably added BOM to your xml file.