留言板
Liferay with Apache web Server
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
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
hi,
please try the following
http://etapix.com/2011/06/14/tomcat-6-0-26-liferay-6-and-apache-web-server-setup/
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
But on including the same I get the below error:
Please help me fix this .
Thanks in advance
Padmalaya
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
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
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
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
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.
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
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
David H Nebinger,修改在10 年前。
RE: Liferay with Apache web Server
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
I reposted it on Liferay.com as a blog entry here: http://www.liferay.com/web/26526/blog/-/blogs/fronting-liferay-tomcat-with-apache-httpd-daemon
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.
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.
You probably added BOM to your xml file.