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.

Modifying php and re-compiling

Discussion in 'General Discussion' started by fxars, Oct 1, 2009.

  1. fxars

    fxars Registered

    Joined:
    Aug 28, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I've done this on non-cPanel servers, modifying PHP and re-compiling.

    How do I do that on a cPanel server? Where do I find the php source on a cPanel server?

    Do I use shell commands or the admin web interface?
    === Al
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    To modify the PHP settings you will have to login in WHM --> Easy Apache (Apache Update) from the Software Section.

    If you would like to modify the PHP configuration then you can configure it from the WHM --> PHP Configuration Editor from the Service Configuration Section.
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Personally, I think manual compiling is far better if you have any experience in that as you say that you do ;)

    However, Cpanel provides an interface to configure and setup both PHP and Apache called EasyApache and it is accessible on the web from the main WHM adminstrator panel or from the SSH shell.

    In WHM, it's pretty obvious and you can select it from the menu.

    In SSH, type /scripts/easyapache to get started.

    If you want to manual compile your PHP (as I prefer) ....
    Code:
    # cd /usr/local/src
    # wget http://us3.php.net/get/php-5.2.11.tar.bz2/from/this/mirror
    # tar jxvf ./php-5.2.11.tar.bz2
    # cd php-5.2.11
    # ./configure  !!! WHATEVER OPTIONS YOU WANT !!!
    # make
    # make check
    # make install
    
     
Loading...

Share This Page