aws, amazon linux 2,

Install PHP Curl on Amazon Linux 2

Jan 26, 2023 · 1 min read · Post a comment

As a PHP Developer, you might need to send or receive files over HTTP. With the PHP Curl module, you can even use proxies or pass data over SSL connections. Let’s see how to install the PHP Curl module on Amazon Linux 2.


  • Amazon Linux 2
  • sudo privileges
  • PHP installed

Install PHP Curl on Amazon Linux 2

Step 1. Install php-curl.

sudo yum install php-curl

Step 2. Restart your Web Server service whether it’s apache or nginx.

Step 3. Verify the installation.

echo "<?php phpinfo(); ?>" > /var/www/html/info.php

Step 4. Access the file (info.php) in the browser.



Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.