Why composer isnt updating

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am trying to update my yii2 project with the composer but whenever I am giving an update command it is showing the following errors.



our requirements could not be resolved to an installable set of packages.



- phpunit/phpunit 5.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.



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-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-curl.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-gd.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-json.ini
- /etc/php/7.2/cli/conf.d/20-mbstring.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-xml.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
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.


When I type php --ini



In command line, i am getting this result.



/etc/php/7.2/cli/php.ini


When i open this file i am getting an empty file.
But phpinfo() Shows this result.



/etc/php5/apache2/php.ini


I tried adding extension=dom.so in at this file



/etc/php5/apache2/php.ini


Still the composer is showing same error










share|improve this question

























    up vote
    0
    down vote

    favorite












    I am trying to update my yii2 project with the composer but whenever I am giving an update command it is showing the following errors.



    our requirements could not be resolved to an installable set of packages.



    - phpunit/phpunit 5.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.



    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-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-curl.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-gd.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-json.ini
    - /etc/php/7.2/cli/conf.d/20-mbstring.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-xml.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
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.


    When I type php --ini



    In command line, i am getting this result.



    /etc/php/7.2/cli/php.ini


    When i open this file i am getting an empty file.
    But phpinfo() Shows this result.



    /etc/php5/apache2/php.ini


    I tried adding extension=dom.so in at this file



    /etc/php5/apache2/php.ini


    Still the composer is showing same error










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to update my yii2 project with the composer but whenever I am giving an update command it is showing the following errors.



      our requirements could not be resolved to an installable set of packages.



      - phpunit/phpunit 5.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.



      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-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-curl.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-gd.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-json.ini
      - /etc/php/7.2/cli/conf.d/20-mbstring.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-xml.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
      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.


      When I type php --ini



      In command line, i am getting this result.



      /etc/php/7.2/cli/php.ini


      When i open this file i am getting an empty file.
      But phpinfo() Shows this result.



      /etc/php5/apache2/php.ini


      I tried adding extension=dom.so in at this file



      /etc/php5/apache2/php.ini


      Still the composer is showing same error










      share|improve this question













      I am trying to update my yii2 project with the composer but whenever I am giving an update command it is showing the following errors.



      our requirements could not be resolved to an installable set of packages.



      - phpunit/phpunit 5.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.



      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-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-curl.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-gd.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-json.ini
      - /etc/php/7.2/cli/conf.d/20-mbstring.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-xml.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
      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.


      When I type php --ini



      In command line, i am getting this result.



      /etc/php/7.2/cli/php.ini


      When i open this file i am getting an empty file.
      But phpinfo() Shows this result.



      /etc/php5/apache2/php.ini


      I tried adding extension=dom.so in at this file



      /etc/php5/apache2/php.ini


      Still the composer is showing same error







      php composer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 11 at 7:07









      arunwebber

      13




      13

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013814%2fwhy-composer-isnt-updating%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013814%2fwhy-composer-isnt-updating%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491