cURL not available, please install cURL and try again!

Robdenio

New Member
I've been searching the web for hours trying to figure out a solution but cant for the life of me figure out how to fix this issue.

I believe i have found what the issue is *see image below*
Not all of MailWizz components have been installed.



I'm using a digital ocean VPS - This is the first time i have ever used a vps, so this is completely new to me.

When i try to activate MailWizz i get this error



This obviously correlates to the first image, not all components are installed, but i don't have a clue how to install them and where. If anyone has a moment i would really appreciate your help.

I have attached more images with server information etc.



 

twisted1919

Administrator
Staff member
Okay, then i think, from command line you can install the missing extensions with:
Code:
apt-get install php-gd2 php-curl php-zip php-pecl-zip
Then restart the web server with:
Code:
systemctl restart httpd nginx
It's fine if some of the above commands tell you that a package has not been found or a service is unknown.
 

Robdenio

New Member
root@box:~# apt-get install php-gd2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-gd2
root@box:~# php-pecl-zip
php-pecl-zip: command not found
root@box:~# apt-get install php-gd2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-gd2
root@box:~# apt-get install php-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-curl is already the newest version (2:7.4+71+ubuntu18.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
root@box:~# apt-get install php-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-zip is already the newest version (2:7.4+71+ubuntu18.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
root@box:~# apt-get install php-pecl-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-pecl-zip
root@box:~# systemctl restart httpd nginx
Failed to restart httpd.service: Unit httpd.service not found.
Failed to restart nginx.service: Unit nginx.service not found.
root@box:~#
 

SillyWilly

New Member
Hey Rob, I had the same issue with a DO server yesterday.

Via ssh run the following two commands:

sudo apt update

then

sudo apt install curl

Cheers
 

Abraham Anthony

New Member
I managed to sort the problem.

I created new server with centos instead of ubuntu and installed perfectly
Run these commands and it should solve the problem
  1. First install CURL by typing sudo apt install curl.
  2. Then Restart Apache by typing sudo service apache2 restart.
  3. Then install PHP5 CURL by typing sudo apt install php7.2-curl ( this depends on the version of php you have you can check by running command php --version)
  4. Then Restart Apache by typing sudo service apache2 restart.
 
Top