Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
padmalaya pradhani
Liferay with Apache web Server
8. Mai 2012 02:47
Antwort

padmalaya pradhani

Rang: New Member

Nachrichten: 10

Eintrittsdatum: 15. März 2012

Neue 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
Subhasis Roy
RE: Liferay with Apache web Server
8. Mai 2012 02:59
Antwort

Subhasis Roy

Rang: Regular Member

Nachrichten: 223

Eintrittsdatum: 19. Januar 2012

Neue Beiträge

hi,

please try the following

http://etapix.com/2011/06/14/tomcat-6-0-26-liferay-6-and-apache-web-server-setup/
padmalaya pradhani
RE: Liferay with Apache web Server
8. Mai 2012 03:26
Antwort

padmalaya pradhani

Rang: New Member

Nachrichten: 10

Eintrittsdatum: 15. März 2012

Neue 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

 1<Listener className=”org.apache.jk.config.ApacheConfig”
 2forwardAll=”false”
 3noRoot=”false”
 4modJk=”/usr/lib/apache2/modules/mod_jk.so”
 5configHome=”/etc/apache2″
 6jkConfig=”/etc/apache2/conf/mod_jk.conf”
 7jkWorker=”localtomcat”
 8jkLog=”/var/log/apache2/mod_jk.log”
 9jkDebug=”debug”
10workerConfig=”/etc/apache2/workers.properties”/>


But on including the same I get the below error:

1WARNING: Catalina.start using conf/server.xml:
2com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
3
4
5    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
6    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
RE: Liferay with Apache web Server
8. Mai 2012 03:50
Antwort

Ravi Kumar Gupta

Rang: Liferay Legend

Nachrichten: 1145

Eintrittsdatum: 23. Juni 2009

Neue 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
Subhasis Roy
RE: Liferay with Apache web Server
8. Mai 2012 04:30
Antwort

Subhasis Roy

Rang: Regular Member

Nachrichten: 223

Eintrittsdatum: 19. Januar 2012

Neue Beiträge

padmalaya pradhani:


But on including the same I get the below error:

1WARNING: Catalina.start using conf/server.xml:
2com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
3
4    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
5    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.
David H Nebinger
RE: Liferay with Apache web Server
8. Mai 2012 05:10
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 6455

Eintrittsdatum: 1. September 2006

Neue Beiträge

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
Hitoshi Ozawa
RE: Liferay with Apache web Server
8. Mai 2012 07:01
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue 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.
Ravi Kumar Gupta
RE: Liferay with Apache web Server
8. Mai 2012 10:07
Antwort

Ravi Kumar Gupta

Rang: Liferay Legend

Nachrichten: 1145

Eintrittsdatum: 23. Juni 2009

Neue Beiträge

David, I will try the links shared by you as well. emoticon
Jitendra Pant
RE: Liferay with Apache web Server
6. Februar 2013 02:07
Antwort

Jitendra Pant

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 31. Januar 2013

Neue Beiträge

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
Andrea Pravato
RE: Liferay with Apache web Server
1. Mai 2013 02:56
Antwort

Andrea Pravato

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 1. Mai 2013

Neue 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
RE: Liferay with Apache web Server
1. Mai 2013 05:27
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 6455

Eintrittsdatum: 1. September 2006

Neue 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