The requested PHP extension ext-http missing

The requested PHP extension ext-http missing Техника

in my case i’m using ubuntu, hope this solve the problem.

sudo apt install php-http

Have you already tried the options here for similar issues?


in my case i’m using ubuntu, hope this solve the problem.

sudo apt install php-http

Read More

Have you already tried the options here for similar issues?


composer being given the requested PHP extension pcntl is missing from your system

Error message:
xxxxxxxxxx requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.

Solution:
increase in composer.json

 
         
         
         
         
             
             
        
    

Intelligent Recommendation

Install pcntl extension under PHP linux

More Recommendation

Introduce pcntl extension to PHP under centos

Mac MAMP Pro installed PHP extension PCNTL

PHP pcntl

shahparzsoft

User
Posts: 356

Root composer.json requires PHP extension ext-intl but it is missing from your system


mobhar

User
Posts: 11177


by mobhar »

As the error message said Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP's intl extension.

Make sure you have already installed/enabled PHP Intl extension in your web server, then restart your web server. (See Composer.)


Ello21808

User
Posts: 4


by Ello21808 »

If u use window os and php 7.xx above after enable ext intl but problem still occur, make sure to install microsoft c++ 2017 redistributable also, set system variable path in windows to your php instalation directory. That fixed for me.



Excited Elephant

answered on
March 19, 2023

4/10

1/10


