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.

Config PHP from Source

Discussion in 'General Discussion' started by hcoltrain, Oct 17, 2003.

  1. hcoltrain

    hcoltrain Member

    Joined:
    Jan 8, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I am very new to CPANEL and LINUX and need a hand with compiling PHP from source. Please excuse n00b questions, but I am excalty that, and could use a hand.

    Is the source for PHP in CPANEL or do I need to get it?
    I am thinking it is here
    /usr/include/php/main

    How do I configure via command line?
    './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' '--with-imap'

    make
    make install

    Is this correct if so what directory do I need to do it from?

    Do I need to do something with Apache? After or before I do this?

    Do I need to shutdown anything beforehand?
    Presently, I have a functioning CPANEL box, that got dropped on me to admin, and do not want to mess it up.

    Any help is greatly appreciated.

    Thanks,

    Harris C
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear hcoltrain,

    You can download php source from http://www.php.net/downloads.php If it is not present in your system. Download the file and untar it using the tar command. Then from the php directory run the command
    ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml
    --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysql --with-pear --enable-sockets --enable-track-vars
    --enable-versioning --with-zlib --with-imap

    make
    make install
    service httpd stop
    service httpd start
    This will complete the php installation.

    Regards,
     
Loading...

Share This Page