magento installation error "PHP extension "curl" must be loaded"

magento installation error "PHP extension "curl" must be loaded"

July 17, 2026 · Illustrated author avatarBy Stefan Bogdanescu
magento installation error "PHP extension "curl" must be loaded"

Troubleshooting Magento Installation Error: “PHP extension ‘curl’ must be loaded”

If you’re encountering the error message “PHP extension ‘curl’ must be loaded” during your Magento installation process under the Configuration step following Localization, don’t panic! This is a common issue that can be easily resolved with the right steps.

Understanding the Error

The error occurs because Magento requires the CURL library to be enabled in order to function properly. CURL (Client for URLs) is a PHP extension used to handle file transfers and network protocols like FTP, SFTP, etc., which are crucial for Magento’s operations.

Step-by-Step Solution

1. Identify Your System Type

First, you need to determine whether you’re on a Linux-based system or Windows with WAMP/MAMP server. The solution varies slightly depending on your setup.

For Linux (Ubuntu/Debian systems):

  • Open your terminal.

  • Run the following command to check if the curl library is already installed:

    sudo apt-cache policy php7-curl
    

    If it shows as installed but not enabled, proceed to step 2. If it’s marked as “installed” and “enabled”, jump to step 3.

For Windows (WAMP/MAMP):

  • Open your WAMP manager.
  • Click on the PHP version you’re using in the left-hand menu.
  • Look for an option like “ext curl” or “php_curl.dll”. If it’s missing, proceed to step 2. If it’s present but not enabled, jump to step 3.

2. Install/Enable the CURL Library

For Linux:

  • Run the following command to install php7-curl:

    sudo apt-get install php7-curl
    
  • After installation, restart your web server (Apache or Nginx) for changes to take effect.

For Windows:

  • Download the php_curl.dll file from Laravel Company’s PHP extensions library.

  • Copy this file to your PHP’s extension folder, usually located at C:\wamp64\www\php70\ext\.

  • Open the php.ini file (usually found in the same directory as php.exe) with a text editor.

  • Search for “;extension=curl” and remove the semicolon to enable it:

    extension=curl
    
  • Save the changes and restart your WAMP/MAMP server.

3. Verify the Installation

For Linux:

  • Run php -m in your terminal to list all enabled PHP modules. You should see “curl” listed among them.

For Windows:

  • Open a browser and navigate to Laravel Company’s PHP info page.
  • Look for the “Loaded Extensions” section. If “curl” is present, you’ve successfully enabled it!

Conclusion

Remember, always ensure your server meets Magento’s system requirements before starting an installation. This includes having the necessary PHP extensions like curl, mbstring, and others pre-installed.

If you still face issues or need further assistance with Magento setup, feel free to explore our comprehensive guides on Magento installation and configuration at Laravel Company.

Happy coding!

Cache Extensions Configuration Orders

Our network