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.

Edit PHP Source And Compile via EasyApache

Discussion in 'EasyApache' started by Bahram0110, Sep 10, 2010.

  1. Bahram0110

    Bahram0110 Well-Known Member

    Joined:
    Dec 12, 2007
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Hi,
    I want to edit source of php engine and then compile it via easy apache.
    php is in /home/cpeasyapache/src/php-5.2.14
    when I edit some files and recompile apache & php with easy apache, all changes back to original.
    It seams, easy apache always get php source from remote server.
    Is there any Idea to do my changes?

    thank you
     
  2. Bahram0110

    Bahram0110 Well-Known Member

    Joined:
    Dec 12, 2007
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Is this cPanel forum?
    all of my topics are unanswered!
     
  3. GaryT

    GaryT Well-Known Member

    Joined:
    May 19, 2010
    Messages:
    321
    Likes Received:
    3
    Trophy Points:
    16
    You just have to wait and afterall its a weekend so thing are slow, Just be calm and you will get help, I'm sure :)

    As for your question, When updating it does get from the remote server so some applications / software and scripts needed to be updated manually.
     
  4. Bahram0110

    Bahram0110 Well-Known Member

    Joined:
    Dec 12, 2007
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    when weekend ended? :eek:
     
  5. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Maybe it would be more helpful if you could fill us in a little bit on what you are trying to achieve by editing the PHP source. If all you're looking to do is add support for a particular module or library, 99% of the time this can be done directly through EasyApache or one of it's include files.
     
  6. Bahram0110

    Bahram0110 Well-Known Member

    Joined:
    Dec 12, 2007
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Hi, Thank you for your reply.
    after many many many research I only have to recompile php source.
    I want to add some features to one of its functions.
    Can I recompile php without recompiling apache?

    I need gd, suphp, mysql, curl, zip, ... to be recompiled (Or unchanged and usable) too. Can I do this with ./configure
    Please help me.
     
  7. 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
    By default, cPanel/WHM runs PHP as SuPHP. However, if your server is not running PHP as SuPHP, just go to WHM -> Software -> EasyApache. If prompted to upgrade, do so then return to this screen. Then click on "Start customizing based on profile" (do not change the option box setting).

    The following screens will default to what you already have installed. Feel welcome to modify if you desire.

    When you get to step 5, you can check the checkbox next to SuPHP to enable SuPHP. Then, click on "Exhaustive Options List" - this brings you to step 6. Just check the checkbox next to the PHP modules you need (GD, MySQL, Curl, CurlSSL, Zip etc.) then click "Save and Build" and let EasyApache do its thing.
     
  8. Bahram0110

    Bahram0110 Well-Known Member

    Joined:
    Dec 12, 2007
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    hi,
    as I said, I want to recompile php via source, not via easyapache. Coz easyapache rollback any change in php source.
    I can see build command started with ./configure in phpinfo
    Can i recompile source with that commands to use current options like gd, mysql, suphp...
    Can i :
    install this extinctions with that command
    or i should add them later (after compilation)
    or i should get any extra sources and use it with compile compile process.

    Thank you.
     
  9. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    EasyApache builds Apache & PHP from source. The build system of EasyApache provides the ability to add all of the functionality you've mentioned needing thus far. For that reason I don't see why you should need to build Apache+PHP outside of the EA system. Furthermore, doing so is not supported by cPanel.
     
  10. Bahram0110

    Bahram0110 Well-Known Member

    Joined:
    Dec 12, 2007
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    I want to edit php engine source!
    EA rollback any change in source so I can not use it, (Or! Is there any way to configure EA to not fetch sources from remote servers?)
     
  11. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    What you are doing is akin to reinventing the wheel. Adding modules like GD, cURL, SuPHP, Zip, etc are all easily done through EasyApache and are retained through successive rebuilds even if you later decide to add more modules.

    That said, if you truly are looking to modify the PHP engine source itself, then you'll find (as has been hinted at) that cPanel does not support building custom source trees. You can submit a feature request if you feel so inclined.
     
  12. tcflying

    tcflying Member

    Joined:
    May 27, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    i have the same question. how can i add php-fpm for php5.2.17 ?
     
  13. 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
Loading...

Share This Page