Foren
Liferay with Apache web Server
padmalaya pradhani, geändert vor 11 Jahren.
Liferay with Apache web Server
New Member Beiträge: 10 Beitrittsdatum: 16.03.12 Neueste Beiträge
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
Subhasis Roy, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
Expert Beiträge: 275 Beitrittsdatum: 20.01.12 Neueste Beiträge
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, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
New Member Beiträge: 10 Beitrittsdatum: 16.03.12 Neueste Beiträge
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, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
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, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
Liferay Legend Beiträge: 14914 Beitrittsdatum: 02.09.06 Neueste BeiträgeRavi 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, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
David, I will try the links shared by you as well.
Jitendra Pant, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
New Member Beiträge: 2 Beitrittsdatum: 31.01.13 Neueste BeiträgeDavid 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
Andrea Pravato, geändert vor 10 Jahren.
RE: Liferay with Apache web Server
New Member Beiträge: 3 Beitrittsdatum: 01.05.13 Neueste Beiträge
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, geändert vor 10 Jahren.
RE: Liferay with Apache web Server
Liferay Legend Beiträge: 14914 Beitrittsdatum: 02.09.06 Neueste Beiträge
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
Subhasis Roy, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
Expert Beiträge: 275 Beitrittsdatum: 20.01.12 Neueste Beiträgepadmalaya 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, geändert vor 11 Jahren.
RE: Liferay with Apache web Server
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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.