Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2003
    Posts
    20

    Default Config PHP from Source

    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. #2
    Member
    Join Date
    Sep 2003
    Posts
    389

    Default RE: Config PHP from Source

    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,

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  2. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  3. PHP 4.4.0 and Source Guardian
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-04-2007, 08:10 AM
  4. PHP Source
    By hcoltrain in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2003, 02:32 PM
  5. Compiling php from source
    By haze in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2002, 02:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube