The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I install Mod_Proxy on Cpanel Server???

Discussion in 'General Discussion' started by jclarkkent2003, Jan 4, 2006.

  1. jclarkkent2003

    Joined:
    Aug 8, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi
    I just got a fedora core 4 server with cpanel setup, and I need to setup apache before I setup any sites on it.

    I need to install mod_proxy and I believe the ONLY way to do that is to customly edit the easy apache files to include that module, YES I HAVE ALREADY TRIED APXS to include mod_proxy, and it did NOT work. It worked for vhost_alias but mod_proxy is very important.

    How do I safely build / compile apache on a CPANEL server with mod_proxy, and possibly, ALL of the modules that COME with apache, standard and non standard modules to be installed?

    Thanks in advance~!

    How do I build apache on my cpanel server with MOD_PROXY enabled and activated, and also how would I add other modules, such as ALL of them that come in the apache installation but are not turned on by default? I want to turn on the standard and non standard ones.

    I installed Mod_Vhost_alias using APXS and that worked, but APXS does not work for all the others, especially not Mod_proxy, I got a nasty error. I'd like to compile my apache with all the modules.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Search the forum.

    The topic of mod_proxy has been discussed in detail before.
     
  3. Jorel

    Jorel Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
  4. TheKog

    TheKog Active Member

    Joined:
    Dec 23, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Actually that old thread on mod_proxy is outdated as current cpanel systems do NOT have the apache source in cpbuildapache.

    For most of us manually rebuilding from the tarball is NOT an option.

    I am trying to get mod_proxy added as well and I would prefer it to be from the WHM interface for updating apache. Otherwise manual rebuilds will be contesting our other changes we have added via the WHM.

    Any current ideas on how to do this easily? We have apache 1.3.36 on a Centos server with a ton of virtual hosts -- dorking with apache is just not too feasible with that many folks running.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It most certainly does have the apache source, otherwise it couldn't build it. Just checked on a server I rebuilt apache+php in today.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Certainly is on mine:
    Code:
    ls -la /home/cpapachebuild/buildapache/apache_1.3.36
    total 488
    drwxr-xr-x   8  501 games  4096 Jul 24 16:03 ./
    drwxr-xr-x  15 root root   4096 Jul 24 16:06 ../
    -rw-r--r--   1  501 games 14787 Nov 24  2004 ABOUT_APACHE
    -rw-r--r--   1  501 games  4511 May 14 14:02 Announcement
    -rw-r--r--   1  501 games  6353 Nov 24  2004 Announcement.de
    -rw-r--r--   1  501 games  7280 Nov 24  2004 Announcement.ja
    drwxr-xr-x   2  501 games  4096 May 14 14:10 cgi-bin/
    drwxr-xr-x   7  501 games  4096 Jul 24 16:02 conf/
    -rw-r--r--   1  501 games  9430 Nov 24  2004 config.layout
    -rwxr-xr-x   1 root root    695 Jul 24 16:02 config.status*
    -rwxr-xr-x   1 root root  55000 Jul 24 16:02 configure*
    -rw-r--r--   1 root root    920 Jul 24 16:02 configure.rej
    drwxr-xr-x   3  501 games  4096 Jul 24 16:02 htdocs/
    drwxr-xr-x   3  501 games  4096 May 14 14:11 icons/
    -rw-r--r--   1  501 games 27989 Nov 24  2004 INSTALL
    -rw-r--r--   1 root root  28259 Mar 30  2001 INSTALL.SSL
    -rw-r--r--   1  501 games 20365 Dec  6  2004 LICENSE
    -rw-r--r--   1 root root   3368 May  8 08:15 LICENSE.SSL
    drwxr-xr-x   2  501 games  4096 May 14 14:10 logs/
    -rw-r--r--   1 root root  36488 Jul 24 16:02 Makefile
    -rw-r--r--   1 root root  36407 Jul 24 16:02 Makefile.tmpl
    -rw-r--r--   1  501 games   748 Dec  6  2004 NOTICE
    -rw-r--r--   1  501 games  3972 Oct 31  2005 NWGNUenvironment.inc
    -rw-r--r--   1  501 games  1940 Nov 24  2004 NWGNUhead.inc
    -rw-r--r--   1  501 games  1174 Oct 10  2005 NWGNUmakefile
    -rw-r--r--   1  501 games  7922 Apr 21 19:40 NWGNUtail.inc
    -rw-r--r--   1  501 games  2075 Nov 24  2004 README
    -rw-r--r--   1  501 games 11162 Nov 24  2004 README.configure
    -rw-r--r--   1 root root   6988 Oct 13  2000 README.SSL
    -rw-r--r--   1  501 games  4094 Nov 24  2004 README-WIN.TXT
    drwxr-xr-x  11  501 games  4096 Jul 24 16:03 src/
    -rw-r--r--   1  501 games  1316 Nov 24  2004 WARNING-WIN.TXT
    
    Try running easyapache again to recreate it.
     
  7. TheKog

    TheKog Active Member

    Joined:
    Dec 23, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Well I can't find it on our server and it most certainly is not in /home/cpapachebuild/buildapache as that old thread says it will be.

    I wonder where the dang source is that WHM is using when it rebuilds?
     
  8. TheKog

    TheKog Active Member

    Joined:
    Dec 23, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Thank you Chirpy but I am running on a new Centos server at ServerBeach and it aint on mine:

    root@server [/home/cpapachebuild/buildapache]# ls -l
    total 7888
    drwxr-xr-x 10 root root 4096 Jul 26 11:32 ./
    drwx------ 3 root root 4096 Jul 26 11:29 ../
    -rw-r--r-- 1 root root 1383 May 13 15:48 apache_1.3.29-nouids
    -rw-r--r-- 1 root root 9416 May 13 15:48 apache_1.3.29-php-suexec-mod_ssl-patch
    -rw-r--r-- 1 root root 9599 May 13 15:48 apache_1.3.29-php-suexec-patch
    -rw-r--r-- 1 root root 13365 May 13 15:48 apache_1.3.31-php-suexec-mod_ssl-patch
    -rw-r--r-- 1 root root 13119 May 13 15:48 apache_1.3.31-php-suexec-patch
    -rw-r--r-- 1 root root 13365 May 13 15:48 apache_1.3.32-php-suexec-mod_ssl-patch
    -rw-r--r-- 1 root root 13119 May 13 15:48 apache_1.3.32-php-suexec-patch
    -rw-r--r-- 1 root root 1732 May 13 15:48 apache_1.3.33-amd64regex-patch
    -rw-r--r-- 1 root root 13365 May 13 15:48 apache_1.3.33-php-suexec-mod_ssl-patch
    -rw-r--r-- 1 root root 13119 May 13 15:48 apache_1.3.33-php-suexec-patch
    -rw-r--r-- 1 root root 1732 May 13 15:48 apache_1.3.34-amd64regex-patch
    -rw-r--r-- 1 root root 13365 May 13 15:48 apache_1.3.34-php-suexec-mod_ssl-patch
    -rw-r--r-- 1 root root 13119 May 13 15:48 apache_1.3.34-php-suexec-patch
    -rw-r--r-- 1 root root 1732 May 24 06:27 apache_1.3.36-amd64regex-patch
    -rw-r--r-- 1 root root 13365 May 24 06:27 apache_1.3.36-php-suexec-mod_ssl-patch
    -rw-r--r-- 1 root root 13119 May 24 06:27 apache_1.3.36-php-suexec-patch
    drwxr-xr-x 2 root root 4096 May 16 19:16 apache2-fp/
    -rw-r--r-- 1 root root 1973 May 13 15:48 apache-child.patch
    -rw-r--r-- 1 root root 515 May 13 15:48 apache.fdsetsize.patch
    drwxr-xr-x 2 root root 4096 May 16 19:16 Attic/
    -rwxr-xr-x 1 root root 104 May 13 15:48 bs*
    -rw-r--r-- 1 root root 1407 May 31 01:11 build15modlist
    -rwxr-xr-x 1 root root 17994 May 31 02:59 buildapache*
    -rw-r--r-- 1 root root 32221 May 24 06:26 buildapache-1.3.36.diff
    drwxr-xr-x 2 root root 4096 Jul 26 11:38 build-log/
    -rw-r--r-- 1 root root 1373 May 31 00:04 buildmodlist
    -rwxr-xr-x 1 root root 26315 Jul 26 11:30 buildscript*
    -rwxr-xr-x 1 root root 3703 May 24 23:03 callbacklog*
    -rwxr-xr-x 1 root root 996 May 24 15:04 checkapsetup*
    -rwxr-xr-x 1 root root 393 May 13 15:48 checkdeadperlso*
    -rwxr-xr-x 1 root root 101 May 13 15:48 checkdirs*
    -rwxr-xr-x 1 root root 655 May 13 15:48 checkkernelheaders*
    -rwxr-xr-x 1 root root 1972 May 25 08:21 checkrpms*
    -rw-r--r-- 1 root root 2675 Jun 5 20:52 config.pl
    drwxrwxrwx 8 1000 1000 4096 Jul 26 11:31 curl-7.15.3/
    -rw-r--r-- 1 root root 1818520 Jul 26 11:30 curl-7.15.3.tar.gz
    -rwxr-xr-x 1 root root 3143 May 13 15:48 editlib.pl*
    -rw-r--r-- 1 root root 36699 May 13 15:48 expat.h
    -rwxr-xr-x 1 root root 391 May 31 04:30 fetchfile*
    -rw-r--r-- 1 root root 33332 May 13 15:48 fp-patch-apache_1.3.31-5.0
    -rw-r--r-- 1 root root 1131 May 13 15:48 gd.diff
    -rwxr-xr-x 1 root root 123 May 13 15:48 hasjavac*
    -rwxr-xr-x 1 root root 6959 May 13 15:48 htmlgcc*
    -rw-r--r-- 1 root root 34217 May 13 15:48 httpd.conf.tmpeditlib
    -rwxr-xr-x 1 root root 2082 May 13 15:48 installjava*
    -rwxr-xr-x 1 root root 464 May 31 03:37 java_prereq*
    -rwxr-xr-x 1 root root 452 May 13 15:48 killmoddav*
    -rw-r--r-- 1 root root 885 May 13 15:48 libssl64.patch
    -rwx------ 1 root root 330 May 25 08:08 libssl-autofix*
    -rw-r--r-- 1 root root 295 May 13 15:48 limit.patch
    drwxr-xr-x 2 root root 4096 Jun 5 20:53 lxdialog/
    -rw-r--r-- 1 root root 0 Jun 5 20:52 lxmenu
    -rw-r--r-- 1 root root 784 May 13 15:48 mailman-suexec.patch
    -rw-r--r-- 1 root root 57 May 13 15:48 Makefile
    -rw-r--r-- 1 root root 621 May 13 15:48 mbstring.patch
    -rw-r--r-- 1 root root 357 May 13 15:48 ming.patch
    -rw-r--r-- 1 root root 31918 May 24 07:03 mod_frontpage.c
    -rw-r--r-- 1 root root 564 May 13 15:48 mod_frontpage.diff
    -rwxr-xr-x 1 root root 1282 May 13 15:48 modgzipconfmods*
    drwxr-xr-x 2 root root 4096 Jun 5 20:51 modules/
    -rwxr-xr-x 1 root root 217 May 30 23:51 mysqlphp_prereq*
    -rwxr-xr-x 1 root root 273 May 13 15:48 mysqlstring*
    -rwxr-xr-x 1 root root 307 May 13 15:48 nomodattach*
    -rwxr-xr-x 1 root root 331 May 13 15:48 nomodauthmysql*
    -rwxr-xr-x 1 root root 151 May 13 15:48 nomodfrontpage*
    -rwxr-xr-x 1 root root 295 May 13 15:48 nomodgzipconfmods*
    -rwxr-xr-x 1 root root 293 May 13 15:48 nomodperl*
    -rwxr-xr-x 1 root root 313 May 13 15:48 nomodroaming*
    -rwxr-xr-x 1 root root 296 May 13 15:48 nophp4*
    -rwxr-xr-x 1 root root 296 May 13 15:48 nophp5*
    -rwxr-xr-x 1 root root 300 May 13 15:48 nophpsuexecmodconf*
    -rw-r--r-- 1 root root 9231 May 16 18:29 php-4.3.11.lib64.patch
    -rw-r--r-- 1 root root 10741 May 16 18:29 php-4.4.1.lib64.patch
    drwxr-xr-x 17 1000 1000 4096 Jul 26 11:36 php-4.4.2/
    -rw-r--r-- 1 root root 10660 May 16 18:29 php-4.4.2.lib64.patch
    -rw-r--r-- 1 root root 5461440 Jul 26 11:32 php-4.4.2.tar.gz
    -rw-r--r-- 1 root root 11158 May 16 18:29 php-5.0.4.lib64.patch
    -rw-r--r-- 1 root root 10450 May 16 18:29 php-5.0.5.lib64.patch
    -rwxr-xr-x 1 root root 586 May 31 00:17 php5_prereq*
    -rw-r--r-- 1 root root 672 May 13 15:48 php-curlfix.patch
    -rw-r--r-- 1 root root 838 May 13 15:48 php-gdfix.patch
    -rw-r--r-- 1 root root 9231 May 16 18:29 php-generic.lib64.patch
    -rw-r--r-- 1 root root 891 May 13 15:48 php-libtool15.patch
    -rwxr-xr-x 1 root root 1199 May 16 18:29 phpsetup*
    -rw-r--r-- 1 root root 548 May 13 15:48 php-suexec-4.3.2.patch
    -rwxr-xr-x 1 root root 1022 May 16 18:29 phpsuexecmodconf*
    -rwxr-xr-x 1 root root 888 May 13 15:48 regsrep.pl*
    -rwxr-xr-x 1 root root 3675 May 31 03:20 reporterrors*
    -rwxr-xr-x 1 root root 1072 May 24 08:59 restorevhosts*
    -rwxr-xr-x 1 root root 756 May 13 15:48 savevhosts*
    drwxr-xr-x 3 root root 4096 May 2 18:56 scripts/
    -rw-r--r-- 1 root root 234 May 13 15:48 suexec+httpsvar.patch
    -rw-r--r-- 1 root root 1140 May 13 15:48 suexec-httpusergroupallow.patch
    -rw-r--r-- 1 root root 3006 May 13 15:48 suexec.patch
    -rw-r--r-- 1 root root 1666 May 13 15:48 suexec+php-httpusergroupallow.patch
    -rw-r--r-- 1 root root 3846 May 13 15:48 suexec+php.patch

    As I saud before when we rebuild apache from WHM it looks like existing binaries are combined with several pieces that are dynamically built then linked in.
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Have you, by any chance, ticked WHM > Apache Update > Skip Apache Build if up to date? IF so, then that's probably why. Untick it, then rerun easyapache.
     
  10. TheKog

    TheKog Active Member

    Joined:
    Dec 23, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Well I think I found the deal. The module is actually prebuilt and just waiting for inclusion via httpd.conf -- lol sorry for the trouble. Clearly the distribution is a bit different, probably to speed up apache rebuilds.
     
  11. TheKog

    TheKog Active Member

    Joined:
    Dec 23, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    OK one more question. I found mod_proxy.so, which is a DSO that is ready for loading on Centos. The problem is I put

    LoadModule proxy_module modules/mod_proxy.so

    into httpd.conf and apache won't start using the WHM restart httpd function. Where can I get some insight into the problem?

    I copied it over to usr/local/apache/libexec with the rest of the other modules and changed the ref to libexec/mod_proxy.so and still no go.

    Man is this getting frustrating.

    BTW I did have the box checked not to rebuild apache if up to date but aparrently this shouldn't be necessary because mod_proxy.so is built -- now it's just a matter of configuration.
     
  12. merm

    merm Member

    Joined:
    Aug 24, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    This is exactly what I needed. I couldn't find the directory I was looking for either following these instructions but it appears that mod_proxy is already prebuilt.
     
  13. fernandoaleman

    fernandoaleman Registered

    Joined:
    Sep 29, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    If mod_proxy.so is prebuilt, where is it?

    If mod_proxy.so is prebuilt, where is it? What step do I need to start on to get the mod proxy working on my server and see it in cPanel?
     
  14. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    To compile mod_proxy with Apache on cPanel/WHM, go to WHM -> Software -> Apache Update. Continue with your configuration until you get to Profile :: Apache :: PHP Main :: PHP Specific :: Basic. Then click on "Advanced Configuration" and select mod_proxy then proceed to build Apache.
     
  15. xeonex

    xeonex Well-Known Member

    Joined:
    Mar 20, 2005
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    hello i did as you sugest but there is no way to get it running

    To compile mod_proxy with Apache on cPanel/WHM, go to WHM -> Software -> Apache Update. Continue with your configuration until you get to Profile :: Apache :: PHP Main :: PHP Specific :: Basic. Then click on "Advanced Configuration" and select mod_proxy then proceed to build Apache.
     
  16. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you have proceeded through the compile process for Apache (it takes about 15 minutes) and mod_proxy is still not working for you, I would recommend you submit a support ticket directly to us regarding this issue.
     
Loading...

Share This Page