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.

Internal PHP

Discussion in 'General Discussion' started by silversurfer, Dec 21, 2007.

  1. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    18
    Hi

    I have recompiled PHP for CPanel using /script/makecpphp. It appears it is now installing to /var/cpanel instead of /usr/local/cpanel.

    How can we change it back to /usr/local/cpanel?
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Did you try re-compiling Php using EA3?
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What problems are you experiencing by having it in /var/cpanel/3rdparty? Or is it simply a matter of running 3rdparty scripts/applications not being aware of the new location?

    For AndyReed:

    /scripts/makecpphp now installs the internal PHP binary in /var/cpanel/3rdparty. It is a simple script that calls EasyApache 3 to do all the 'heavy lifting'
     
  4. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    18
    Yes, I did read the script and understood as much and concluded that it's hardcoded into easyapache3 since it doesn't appear to be in the yaml configuration.

    The problem is that /var has typically been for storing logs, configurations etc. As such, on all 300+ of our cpanel servers we mount it as noexec. Putting it in /var breaks our cpanel and we are really prefer not have to open up one additional partition to just to run cpanel (which didn't use to need it) or have to edit hundreds of servers mount parameters.

    It's work we don't need.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    OK, thank you for the information.
     
  6. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    18
    Does that mean that light is at the end of the tunnel ? :)

    Currently we actually symlink it back to the old location... I don't prefer such patch work.
     
Loading...

Share This Page