Contents

  • — Root composer.json requires PHP extension ext-http * but it is missing from your system. Install or enable PHP’s http extension.

  • — Root composer.json requires PHP extension ext-dom * but it is missing from your system. Install or enable PHP’s dom extension.

  • root composer.json requires php extension ext-intl * but it is missing from your system. install or enable php’s intl extension
  • Root composer.json requires php ^7.2.5 but your php version (8.0.3) does not satisfy that require
  • Root composer.json requires laravel/pint ^1.0
  • — root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement.
  • Root composer.json requires laravel/pint ^1.0
  • Root composer.json requires PHP extension ext-gmp * but it is missing from your system. Install or enable PHP’s gmp extension.
  • — The requested PHP extension ext-http * is missing from your system. Install or enable PHP’s http extension.
  • root composer.json requires php ^7.3 but your php version (8.0.3) does not satisfy that requirement.
  • — root composer.json requires php ^7.2.5 but your php version (8.0.3) does not satisfy that requirement.
  • root composer.json requires php ^7.1.3 but your php version (8.0.1) does not satisfy that requirement.
  • root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement.
  • — root composer.json requires php ^7.2 but your php version (8.0.1) does not satisfy that requirement.
  • — Root composer.json requires PHP extension ext-imap * but it is missing from your system. Install or enable PHP’s imap extension.
  • — Root composer.json requires PHP extension ext-imap * but it is missing from your system. Install or enable PHP’s imap extension.
  • Introduction

    [root@localhost codeigniter]# composer create-project codeigniter4/appstarter app --no-dev
    Creating a "codeigniter4/appstarter" project at "./app"
    Installing codeigniter4/appstarter (v4.1.1)
      - Installing codeigniter4/appstarter (v4.1.1): Extracting archive
    Created project in /var/www/html/codeigniter/app
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - codeigniter4/framework[4.0.0, ..., v4.1.1] require ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
        - Root composer.json requires codeigniter4/framework ^4 -> satisfiable by codeigniter4/framework[4.0.0, ..., v4.1.1].
    
    To enable extensions, verify that they are enabled in your .ini files:
        - /etc/php.ini
        - /etc/php.d/10-opcache.ini
        - /etc/php.d/20-bz2.ini
        - /etc/php.d/20-calendar.ini
        - /etc/php.d/20-ctype.ini
        - /etc/php.d/20-curl.ini
        - /etc/php.d/20-dom.ini
        - /etc/php.d/20-exif.ini
        - /etc/php.d/20-fileinfo.ini
        - /etc/php.d/20-ftp.ini
        - /etc/php.d/20-gd.ini
        - /etc/php.d/20-gettext.ini
        - /etc/php.d/20-iconv.ini
        - /etc/php.d/20-json.ini
        - /etc/php.d/20-mbstring.ini
        - /etc/php.d/20-mysqlnd.ini
        - /etc/php.d/20-pdo.ini
        - /etc/php.d/20-phar.ini
        - /etc/php.d/20-simplexml.ini
        - /etc/php.d/20-sockets.ini
        - /etc/php.d/20-sodium.ini
        - /etc/php.d/20-sqlite3.ini
        - /etc/php.d/20-tokenizer.ini
        - /etc/php.d/20-xml.ini
        - /etc/php.d/20-xmlwriter.ini
        - /etc/php.d/20-xsl.ini
        - /etc/php.d/30-mysqli.ini
        - /etc/php.d/30-pdo_mysql.ini
        - /etc/php.d/30-pdo_sqlite.ini
        - /etc/php.d/30-xmlreader.ini
        - /etc/php.d/40-zip.ini
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
    Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
    [root@localhost codeigniter]# 
    
    [root@localhost app]# php spark serve
    PHP Warning:  require(/var/www/html/codeigniter/app/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php): failed to open stream: No such file or directory in /var/www/html/codeigniter/app/spark on line 53
    PHP Fatal error:  require(): Failed opening required '/var/www/html/codeigniter/app/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/codeigniter/app/spark on line 53
    [root@localhost app]#
    
    - codeigniter4/framework[4.0.0, ..., v4.1.1] require ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
    

    Solution to solve the error message

    1. First of all, search the package with the name of ‘php-intl’ :

    [root@localhost egov]# dnf search php-intl
    Last metadata expiration check: 0:59:22 ago on Tue 23 Mar 2021 10:50:40 PM EDT.
    ====================================================================== Name Exactly Matched: php-intl ======================================================================
    php-intl.x86_64 : Internationalization extension for PHP applications
    ========================================================================== Name Matched: php-intl ==========================================================================
    php56-php-intl.x86_64 : Internationalization extension for PHP applications
    php70-php-intl.x86_64 : Internationalization extension for PHP applications
    php71-php-intl.x86_64 : Internationalization extension for PHP applications
    php72-php-intl.x86_64 : Internationalization extension for PHP applications
    php73-php-intl.x86_64 : Internationalization extension for PHP applications
    php74-php-intl.x86_64 : Internationalization extension for PHP applications
    php80-php-intl.x86_64 : Internationalization extension for PHP applications
    [root@localhost egov]# php -v
    PHP 7.4.16 (cli) (built: Mar  2 2021 10:35:17) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with Zend OPcache v7.4.16, Copyright (c), by Zend Technologies
    [root@localhost app]#
    
     
    [root@localhost app]# dnf install php-intl
    Last metadata expiration check: 0:59:42 ago on Tue 23 Mar 2021 10:50:40 PM EDT.
    Dependencies resolved.
    ============================================================================================================================================================================
     Package                               Architecture                        Version                                          Repository                                 Size
    ============================================================================================================================================================================
    Installing:
     php-intl                              x86_64                              7.4.16-1.el8.remi                                remi-modular                              242 k
    Installing dependencies:
     libicu65                              x86_64                              65.1-1.el8.remi                                  remi-safe                                 9.3 M
    
    Transaction Summary
    ============================================================================================================================================================================
    Install  2 Packages
    
    Total download size: 9.5 M
    Installed size: 33 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): php-intl-7.4.16-1.el8.remi.x86_64.rpm                                                                                                 77 kB/s | 242 kB     00:03
    (2/2): libicu65-65.1-1.el8.remi.x86_64.rpm                                                                                                  161 kB/s | 9.3 MB     00:58
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                       160 kB/s | 9.5 MB     01:00
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                    1/1
      Installing       : libicu65-65.1-1.el8.remi.x86_64                                                                                                                    1/2
      Installing       : php-intl-7.4.16-1.el8.remi.x86_64                                                                                                                  2/2
      Running scriptlet: php-intl-7.4.16-1.el8.remi.x86_64                                                                                                                  2/2
      Verifying        : php-intl-7.4.16-1.el8.remi.x86_64                                                                                                                  1/2
      Verifying        : libicu65-65.1-1.el8.remi.x86_64                                                                                                                    2/2
    
    Installed:
      libicu65-65.1-1.el8.remi.x86_64                                                     php-intl-7.4.16-1.el8.remi.x86_64
    
    Complete!
    [root@localhost app]#
    
    [root@localhost codeigniter]# composer create-project codeigniter4/appstarter app --no-dev
    Creating a "codeigniter4/appstarter" project at "./app"
    Installing codeigniter4/appstarter (v4.1.1)
      - Installing codeigniter4/appstarter (v4.1.1): Extracting archive
    Created project in /var/www/html/codeigniter/app
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 41 installs, 0 updates, 0 removals
      - Locking codeigniter4/framework (v4.1.1)
      - Locking doctrine/instantiator (1.4.0)
      - Locking fakerphp/faker (v1.13.0)
      - Locking kint-php/kint (3.3)
      - Locking laminas/laminas-escaper (2.7.0)
      - Locking laminas/laminas-zendframework-bridge (1.2.0)
      - Locking mikey179/vfsstream (v1.6.8)
      - Locking myclabs/deep-copy (1.10.2)
      - Locking nikic/php-parser (v4.10.4)
      - Locking phar-io/manifest (2.0.1)
      - Locking phar-io/version (3.1.0)
      - Locking phpdocumentor/reflection-common (2.2.0)
      - Locking phpdocumentor/reflection-docblock (5.2.2)
      - Locking phpdocumentor/type-resolver (1.4.0)
      - Locking phpspec/prophecy (1.13.0)
      - Locking phpunit/php-code-coverage (9.2.5)
      - Locking phpunit/php-file-iterator (3.0.5)
      - Locking phpunit/php-invoker (3.1.1)
      - Locking phpunit/php-text-template (2.0.4)
      - Locking phpunit/php-timer (5.0.3)
      - Locking phpunit/phpunit (9.5.4)
      - Locking psr/log (1.1.3)
      - Locking sebastian/cli-parser (1.0.1)
      - Locking sebastian/code-unit (1.0.8)
      - Locking sebastian/code-unit-reverse-lookup (2.0.3)
      - Locking sebastian/comparator (4.0.6)
      - Locking sebastian/complexity (2.0.2)
      - Locking sebastian/diff (4.0.4)
      - Locking sebastian/environment (5.1.3)
      - Locking sebastian/exporter (4.0.3)
      - Locking sebastian/global-state (5.0.2)
      - Locking sebastian/lines-of-code (1.0.3)
      - Locking sebastian/object-enumerator (4.0.4)
      - Locking sebastian/object-reflector (2.0.4)
      - Locking sebastian/recursion-context (4.0.4)
      - Locking sebastian/resource-operations (3.0.3)
      - Locking sebastian/type (2.3.1)
      - Locking sebastian/version (3.0.2)
      - Locking symfony/polyfill-ctype (v1.22.1)
      - Locking theseer/tokenizer (1.2.0)
      - Locking webmozart/assert (1.10.0)
    Writing lock file
    Installing dependencies from lock file
    Package operations: 5 installs, 0 updates, 0 removals
      - Downloading laminas/laminas-zendframework-bridge (1.2.0)
      - Downloading laminas/laminas-escaper (2.7.0)
      - Downloading kint-php/kint (3.3)
      - Downloading codeigniter4/framework (v4.1.1)
      - Installing psr/log (1.1.3): Extracting archive
      - Installing laminas/laminas-zendframework-bridge (1.2.0): Extracting archive
      - Installing laminas/laminas-escaper (2.7.0): Extracting archive
      - Installing kint-php/kint (3.3): Extracting archive
      - Installing codeigniter4/framework (v4.1.1): Extracting archive
    11 package suggestions were added by new dependencies, use `composer suggest` to see details.
    Generating autoload files
    2 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    [root@localhost codeigniter]#
    
    [root@10 app]# php spark serve
    
    CodeIgniter v4.1.1 Command Line Tool - Server Time: 2021-03-23 22:59:35 UTC-05:00
    
    CodeIgniter development server started on http://localhost:8080
    Press Control-C to stop.
    
    

    As in the above output, it is exist that the process is a success. Moreover, the service using Code Igniter 4 web-based application is also running.

    Solution 1

    Run composer with the --ignore-platform-reqs option and specify pcntl and posix

    composer install --ignore-platform-reqs
    

    Solution 4

    pcntl extension is not supported on Windows. (based on your XAMPP information)

    Please see these github issues on laravel/horizon page #131, #78.

    I suggest you use Laravel Homestead on your Windows system, It is easy to setup and will save you from many of the similar problems in future.

    Example #1 (LAMP). actual item described was needed

    composer require phpoffice/phpspreadsheet
    
    • Error produced: missing php-mstring

    • yum install php-mbstring


    — Root composer. json requires PHP extension ext-http * but it is missing from your system. Install or enable PHP’s http extension.

    4/10
    1/10

    php

    Excited Elephant

    Contributed on May 12 2023

    0 Answers  Avg Quality 2/10


    Example #2 (LAMP). something slightly different than the item described was needed

    composer require phpoffice/phpspreadsheet
    
    • Error produced: missing ext-zip

    • yum install php-pecl-zip


    Also, perhaps running composer in verbose mode?

    But, I think your best bet to start is the first link provided in this answer (and then looking through similar WAMP Composer missing item issues).

    According to PHP Official Documentation, You’ll have to find your extension in php.ini and uncomment it OR add it in general. It’s probably something like extension=php_http.dll.

    Had the same problem in composer.json file. Also discovered, that I have an "ext-http": "*". To solve this problem just delete the "ext-http": "*" and try to install package again. Worked for me, hope for you too 🙂

    In my case, the combination worked (Ubuntu php7.4)

    sudo apt install php-pear
    pecl install pecl_http
    

    I had the same problem too.
    My problem was that when I use RuntimeException class, I made a mistake by import use http\Exception\RuntimeException; instead of the standard one use RuntimeException. And the class http\Exception\RuntimeException; required ext-http extension.
    So my suggestion is that, you should search your all project and check whether you made the same mistake as mine or not. You can search all by keyword use http\.
    Btw I don’t think install or unstall ext-http plugin will solve the problem.

    In case someone needs it, one can also install it with pecl
    (it needs extensions raphf and propro loaded to build):

    yum install libcurl-devel brotli-devel
    pecl install pecl_http
    

    ...
    Build process completed successfully
    Installing '/usr/lib64/php/modules/http.so'
    Installing '/usr/include/php/ext/http/php_http.h'
    Installing '/usr/include/php/ext/http/php_http_api.h'
    Installing '/usr/include/php/ext/http/php_http_buffer.h'
    Installing '/usr/include/php/ext/http/php_http_client.h'
    Installing '/usr/include/php/ext/http/php_http_client_curl.h'
    Installing '/usr/include/php/ext/http/php_http_client_curl_event.h'
    Installing '/usr/include/php/ext/http/php_http_client_curl_user.h'
    Installing '/usr/include/php/ext/http/php_http_client_request.h'
    Installing '/usr/include/php/ext/http/php_http_client_response.h'
    Installing '/usr/include/php/ext/http/php_http_cookie.h'
    Installing '/usr/include/php/ext/http/php_http_curl.h'
    Installing '/usr/include/php/ext/http/php_http_encoding.h'
    Installing '/usr/include/php/ext/http/php_http_encoding_brotli.h'
    Installing '/usr/include/php/ext/http/php_http_encoding_zlib.h'
    Installing '/usr/include/php/ext/http/php_http_env.h'
    Installing '/usr/include/php/ext/http/php_http_env_request.h'
    Installing '/usr/include/php/ext/http/php_http_env_response.h'
    Installing '/usr/include/php/ext/http/php_http_etag.h'
    Installing '/usr/include/php/ext/http/php_http_exception.h'
    Installing '/usr/include/php/ext/http/php_http_filter.h'
    Installing '/usr/include/php/ext/http/php_http_header.h'
    Installing '/usr/include/php/ext/http/php_http_header_parser.h'
    Installing '/usr/include/php/ext/http/php_http_info.h'
    Installing '/usr/include/php/ext/http/php_http_message.h'
    Installing '/usr/include/php/ext/http/php_http_message_body.h'
    Installing '/usr/include/php/ext/http/php_http_message_parser.h'
    Installing '/usr/include/php/ext/http/php_http_misc.h'
    Installing '/usr/include/php/ext/http/php_http_negotiate.h'
    Installing '/usr/include/php/ext/http/php_http_object.h'
    Installing '/usr/include/php/ext/http/php_http_options.h'
    Installing '/usr/include/php/ext/http/php_http_params.h'
    Installing '/usr/include/php/ext/http/php_http_querystring.h'
    Installing '/usr/include/php/ext/http/php_http_response_codes.h'
    Installing '/usr/include/php/ext/http/php_http_url.h'
    Installing '/usr/include/php/ext/http/php_http_utf8.h'
    Installing '/usr/include/php/ext/http/php_http_version.h'
    install ok: channel://pecl.php.net/pecl_http-3.2.3
    configuration option "php_ini" is not set to php.ini location
    You should add "extension=http.so" to php.ini
    

    For those who encountered with this problem:

    - The requested PHP extension ext-http * is missing from your system.
    

    The solution is just to install PHP extension:

    sudo apt install php-pecl-http
    

    php-http is a standard which is implemented by different packages. ext-http is the Composer way to tell that your application requires at least one of those packages. See the section called «Composer virtual packages» at http://docs.php-http.org/en/latest/clients.html for additional details.

    You should be able to fix your issue by installing one of the provided packages, e.g.

    composer require php-http/curl-client
    

    Update:
    It might be worth looking at the other answers too. Since I’m no longer working with PHP, I’m not going to set up a project and try to recreate the problem I had just to test the new suggested solutions. If another answer did help you, give it a vote ‘^’ this way I know which answers are helpful.


    The solution is found. For some reason my composer.json contained "ext-http": "*".

    "require": {
        "ext-http": "*"
    }
    

    Removing this line fixed the problem. I don’t know why it contained "ext-http": "*" and I don’t fully understand why removing it would fix the problem. (Is it because it is looking for the extension, but can not find it?)

    (Thank you to everyone trying to help me fix the problem!)

    More Query from same tag

    — Root composer. json requires PHP extension ext-dom * but it is missing from your system. Install or enable PHP’s dom extension.

    3/10
    5/10

    php

    Shadow

    Contributed on Mar 19 2023

    0 Answers  Avg Quality 2/10


    Grepper

    Features
    Reviews
    Code Answers
    Search Code Snippets

    Plans & Pricing
    Endorsed Products
    FAQ
    Welcome
    Browsers Supported
    Grepper Teams

    Documentation

    Adding a Code Snippet

    Viewing & Copying Snippets

    Social

    Privacy Policy
    Terms

    Contact

    Solution 5

    If you are using docker based on a Unix image you can add it with the docker utility:

    docker-php-ext-install pcntl
    

    You can then confirm that this extension is installed and enabled inside of your container:

    ?> php -i | grep pcntl
    /usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini,
    pcntl
    pcntl support => enabled
    

    How can I solve «laravel/horizon v1. 0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system»?

    When I run composer install on command promp, there exist error like this :

      Problem 1
        - Installation request for laravel/horizon v1.1.0 -> satisfiable by laravel/horizon[v1.1.0].
        - laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
    
      To enable extensions, verify that they are enabled in your .ini files:
        - C:\xampp-7.1\php\php.ini
      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
    

    How can I solve this error?

    Solution 2

    As per the accepted answer, but you can add this to your composer.json so that you don’t have to run --ignore-platform-reqs all the time

    "config": {
      "platform": {
        "ext-pcntl": "8.0",
        "ext-posix": "8.0"
      }
    }
    

    Example #1 (LAMP). actual item described was needed

    composer require phpoffice/phpspreadsheet
    
    • Error produced: missing php-mstring

    • yum install php-mbstring


    Solution 3

    install horizon this way :

    composer require laravel/horizon --ignore-platform-reqs
    
    php artisan horizon:install
    

    Example #2 (LAMP). something slightly different than the item described was needed

    composer require phpoffice/phpspreadsheet
    
    • Error produced: missing ext-zip

    • yum install php-pecl-zip


    Also, perhaps running composer in verbose mode?

    But, I think your best bet to start is the first link provided in this answer (and then looking through similar WAMP Composer missing item issues).

    According to PHP Official Documentation, You’ll have to find your extension in php.ini and uncomment it OR add it in general. It’s probably something like extension=php_http.dll.

    Similar Question and Answer

    Had the same problem in composer.json file. Also discovered, that I have an "ext-http": "*". To solve this problem just delete the "ext-http": "*" and try to install package again. Worked for me, hope for you too 🙂

    In my case, the combination worked (Ubuntu php7.4)

    sudo apt install php-pear
    pecl install pecl_http
    

    I had the same problem too.
    My problem was that when I use RuntimeException class, I made a mistake by import use http\Exception\RuntimeException; instead of the standard one use RuntimeException. And the class http\Exception\RuntimeException; required ext-http extension.
    So my suggestion is that, you should search your all project and check whether you made the same mistake as mine or not. You can search all by keyword use http\.
    Btw I don’t think install or unstall ext-http plugin will solve the problem.

    In case someone needs it, one can also install it with pecl
    (it needs extensions raphf and propro loaded to build):

    yum install libcurl-devel brotli-devel
    pecl install pecl_http
    

    ...
    Build process completed successfully
    Installing '/usr/lib64/php/modules/http.so'
    Installing '/usr/include/php/ext/http/php_http.h'
    Installing '/usr/include/php/ext/http/php_http_api.h'
    Installing '/usr/include/php/ext/http/php_http_buffer.h'
    Installing '/usr/include/php/ext/http/php_http_client.h'
    Installing '/usr/include/php/ext/http/php_http_client_curl.h'
    Installing '/usr/include/php/ext/http/php_http_client_curl_event.h'
    Installing '/usr/include/php/ext/http/php_http_client_curl_user.h'
    Installing '/usr/include/php/ext/http/php_http_client_request.h'
    Installing '/usr/include/php/ext/http/php_http_client_response.h'
    Installing '/usr/include/php/ext/http/php_http_cookie.h'
    Installing '/usr/include/php/ext/http/php_http_curl.h'
    Installing '/usr/include/php/ext/http/php_http_encoding.h'
    Installing '/usr/include/php/ext/http/php_http_encoding_brotli.h'
    Installing '/usr/include/php/ext/http/php_http_encoding_zlib.h'
    Installing '/usr/include/php/ext/http/php_http_env.h'
    Installing '/usr/include/php/ext/http/php_http_env_request.h'
    Installing '/usr/include/php/ext/http/php_http_env_response.h'
    Installing '/usr/include/php/ext/http/php_http_etag.h'
    Installing '/usr/include/php/ext/http/php_http_exception.h'
    Installing '/usr/include/php/ext/http/php_http_filter.h'
    Installing '/usr/include/php/ext/http/php_http_header.h'
    Installing '/usr/include/php/ext/http/php_http_header_parser.h'
    Installing '/usr/include/php/ext/http/php_http_info.h'
    Installing '/usr/include/php/ext/http/php_http_message.h'
    Installing '/usr/include/php/ext/http/php_http_message_body.h'
    Installing '/usr/include/php/ext/http/php_http_message_parser.h'
    Installing '/usr/include/php/ext/http/php_http_misc.h'
    Installing '/usr/include/php/ext/http/php_http_negotiate.h'
    Installing '/usr/include/php/ext/http/php_http_object.h'
    Installing '/usr/include/php/ext/http/php_http_options.h'
    Installing '/usr/include/php/ext/http/php_http_params.h'
    Installing '/usr/include/php/ext/http/php_http_querystring.h'
    Installing '/usr/include/php/ext/http/php_http_response_codes.h'
    Installing '/usr/include/php/ext/http/php_http_url.h'
    Installing '/usr/include/php/ext/http/php_http_utf8.h'
    Installing '/usr/include/php/ext/http/php_http_version.h'
    install ok: channel://pecl.php.net/pecl_http-3.2.3
    configuration option "php_ini" is not set to php.ini location
    You should add "extension=http.so" to php.ini
    

    For those who encountered with this problem:

    - The requested PHP extension ext-http * is missing from your system.
    

    The solution is just to install PHP extension:

    sudo apt install php-pecl-http
    

    php-http is a standard which is implemented by different packages. ext-http is the Composer way to tell that your application requires at least one of those packages. See the section called «Composer virtual packages» at http://docs.php-http.org/en/latest/clients.html for additional details.

    You should be able to fix your issue by installing one of the provided packages, e.g.

    composer require php-http/curl-client
    

    Update:
    It might be worth looking at the other answers too. Since I’m no longer working with PHP, I’m not going to set up a project and try to recreate the problem I had just to test the new suggested solutions. If another answer did help you, give it a vote ‘^’ this way I know which answers are helpful.


    The solution is found. For some reason my composer.json contained "ext-http": "*".

    "require": {
        "ext-http": "*"
    }
    

    Removing this line fixed the problem. I don’t know why it contained "ext-http": "*" and I don’t fully understand why removing it would fix the problem. (Is it because it is looking for the extension, but can not find it?)

    (Thank you to everyone trying to help me fix the problem!)

    More Answer

    More answer with same ag

    Дополнительно:  Как сделать root для android
    Оцените статью
    Master Hi-technology
    Добавить комментарий