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.

Compiling php

Discussion in 'General Discussion' started by sumittyagi, Jun 19, 2009.

  1. sumittyagi

    sumittyagi Member

    Joined:
    Jun 18, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    How can I compile php in the cpanel. I have to edit the options in php.ini and have to recompile it. any idea how to do it????
     
  2. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
    Use EasyApache
    su - to root.

    Run EasyApache

    /scripts/easyapache

    Select the options you want for your configuration.
     
  3. krizag

    krizag Member

    Joined:
    Jun 19, 2009
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    If you have root access, you can do it by ssh.

    use /scripts/easyapache --force for recompiling php.

    You can find the loaded php.ini file from the following command from shell:

    #php --info | grep php.ini
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Just to be clear and thorough, you do know that changing options in the PHP.INI file doesn't require you to recompile PHP, right?

    That said, if you do need to recompile such as for adding new features that were not included in the original compile, the easiest way to do this is actually manually building the source but EasyApache either from the shell or from WHM will work as well.
     
Loading...

Share This Page