Results 1 to 6 of 6

Thread: how to enable or install curl on linux red hat

  1. #1
    Join Date
    Dec 2008
    Beans
    17

    how to enable or install curl on linux red hat

    Hello everybody

    I know that this forum is for Ubuntu , but i thought that you might help me in redhat distribution

    I want to istall curl package for php5 , all i read about is that if you want to install curl you need to recompile the php , the problem is im talking about the company server that im working in , so i cant change any configuration for php .

    I dont want to make any mistake in php , so problems wont happen.

    So is there a way that i can install this package without recompiling the php..

    in ubunto it is alot easier to install this package ...
    but in redhat commands are different . and im ubuntu user ..

    so any body can give me a hand

    Thank you guys for your support.

  2. #2
    Join Date
    Sep 2006
    Beans
    3,170
    Distro
    Ubuntu Karmic Koala (testing)

    Re: how to enable or install curl on linux red hat

    Did you install the apache or php via packages or compiled yourself?If you compiled them you have to recompile.

  3. #3
    Join Date
    Dec 2008
    Beans
    17

    Re: how to enable or install curl on linux red hat

    Hello binbash

    Well to make things clear this server is a dedicated server from planet .
    so when we I mean the company bought the server , everything were set up ..
    so i didnt do anything , and things were greate .
    now there is a need to use curl functions in php , so i need to enable it in the php which is in the server (redhat) , i have no clue how to deal with redhat or how to add a package to php , thats why im afraid from post which says to recompile php with curl package.

    so is there any easy way to do that ?
    Im really sorry if Im asking too much ..

    Thank you for your kindness

  4. #4
    Join Date
    Sep 2006
    Beans
    3,170
    Distro
    Ubuntu Karmic Koala (testing)

    Re: how to enable or install curl on linux red hat

    Hey my_everything78

    You have to recompile the php with '--with-curl=/opt/curl/' (/opt/curl is the dir where is curl)

    I STRONGLY suggest sticking to a good howto.AND compile apache, php and curl
    (DonT forget to install development packages like curl-devel etc, else you will see errors while compiling)

  5. #5
    Join Date
    Dec 2008
    Beans
    17

    Re: how to enable or install curl on linux red hat

    Hello binbash

    First thank you so much for fast responding ..
    Second , I guess Im kinda confused ...

    is there any documentation that can show me in a simple way step by step what to do from the start..

    as I told you im a newbie in Ubunto , regarding redhat I never even istalled it . so my knowledge there is zero..

    so is it possible to find such a documentation ...
    I dont want to mess things in the server

    Thank again for you support ..
    You so kind

  6. #6
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Edubuntu 8.04 Hardy Heron

    Re: how to enable or install curl on linux red hat

    Quote Originally Posted by my_everything78 View Post
    Hello everybody

    I know that this forum is for Ubuntu , but i thought that you might help me in redhat distribution

    I want to istall curl package for php5 , all i read about is that if you want to install curl you need to recompile the php , the problem is im talking about the company server that im working in , so i cant change any configuration for php .

    I dont want to make any mistake in php , so problems wont happen.

    So is there a way that i can install this package without recompiling the php..

    in ubunto it is alot easier to install this package ...
    but in redhat commands are different . and im ubuntu user ..

    so any body can give me a hand

    Thank you guys for your support.
    What version of Fedora / Red Hat are you using ?

    Code:
    cat /etc/redhat-release
    Edit: Well, anyway. Having to re-compile PHP for curl support was in old versions. just do,

    Code:
    # yum install curl curl-devel
    Then restart your httpd server,

    Code:
    # service httpd restart
    That should sort you out. Also make sure your server is fully updated,
    Code:
    # yum update
    Last edited by YeOK; February 17th, 2009 at 01:28 AM.

Bookmarks

Posting Permissions

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