The error message “Extension file ‘curl’ must be loaded” indicates that the cURL extension is not enabled on your Magento website’s server. This extension is required for certain features of Magento to function properly, such as communication with external APIs. You may need to contact your web hosting provider or server administrator to enable the cURL extension.
Here are the steps to enable the cURL extension on a server for Magento:
- Login to your server using SSH or FTP.
- Locate the php.ini file. You can use the command “php –ini” to find the file path.
- Open the php.ini file using a text editor.
- Search for the following line: “;extension=curl”
- Remove the semicolon at the beginning of the line to enable the extension.
- Save the changes to the php.ini file and close it.
- Restart the web server to apply the changes. You can use the command “service apache2 restart” for Apache servers or “service nginx restart” for Nginx servers.
- Verify that the cURL extension is now enabled by creating a PHP info file and checking for the “curl” module under the “Loaded Modules” section.
;extension=curl
to
extension=curl
Once you have completed these steps, the cURL extension should be enabled on your server and Magento should be able to use it.