Introduction

While trying to install purge module, in my Drupal site, I got this error while trying to enable the module.

Unable to load dynamic library '/usr/lib/php/modules/curl.so'

That was in my /var/log/messages file.

Unable to load dynamic library '/usr/lib/php/modules/curl.so' | How to solve it

First install the php-curl package, (This is only meant for Arch Linux)

pacman -S php-curl

Then enable the module in the /etc/php/php.ini configuration file, by uncommenting this line.

extension=curl.so

Finally restart apache

/etc/rc.d/httpd restart

Now, you have solved your problem.