logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_proxy.so installation on linux
Author
cpkiran



Joined: 19 May 2015
Posts: 9
Location: Minneapolis,MN

PostPosted: Tue 19 May '15 23:22    Post subject: mod_proxy.so installation on linux Reply with quote

I have installed apache 2.2.29 on the linux box. But with the installation I dont have mod_proxy.so . I dont have the mod_proxy.so entry on httpd.conf file and dont have the file under ${apache_home}/modules folder. How can I install just mod_proxy.so in to apache.

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 20 May '15 10:50    Post subject: Reply with quote

Which linux do you use? What is the path to the other modules?
Back to top
cpkiran



Joined: 19 May 2015
Posts: 9
Location: Minneapolis,MN

PostPosted: Wed 20 May '15 14:55    Post subject: Reply with quote

we use RHEL 5.9 64-bit. all other modules are in the same directory as I mentioned below ${apache_home}/modules folder.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 20 May '15 17:01    Post subject: Reply with quote

In that case you have to compile it by yourself.
download the source from http://apache.webthing.com/mod_proxy_html/mod_proxy_html.tar.bz2

make sure you have libxml2 installed (development)

Code:

apxs2 -c -I /usr/include/libxml2 -I . -i mod_proxy_html.c


if that doesn't work you can also compile apache 2.4 (it has mod_proxy_html by default on board) https://github.com/JBlond/debian_build_apache24/tree/redhat
Back to top
cpkiran



Joined: 19 May 2015
Posts: 9
Location: Minneapolis,MN

PostPosted: Wed 20 May '15 17:52    Post subject: Reply with quote

Thank you. Is there any particular location on apache where I need to download the source (mod_proxy_html.c)
Back to top
cpkiran



Joined: 19 May 2015
Posts: 9
Location: Minneapolis,MN

PostPosted: Wed 20 May '15 18:12    Post subject: Reply with quote

I tried and I am getting below error.

./apxs -c -I /usr/include/libxml2 -I . -i {path}/mod_proxy_html.c
{apache}/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I{apache}/include -I{apache}/include -I{apache}/include -I/usr/include/libxml2 -I. -c -o {path}/mod_proxy_html.lo {path}/mod_proxy_html.c && touch {path}/mod_proxy_html.slo
{path}/mod_proxy_html.c:66:25: error: mod_xml2enc.h: No such file or directory
{path}/mod_proxy_html.c: In function ‘proxy_html_filter’:
{path}/mod_proxy_html.c:904: error: ‘ENCIO_OUTPUT’ undeclared (first use in this function)
{path}/mod_proxy_html.c:904: error: (Each undeclared identifier is reported only once
{path}/mod_proxy_html.c:904: error: for each function it appears in.)
{path}/mod_proxy_html.c: In function ‘mod_proxy_html’:
{path}/mod_proxy_html.c:1215: error: ‘apr_OFN_xml2enc_charset_t’ undeclared (first use in this function)
{path}/mod_proxy_html.c:1215: error: expected expression before ‘)’ token
{path}/mod_proxy_html.c:1216: error: ‘apr_OFN_xml2enc_filter_t’ undeclared (first use in this function)
{path}/mod_proxy_html.c:1216: error: expected expression before ‘)’ token
{path}/mod_proxy_html.c: In function ‘proxy_html_insert’:
{path}/mod_proxy_html.c:1230: error: ‘ENCIO_INPUT_CHECKS’ undeclared (first use in this function)
apxs:Error: Command failed with rc=65536

Is there any way I can include all the modules, if I reinstall apache again. Below is the install command I used while installed apache.
./configure --prefix={apache path} --enable-mods-shared=all
Back to top
cpkiran



Joined: 19 May 2015
Posts: 9
Location: Minneapolis,MN

PostPosted: Wed 20 May '15 20:21    Post subject: Reply with quote

I was able to reinstall apache with the proxy module..
Thanks for your help.
Back to top


Reply to topic   Topic: mod_proxy.so installation on linux View previous topic :: View next topic
Post new topic   Forum Index -> Apache