Curl extension problem deploying symfony 4.2 website

Discussion in 'Installation/Configuration' started by Pierrot727, Mar 30, 2019.

  1. Pierrot727

    Pierrot727 New Member

    Hi there,

    I want to deploy a symfony website and i get this error:
    Code:
    stripe/stripe-php v6.23.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    Any clue ?
    I have this php.info:http://le-louvre.pierre-laporte.net/info.php

    Complete console:
    Code:
    [email protected]:/var/www/clients/client1/web1/web/www/le-louvre$ composer update
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - stripe/stripe-php v6.31.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.31.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.31.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.30.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.30.4 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.30.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.30.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.30.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.30.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.29.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.29.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.29.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.29.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.28.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.28.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.27.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.26.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.25.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.24.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - stripe/stripe-php v6.23.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - Installation request for stripe/stripe-php ^6.23 -> satisfiable by stripe/stripe-php[v6.23.0, v6.24.0, v6.25.0, v6.26.0, v6.27.0, v6.28.0, v6.28.1, v6.29.0, v6.29.1, v6.29.2, v6.29.3, v6.30.0, v6.30.1, v6.30.2, v6.30.3, v6.30.4, v6.30.5, v6.31.0, v6.31.1, v6.31.2].
    
      To enable extensions, verify that they are enabled in your .ini files:
        - /etc/php/7.2/cli/php.ini
        - /etc/php/7.2/cli/conf.d/10-mysqlnd.ini
        - /etc/php/7.2/cli/conf.d/10-opcache.ini
        - /etc/php/7.2/cli/conf.d/10-pdo.ini
        - /etc/php/7.2/cli/conf.d/15-xml.ini
        - /etc/php/7.2/cli/conf.d/20-calendar.ini
        - /etc/php/7.2/cli/conf.d/20-ctype.ini
        - /etc/php/7.2/cli/conf.d/20-dom.ini
        - /etc/php/7.2/cli/conf.d/20-exif.ini
        - /etc/php/7.2/cli/conf.d/20-fileinfo.ini
        - /etc/php/7.2/cli/conf.d/20-ftp.ini
        - /etc/php/7.2/cli/conf.d/20-gettext.ini
        - /etc/php/7.2/cli/conf.d/20-iconv.ini
        - /etc/php/7.2/cli/conf.d/20-igbinary.ini
        - /etc/php/7.2/cli/conf.d/20-json.ini
        - /etc/php/7.2/cli/conf.d/20-mbstring.ini
        - /etc/php/7.2/cli/conf.d/20-memcache.ini
        - /etc/php/7.2/cli/conf.d/20-msgpack.ini
        - /etc/php/7.2/cli/conf.d/20-mysqli.ini
        - /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini
        - /etc/php/7.2/cli/conf.d/20-phar.ini
        - /etc/php/7.2/cli/conf.d/20-posix.ini
        - /etc/php/7.2/cli/conf.d/20-readline.ini
        - /etc/php/7.2/cli/conf.d/20-shmop.ini
        - /etc/php/7.2/cli/conf.d/20-simplexml.ini
        - /etc/php/7.2/cli/conf.d/20-sockets.ini
        - /etc/php/7.2/cli/conf.d/20-sysvmsg.ini
        - /etc/php/7.2/cli/conf.d/20-sysvsem.ini
        - /etc/php/7.2/cli/conf.d/20-sysvshm.ini
        - /etc/php/7.2/cli/conf.d/20-tokenizer.ini
        - /etc/php/7.2/cli/conf.d/20-wddx.ini
        - /etc/php/7.2/cli/conf.d/20-xdebug.ini
        - /etc/php/7.2/cli/conf.d/20-xmlreader.ini
        - /etc/php/7.2/cli/conf.d/20-xmlwriter.ini
        - /etc/php/7.2/cli/conf.d/20-xsl.ini
        - /etc/php/7.2/cli/conf.d/20-zip.ini
        - /etc/php/7.2/cli/conf.d/25-memcached.ini
      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
    
    Thanks for your help :)
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I do not know what your operating system is, so can not give detailed advice.
    But on my Debian system, I would do
    Code:
    $ apt-cache search curl php
    php-curl - CURL module for PHP [default]
    php-http-request2 - Provides an easy way to perform HTTP requests
    php7.0-curl - CURL module for PHP
    Try to adapt from that to your OS. That is, find which package contains the php extension curl. Then install that.
     
  3. Pierrot727

    Pierrot727 New Member

    Thanks Taleman, my operating system is Debian 9 Strech :)

    When performing your advice:
    Code:
    [email protected]:/home/orxagrondii# apt-cache search curl php
    php-http-request2 - Provides an easy way to perform HTTP requests
    php7.0-curl - CURL module for PHP
    php-curl - CURL module for PHP [default]
    php5.6-curl - CURL module for PHP
    php5.6-curl-dbgsym - debug symbols for php5.6-curl
    php7.0-curl-dbgsym - debug symbols for php7.0-curl
    php7.1-curl - CURL module for PHP
    php7.1-curl-dbgsym - debug symbols for php7.1-curl
    php7.2-curl - CURL module for PHP
    php7.2-curl-dbgsym - debug symbols for php7.2-curl
    php7.3-curl - CURL module for PHP
    php7.3-curl-dbgsym - debug symbols for php7.3-curl
    php5-curl - CURL module for php5
    
    I precise that i did already last update & upgrade
     
  4. nhybgtvfr

    nhybgtvfr Active Member

    have you run 'apt-get install php7.2-curl' ?
     

Share This Page