1. CodersEden Marketplace for designers and developers

cURL not available, please install cURL and try again!

Discussion in 'General discussions' started by Robdenio, Jan 17, 2020.

  1. Robdenio

    Robdenio New Member

    Joined:
    Jan 17, 2020
    Messages:
    6
    Likes Received:
    1
    S.E:
    2020-07-18 02:04:20
    L.T:
    Regular
    L.C:
    1
    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.

    [​IMG]

    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

    [​IMG]

    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.

    [​IMG]

    [​IMG]
     
  2. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,659
    Likes Received:
    2,472
    @Robdenio - What operating system is your vps using? is it centos/redhat family or ubuntu/debian family?
     
  3. Robdenio

    Robdenio New Member

    Joined:
    Jan 17, 2020
    Messages:
    6
    Likes Received:
    1
    S.E:
    2020-07-18 02:04:20
    L.T:
    Regular
    L.C:
    1
    Im pretty sure it's Ubuntu
     
  4. Robdenio

    Robdenio New Member

    Joined:
    Jan 17, 2020
    Messages:
    6
    Likes Received:
    1
    S.E:
    2020-07-18 02:04:20
    L.T:
    Regular
    L.C:
    1
    Just to confirm it is Ubuntu Version

    Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-74-generic x86_64)
     
  5. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,659
    Likes Received:
    2,472
    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.
     
  6. Robdenio

    Robdenio New Member

    Joined:
    Jan 17, 2020
    Messages:
    6
    Likes Received:
    1
    S.E:
    2020-07-18 02:04:20
    L.T:
    Regular
    L.C:
    1
    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:~#
     
  7. Robdenio

    Robdenio New Member

    Joined:
    Jan 17, 2020
    Messages:
    6
    Likes Received:
    1
    S.E:
    2020-07-18 02:04:20
    L.T:
    Regular
    L.C:
    1
  8. SillyWilly

    SillyWilly New Member

    Joined:
    Jan 18, 2020
    Messages:
    1
    Likes Received:
    0
    S.E:
    2020-07-16 16:07:36
    L.T:
    Regular
    L.C:
    1
    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
     
  9. Robdenio

    Robdenio New Member

    Joined:
    Jan 17, 2020
    Messages:
    6
    Likes Received:
    1
    S.E:
    2020-07-18 02:04:20
    L.T:
    Regular
    L.C:
    1
    I managed to sort the problem.

    I created new server with centos instead of ubuntu and installed perfectly
     
    twisted1919 likes this.
  10. Abraham Anthony

    Abraham Anthony New Member

    Joined:
    Sep 27, 2016
    Messages:
    1
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    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.
     

Share This Page