WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available












2















I've been trying to install phpmyadmin in Ubuntu 16.04.3 LTS having a lamp installed, php 7.2, mysql Ver 15.1 Distrib 10.2.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 and apache2.



and I am following this article from digitalOcean, but when I came to the part that I need to run sudo phpenmod mcrypt I got a message saying..



WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available

WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available



I am doing this on ubuntu installed in godaddy



Can you give best solution for this?










share|improve this question























  • gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f

    – theBuzzyCoder
    Aug 10 '18 at 11:09
















2















I've been trying to install phpmyadmin in Ubuntu 16.04.3 LTS having a lamp installed, php 7.2, mysql Ver 15.1 Distrib 10.2.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 and apache2.



and I am following this article from digitalOcean, but when I came to the part that I need to run sudo phpenmod mcrypt I got a message saying..



WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available

WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available



I am doing this on ubuntu installed in godaddy



Can you give best solution for this?










share|improve this question























  • gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f

    – theBuzzyCoder
    Aug 10 '18 at 11:09














2












2








2


1






I've been trying to install phpmyadmin in Ubuntu 16.04.3 LTS having a lamp installed, php 7.2, mysql Ver 15.1 Distrib 10.2.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 and apache2.



and I am following this article from digitalOcean, but when I came to the part that I need to run sudo phpenmod mcrypt I got a message saying..



WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available

WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available



I am doing this on ubuntu installed in godaddy



Can you give best solution for this?










share|improve this question














I've been trying to install phpmyadmin in Ubuntu 16.04.3 LTS having a lamp installed, php 7.2, mysql Ver 15.1 Distrib 10.2.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 and apache2.



and I am following this article from digitalOcean, but when I came to the part that I need to run sudo phpenmod mcrypt I got a message saying..



WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available

WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available



I am doing this on ubuntu installed in godaddy



Can you give best solution for this?







server apache2 mysql php lamp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 21 '18 at 4:46









FilFil

11317




11317













  • gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f

    – theBuzzyCoder
    Aug 10 '18 at 11:09



















  • gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f

    – theBuzzyCoder
    Aug 10 '18 at 11:09

















gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f

– theBuzzyCoder
Aug 10 '18 at 11:09





gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f

– theBuzzyCoder
Aug 10 '18 at 11:09










2 Answers
2






active

oldest

votes


















1














Just try and run this code and your error should be gone.



sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/


You should have the mcrypt.ini file inside mods-available and if you don't have this file there you will get this error.



NOTE: If you do it this way you will not get this error anymore, but you will get other error:



PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


So, based on my research mcrypt is not supported in php7.2, so you don't have to execute sudo phpenmod mcrypt at all. Maybe I am wrong, but if someone have more information, let me know.






share|improve this answer

































    1














    First install php7.1. Then copy mcrpyt.ini.



    sudo apt-add-repository ppa:ondrej/php
    sudo apt-get install php7.1-mbstring
    sudo apt-get install php7.1-mcrypt
    sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/
    sudo phpenmod mcrypt
    sudo service php7.2-fpm restart





    share|improve this answer








    New contributor




    Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      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',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      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%2f998199%2fwarning-module-mcrypt-ini-file-doesnt-exist-under-etc-php-7-2-mods-available%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Just try and run this code and your error should be gone.



      sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/


      You should have the mcrypt.ini file inside mods-available and if you don't have this file there you will get this error.



      NOTE: If you do it this way you will not get this error anymore, but you will get other error:



      PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


      So, based on my research mcrypt is not supported in php7.2, so you don't have to execute sudo phpenmod mcrypt at all. Maybe I am wrong, but if someone have more information, let me know.






      share|improve this answer






























        1














        Just try and run this code and your error should be gone.



        sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/


        You should have the mcrypt.ini file inside mods-available and if you don't have this file there you will get this error.



        NOTE: If you do it this way you will not get this error anymore, but you will get other error:



        PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


        So, based on my research mcrypt is not supported in php7.2, so you don't have to execute sudo phpenmod mcrypt at all. Maybe I am wrong, but if someone have more information, let me know.






        share|improve this answer




























          1












          1








          1







          Just try and run this code and your error should be gone.



          sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/


          You should have the mcrypt.ini file inside mods-available and if you don't have this file there you will get this error.



          NOTE: If you do it this way you will not get this error anymore, but you will get other error:



          PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


          So, based on my research mcrypt is not supported in php7.2, so you don't have to execute sudo phpenmod mcrypt at all. Maybe I am wrong, but if someone have more information, let me know.






          share|improve this answer















          Just try and run this code and your error should be gone.



          sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/


          You should have the mcrypt.ini file inside mods-available and if you don't have this file there you will get this error.



          NOTE: If you do it this way you will not get this error anymore, but you will get other error:



          PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


          So, based on my research mcrypt is not supported in php7.2, so you don't have to execute sudo phpenmod mcrypt at all. Maybe I am wrong, but if someone have more information, let me know.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 7 '18 at 11:00

























          answered May 7 '18 at 9:11









          DimitarDimitar

          210111




          210111

























              1














              First install php7.1. Then copy mcrpyt.ini.



              sudo apt-add-repository ppa:ondrej/php
              sudo apt-get install php7.1-mbstring
              sudo apt-get install php7.1-mcrypt
              sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/
              sudo phpenmod mcrypt
              sudo service php7.2-fpm restart





              share|improve this answer








              New contributor




              Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                1














                First install php7.1. Then copy mcrpyt.ini.



                sudo apt-add-repository ppa:ondrej/php
                sudo apt-get install php7.1-mbstring
                sudo apt-get install php7.1-mcrypt
                sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/
                sudo phpenmod mcrypt
                sudo service php7.2-fpm restart





                share|improve this answer








                New contributor




                Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  1












                  1








                  1







                  First install php7.1. Then copy mcrpyt.ini.



                  sudo apt-add-repository ppa:ondrej/php
                  sudo apt-get install php7.1-mbstring
                  sudo apt-get install php7.1-mcrypt
                  sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/
                  sudo phpenmod mcrypt
                  sudo service php7.2-fpm restart





                  share|improve this answer








                  New contributor




                  Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  First install php7.1. Then copy mcrpyt.ini.



                  sudo apt-add-repository ppa:ondrej/php
                  sudo apt-get install php7.1-mbstring
                  sudo apt-get install php7.1-mcrypt
                  sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/
                  sudo phpenmod mcrypt
                  sudo service php7.2-fpm restart






                  share|improve this answer








                  New contributor




                  Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 6 hours ago









                  JarynJaryn

                  1112




                  1112




                  New contributor




                  Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Jaryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f998199%2fwarning-module-mcrypt-ini-file-doesnt-exist-under-etc-php-7-2-mods-available%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How did Captain America manage to do this?

                      迪纳利

                      南乌拉尔铁路局