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.

Recompiling Apache

Discussion in 'EasyApache' started by Millar, Feb 8, 2007.

  1. Millar

    Millar Active Member

    Joined:
    Dec 23, 2006
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    If I want to recompile apache but keep edits I made the the source header files ../apache/include/blah.h how can I do this? Is there a way to recompile apache using shell acces without loosing the changes made?

    Thanks in advnaced,
    Millar.
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    The local path to Apache source files is /home/cpapachebuild/buildapache
    You can modify the *.h file and then re-compile Apache at the command line. BTW, the cPanel/WHM comes with its own Apache "customed" distribution.
     
  3. Millar

    Millar Active Member

    Joined:
    Dec 23, 2006
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Where in the /buildapache dir would I find the file that would be installed to /apache/include/httpd.h I looked in the /buildapache dir and couldn't find it?
     
  4. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Assuming you are using CentOS: /home/cpapachebuild/buildapache/apache_1.3.37/src/include/httpd.h
    /home/installd/buildapache/apache_1.3.37/src/include/httpd.h
    there is another file in: /usr/local/apache/include/httpd.h

    RHE:
    /home/cpapachebuild/buildapache/apache_1.3.37/src/include/httpd.h
     
  5. Millar

    Millar Active Member

    Joined:
    Dec 23, 2006
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Sorry for bringing back my old topic, but I am still trying to do this.

    FYI I am using Fedora 5.

    The file in /usr/local/apache/include/httpd.h does nothing when I edit it, doesn't make a difference.

    Both /home/cpapachebuild/buildapache/apache_1.3.37/src/include/httpd.h and /home/installd/buildapache/apache_1.3.37/src/include/httpd.h don't exist, there is no directory /apache_1.3.37/

    Any more help would be apprechiated.

    Thx.
     
Loading...

Share This Page