zabbix
Closed Thread
Results 1 to 10 of 10

Thread: How do I install Curl?

  1. #1
    Join Date
    Jun 2009
    Posts
    10

    How do I install Curl?

    Hi,
    [url]http://curl.haxx.se[/url]

    wget [url]http://curl.haxx.se/download/curl-7.*6.0.tar.gz[/url]
    tar -pxzf curl-7.*6.0.tar.gz
    cd curl-7.*6.0
    ./configure --with-ssl
    make
    make install
    ldconfig -v

    Then use --with-curl in PHP's configure

    For use with Perl use
    [url]http://curl.haxx.se/libcurl/perl/[/url]

    wget [url]http://curl.haxx.se/libcurl/perl/WWW-Curl-2.0.tar.gz[/url]
    tar -pxzf WWW-Curl-2.0.tar.gz
    cd WWW-Curl-2.0
    perl Makefile.PL
    make
    make install


    #######
    We also had problems usign Curl to talk to a new geotrust cert, curl did not recognise the CA signing authority. Using the command line -k will not worry about the signing auth in PHP use curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

    In the end Geotrust supplied a cert

    This needed to be appended onto
    /usr/local/share/curl/curl-ca-bundle.crt

    Also refer to
    [url]http://curl.haxx.se/docs/sslcerts.html[/url]
    Thanks & regards
    Lokananth
    [url=http://www.mioot.com/]Live Chat Software[/url] By miOOt

  2. #2
    Join Date
    Sep 2009
    Posts
    2
    We also had problems usign Curl to talk to a new geotrust cert, curl did not recognise the CA signing authority. Using the command line -k will not worry about the signing auth in PHP use curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

    In the end Geotrust supplied a cert

    This needed to be appended onto
    /usr/local/share/curl/curl-ca-bundle.crt
    ______________________________
    Last edited by gordo; 09-02-2009 at 08:41 AM.

  3. #3
    Join Date
    Sep 2009
    Posts
    1
    *. Create a file in your web server (in Ubuntu it would be in /var/www folder), name it info.php
    2. Open that file and type this command:

    <?php phpinfo(); ?>

    *. Save that file
    4. Open your favorite browser and open that file (ex: [url]http://localhost/info.php[/url])
    5. Now you will see the Information about your PHP installation
    6. Search for Curl, and if you cannot find it, it mean your php doesnít have curl installed.
    _____________________________________________
    [url=http://www.ebariatricsurgery.com/WhattoExpect.php]What to Expect after Bariatric Surgery[/url]
    [url=http://labface.com/suppliers/Laboratory-Microscopes-*4*]laboratory microscopes[/url]

  4. #4
    Join Date
    Oct 2009
    Posts
    1
    How can i install cURL on my cPanel server?
    Solution

    There are two common types of cURL installs on most cPanel servers.¬ The first is a binary install, this is where the cURL binary (program) sits on your server (usually in /usr/bin) and can be run via the CLI or script.¬ The second method is to have cURL built into PHP so that PHP's cURL functions can be used in PHP code.¬ Below explains how to install each.

    ¬ Installing the Binary Version on All versions of CentOS/RHEL/Fedora:

    *. Log into the server via SSH or console as root.
    2. Run the following command:

    yum install curl curl-devel

    *. When prompted to confirm the installation press y.

    CURL is now installed and should reside in /usr/bin/curl

    ¬ Adding cURL support into PHP:

    *.¬ Log into the server via SSH or console as root.
    2.¬ Run the following command:

    /scripts/easyapache

    *.¬ Select 'Start customizing based on profile', leaving 'Previously Saved Config' checked.
    4.¬ Select the version of¬ Apache¬ you would like to run.
    5. Select the branch and version of PHP you would like on the next two pages (it is not recommended to run both PHP 4 and 5).
    6. Select 'Exhaustive Options List' on the following page.
    7.¬ Scroll down to the PHP configuration section to¬ cURL, and¬ proceed to th enext stop¬ (cURL-SSL can also be¬ enabled).
    8.¬ Select 'Save¬ and Build',¬ and let the compilation run its course (usually takes *5-20 minutes).
    ______________________________________________
    [url=http://www.y*.com/search-results/**44*/whack-my-boss]whack my boss[/url]
    [url=http://www.fujixerox.com.au/]Copiers[/url]

  5. #5
    DAIRYMILK Guest
    I resolved the problem. Thank You very much for helping me...

    this is what I used so that I could do the post thingie:
    I will surely figure it out how to do it with the other script

    Once Again I thank you very much

    <?php
    $url = 'http://example.com/cgi-bin/sp.pl';
    $params = "name=your_name&email=youremail@mail.com&subject=a pealing texudo&body=go to hell";
    $user_agent = "Mozilla/4.0 (compatible; MSIE 5.0*; Windows NT 5.0)";

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_POST,*);
    curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,*);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // this line makes it work under https

    $result=curl_exec ($ch);
    curl_close ($ch);

    echo("Results: <br>".$result);
    ?>
    =====================================================
    [url=http://www.ispcompared.com/high-speed.htm]dial up internet providers[/url] [url=http://www.carpartswarehouse.com/mercury-parts/]mercury parts[/url]

  6. #6
    Join Date
    Oct 2009
    Posts
    3

    How do I install Curl

    Thanks for sharing. If you can please write one more tutorial on how to install ASP on local pc.

  7. #7
    Join Date
    Oct 2009
    Posts
    11
    thank....gilbertsavier


  8. #8
    Join Date
    Nov 2009
    Posts
    2

    How do I install Curl

    I've found references in the docs for .tab.visible but I'm not sure how to use this to hide individual tabs of a tabstrip. Anyone care to give an example?

  9. #9
    Join Date
    Nov 2009
    Posts
    2
    Once again thank you very much for the assistance. I have made sure that all required *.dll's are in the \system*2 directory(I think?). Still nothing. The extension_dir in php.ini file reads like this (extension_dir = e:\php\extensions) and the windows extension is uncommented and looks like this (extension=php_curl.dll). However, when I look at the PHP info here it does not show anything about cURL being enabled or disabled. Perhaps there is something missing from my php.ini file? Going on * days with this problem, I'll have to throw a party to celebrate this accomplishment. hehe I'm still curious on the cURL install? Once again, all I've done with the cURL *.zip is unzip the file to a root directory. Nothing has been done with the environment variables. Does PHP require the cURL.exe?
    ________________________________________________
    [url=http://www.castinglove.net]randki dating Rancontre[/url]
    [url=http://www.home-mortgage-reviewing.com/200*/0*/mortgage-rates.html]mortgage rates[/url]

  10. #10
    Join Date
    Nov 2009
    Posts
    2
    I tried this on my centos installation and it said that no suitable C compiler could be found in $PATH. I am wondering how to solve this, and what an acceptable C compiler would be anyway. Any tips? The config log says that it is checking for gcc, ** and cl.exe and it canít find them. Mmm, what to do ???
    ======================================
    [url=http://www.NashvilleLuxuryHomes-Estates.com]Nashville Homes for Sale[/url]
    [url=http://www.imagineloghomes.com/]Custom Log Home Designs[/url]

Closed Thread

Similar Threads

  1. Best *Remote Install* Spy Softwares?
    By dr. acula in forum Internet Privacy
    Replies: 6
    Last Post: 08-03-2012, 04:52 AM
  2. How to install PHP on Apache?
    By gilbertsavier in forum Programming
    Replies: 16
    Last Post: 01-08-2010, 05:24 AM
  3. Program with install shield
    By MaxHeadRoom in forum Security & Encryption
    Replies: 3
    Last Post: 01-01-2008, 04:46 PM
  4. What firewall is better to install?
    By willmiller in forum Internet Privacy
    Replies: 4
    Last Post: 01-25-2007, 11:56 AM
  5. RE-Install Shareware Soft
    By wxyz in forum Internet Privacy
    Replies: 1
    Last Post: 03-08-2006, 03:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts