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.

CURL Installation

Discussion in 'General Discussion' started by end.soldire, Jul 17, 2009.

  1. end.soldire

    end.soldire Member

    Joined:
    Jun 19, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    How to install CURL manually? (because i gone compile by easy apache then missing library)

    And how to install Ioncube Loader? ( i tray extarct ion loader and input code on php.ini file and restart httpd and get this error :

    httpd failed @ ... . A restart was attempted automagically.
    Service Check Method: [tcp connect]
    Failure Reason: Timeout while trying to get data from service )
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Cpanel does indeed have a bug with Curl but I think they may have already
    released an update for that so you might want to try to update your
    cpanel and try again.

    However, installing both curl and PHP manually is very easy too ...

    As far as curl goes:
    If you don't have yum, you can run this script to install manually:
    Code:
    #!/bin/bash
    IFS="$"
    
    cd /usr/local/src
    
    wget http://curl.haxx.se/download/curl-7.19.5.tar.bz2
    tar jxvf ./curl-7.19.5.tar.gz
    rm -f ./curl-7.19.5.tar.gz
    
    cd /usr/local/src/curl-7.19.5
    ./configure –prefix=/usr/local –with-ssl=/usr/include/openssl
    make
    #make test
    make install
    # End of Script
    
    Just copy the script to a file such as /usr/local/src/install-curl.sh and
    set the permissions to 700 (chmod 700) and then run it and it should
    download curl for you, unpack the archive, compile, and install.

    As far as PHP goes, basically you just grab the source from php.net,
    run ./configure with the options you want (current one shown with phpinfo),
    make, make test, and make install and that's pretty much it.

    (For much more detailed instructions, see my recent previous posts
    as I posted manual instructions for PHP several times over the past
    couple of weeks here in this forum community. I'm sorry I don't have
    the time to write the instructions again at the moment as I am getting
    ready to walk out the door but it is listed in my previous posts)


    As far as ioncube goes, it's even easier. Just download the binary for
    your specific system (most likely linux 32 bit or linux 64bit) and then place
    an "extension=" line in your php.ini file to load it and that's it! Ioncube
    also comes with an installer script to do this for you once you download it.
    (The links to both the 32 bit and 64 bit versions is embedded in this paragraph)

    To unpack the archive from either of the links above:
    Code:
    tar jxvf ./ioncube_loaders_lin*.tar.bz2
    
    After recompiling PHP or adding modules, you should restart your Apache server:
    Code:
    # service httpd restart
    # service httpd status
    
     
    #2 Spiral, Jul 17, 2009
    Last edited: Jul 18, 2009
  3. logicsupport

    logicsupport Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    a) first use /script/upcp --force and try easyapache once again

    b) Manual Installation of Curl

    1. cd /usr/local/src
    2. wget http://curl.haxx.se/download/curl-7.19.5.tar.gz
    3. tar zxf curl-7.19.5.tar.gz
    4. cd curl-7.19.5
    5. ./configure –prefix=/usr/local –with-ssl=/usr/include/openssl
    6. make
    7. make install

    This will install curl and associate it with openssl. *You of course will need to verify that openssl is in the directory /usr/local/openssl or modify the configure statement to match your installation directory.

    c) Installing IonCube Loader

    1. Download the program and store it on your server using wget or FTP.
    wget PHP Encoder, protection, installer and performance tools from ionCube: Loader Download

    2. tar -zxvf ioncube_loaders.tar.gz
    3. cd ioncube
    4. cp ioncube-install-assistant.php /home/username/public_html

    Then open it http://www.yourdomain.com/ioncube-install-assistant.php , this will help you to select the correct .so file for your server

    5. cd ..
    mv ioncube /usr/local

    6. vi /usr/local/lib/php.ini
    zend_extension = /usr/local/ioncube/ioncube_loader_lin_XX.so

    7. restart apache

    Hope this helps.
     
  4. end.soldire

    end.soldire Member

    Joined:
    Jun 19, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Very Thanks.
     
  5. logicsupport

    logicsupport Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Not a Problem end.soldire !! Hope the steps have helped you .

    Note to Spiral :

    Nice script !! But hope you have edited your post before we have posted . :D
     
Loading...

Share This Page