Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8555867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:13:19+00:00 2026-06-11T15:13:19+00:00

I am currently trying to enable cURL on my EC2 server (free tier). I

  • 0

I am currently trying to enable cURL on my EC2 server (free tier).

I have installed php5_curl and I am able to run curl through php via SSH.

I am using the following file to see whether cURL has been installed correctly.

testCurl.php

<?php
    function _iscurlsupported() {
            if (in_array ('curl', get_loaded_extensions())) {
                return true;
            }
            else {
                return false;
            }
    }

    if (_iscurlsupported()) {
            echo "cURL is supported\n";
    }
    else {
            echo "cURL isn't supported\n";
    }
?>

The command via ssh: php testCurl.php displays that curl is supported.
The command when I access it through a brower displays that curl ISN’T supported.

I have checked the php.ini file located in php5/apache2 (the php.ini file that the browser loads (tested through another script)) and the extension is no where to be found.

I have checked the “extensions_dir” directory located on my server and the curl.so file is located there.

I am unsure why I am unable to run curl when accessing my script via the browser.

Any help would be greatly appreciated.

Cheers,
jt234

Note: If you require any more information please ask.
My problem is similar (if not the same as) Unable to use PHP curl on amazon ec2 free tier but the issue hasn’t been resolved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:13:21+00:00Added an answer on June 11, 2026 at 3:13 pm

    In the end of your php.ini file add the line:

    extension=curl.so
    

    if you want to find where it is located you can run over SSH:

    $ locate curl.so
    

    it should be in something close to: /usr/lib/php5/20090626+lfs/curl.so

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to reconfigure a Apache server to be able to use another
I'm trying to enable some basic commands via email. Currently I have shared hosting
I'm trying to enable screenshots of the page a logged in user is currently
I'm currently trying to implement a socket server that enables the clients to send
I'm currently trying out Aptana Studio 3 for PHP development (I'm pretty new to
I'm trying to enable Game Center Leaderboard to my iPad game and I have
I'm currently trying to put into place Jquery UI to enable drag and drop
I'm currently trying to create FULLTEXT indexes into my database (Microsoft SQL Server 2005).
I am currently trying to make a game in Android. I have this piece
i am currently trying to enable the translator in Symfony 2.0. Symfony is ignoring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.