Magento2 commands not running in chroot environmentAdding user to chroot environmentUpgrading Ubuntu chroot...

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?

Predict mars robot position

How can I improve my fireworks photography?

How Should I Define/Declare String Constants

Do commercial flights continue with an engine out?

Can the Count of Monte Cristo's calculation of poison dosage be explained?

Why can I easily sing or whistle a tune I've just heard, but not as easily reproduce it on an instrument?

Quenching swords in dragon blood; why?

Avoiding morning and evening handshakes

How do Japanese speakers determine the implied topic when none has been mentioned?

What's a good word to describe a public place that looks like it wouldn't be rough?

Am I a Rude Number?

Eww, those bytes are gross

What is Crew Dragon approaching in this picture?

Inventor that creates machine that grabs man from future

Finding the number of integers that are a square and a cube at the same time

Obtaining a matrix of complex values from associations giving the real and imaginary parts of each element?

When does coming up with an idea constitute sufficient contribution for authorship?

Is there a way to help users from having to clicking emails twice before logging into a new sandbox

Yeshiva University RIETS Semicha Yorei and Yadin

Is the theory of the category of topological spaces computable?

Naming things the POV character doesn't know

How to approximate rolls for potions of healing using only d6's?

How to add multiple differently colored borders around a node?



Magento2 commands not running in chroot environment


Adding user to chroot environmentUpgrading Ubuntu chroot environment?Chroot environment can access external, but not internal networkAccess Denied for user 'linuxuser'@'localhost' (using password: no)Tweaking inside a chroot environmentTrying to set up a chroot environmentSafe way to remove a Chroot environmentRemoving a chroot environmentReturning to a chroot environmentCannot enable php-curl on Ubuntu 18.04 & PHP 7.2













0















I successfully set a chroot on my server. I want to place magento projects on chroot so that a user can execute all sorts of magento2 commands if needed. I mounted magento projects to chroot directory. But when i run any of magento2 commands say "php bin/magento cache:clean" I get the following error:




php: error while loading shared libraries: libresolv.so.2: cannot open shared object file: No such file or directory




After copying all the required libraries i get the following error:




Notice: date_default_timezone_set(): Timezone ID 'UTC' is invalid in /home/user/myapp/app/bootstrap.php on line 63



Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/user/myapp/vendor/magento/framework/Config/Dom.php:384



Stack trace:



0 /home/user/myapp/vendor/magento/framework/Config/Dom.php(115): MagentoFrameworkConfigDom->_initDom('

1 /home/user/myapp/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): MagentoFrameworkConfigDom->__construct('




Please help me to get through this error.. Thanks in advance










share|improve this question



























    0















    I successfully set a chroot on my server. I want to place magento projects on chroot so that a user can execute all sorts of magento2 commands if needed. I mounted magento projects to chroot directory. But when i run any of magento2 commands say "php bin/magento cache:clean" I get the following error:




    php: error while loading shared libraries: libresolv.so.2: cannot open shared object file: No such file or directory




    After copying all the required libraries i get the following error:




    Notice: date_default_timezone_set(): Timezone ID 'UTC' is invalid in /home/user/myapp/app/bootstrap.php on line 63



    Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/user/myapp/vendor/magento/framework/Config/Dom.php:384



    Stack trace:



    0 /home/user/myapp/vendor/magento/framework/Config/Dom.php(115): MagentoFrameworkConfigDom->_initDom('

    1 /home/user/myapp/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): MagentoFrameworkConfigDom->__construct('




    Please help me to get through this error.. Thanks in advance










    share|improve this question

























      0












      0








      0








      I successfully set a chroot on my server. I want to place magento projects on chroot so that a user can execute all sorts of magento2 commands if needed. I mounted magento projects to chroot directory. But when i run any of magento2 commands say "php bin/magento cache:clean" I get the following error:




      php: error while loading shared libraries: libresolv.so.2: cannot open shared object file: No such file or directory




      After copying all the required libraries i get the following error:




      Notice: date_default_timezone_set(): Timezone ID 'UTC' is invalid in /home/user/myapp/app/bootstrap.php on line 63



      Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/user/myapp/vendor/magento/framework/Config/Dom.php:384



      Stack trace:



      0 /home/user/myapp/vendor/magento/framework/Config/Dom.php(115): MagentoFrameworkConfigDom->_initDom('

      1 /home/user/myapp/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): MagentoFrameworkConfigDom->__construct('




      Please help me to get through this error.. Thanks in advance










      share|improve this question














      I successfully set a chroot on my server. I want to place magento projects on chroot so that a user can execute all sorts of magento2 commands if needed. I mounted magento projects to chroot directory. But when i run any of magento2 commands say "php bin/magento cache:clean" I get the following error:




      php: error while loading shared libraries: libresolv.so.2: cannot open shared object file: No such file or directory




      After copying all the required libraries i get the following error:




      Notice: date_default_timezone_set(): Timezone ID 'UTC' is invalid in /home/user/myapp/app/bootstrap.php on line 63



      Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/user/myapp/vendor/magento/framework/Config/Dom.php:384



      Stack trace:



      0 /home/user/myapp/vendor/magento/framework/Config/Dom.php(115): MagentoFrameworkConfigDom->_initDom('

      1 /home/user/myapp/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): MagentoFrameworkConfigDom->__construct('




      Please help me to get through this error.. Thanks in advance







      server php chroot magento






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 19 '18 at 10:50









      john deojohn deo

      274




      274






















          2 Answers
          2






          active

          oldest

          votes


















          0














          After days of struggling, I finally found a solution... I had to combine JailKit and some other commands. This made everything work for me just as i wanted.






          share|improve this answer
























          • if you can post your solution that would be great i am running php 7 and not able to run any php, mysql commands and nano editors inside jail (jailkit) Thanks

            – Rahul Dhingra
            Mar 22 '18 at 15:12





















          0














          To run any command inside the chroot, you should have this program available in the chroot (since it cannot use the program installed in the / of filesystem.
          You might requirement parts of /dev, /bin, /etc, /usr, /lib (and probably others also) installed suitably under the new root directory. Symlinks back to 'outside the chroot() environment' won't work, in overall. If you impartial want the ls command, you'll quiet need to copy extra than ls. To run ls, you'll need to copy the ls command as well as all the files it be contingent on.






          share|improve this answer








          New contributor




          Aanchal Kaura 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%2f1007636%2fmagento2-commands-not-running-in-chroot-environment%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









            0














            After days of struggling, I finally found a solution... I had to combine JailKit and some other commands. This made everything work for me just as i wanted.






            share|improve this answer
























            • if you can post your solution that would be great i am running php 7 and not able to run any php, mysql commands and nano editors inside jail (jailkit) Thanks

              – Rahul Dhingra
              Mar 22 '18 at 15:12


















            0














            After days of struggling, I finally found a solution... I had to combine JailKit and some other commands. This made everything work for me just as i wanted.






            share|improve this answer
























            • if you can post your solution that would be great i am running php 7 and not able to run any php, mysql commands and nano editors inside jail (jailkit) Thanks

              – Rahul Dhingra
              Mar 22 '18 at 15:12
















            0












            0








            0







            After days of struggling, I finally found a solution... I had to combine JailKit and some other commands. This made everything work for me just as i wanted.






            share|improve this answer













            After days of struggling, I finally found a solution... I had to combine JailKit and some other commands. This made everything work for me just as i wanted.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 22 '18 at 10:54









            john deojohn deo

            274




            274













            • if you can post your solution that would be great i am running php 7 and not able to run any php, mysql commands and nano editors inside jail (jailkit) Thanks

              – Rahul Dhingra
              Mar 22 '18 at 15:12





















            • if you can post your solution that would be great i am running php 7 and not able to run any php, mysql commands and nano editors inside jail (jailkit) Thanks

              – Rahul Dhingra
              Mar 22 '18 at 15:12



















            if you can post your solution that would be great i am running php 7 and not able to run any php, mysql commands and nano editors inside jail (jailkit) Thanks

            – Rahul Dhingra
            Mar 22 '18 at 15:12







            if you can post your solution that would be great i am running php 7 and not able to run any php, mysql commands and nano editors inside jail (jailkit) Thanks

            – Rahul Dhingra
            Mar 22 '18 at 15:12















            0














            To run any command inside the chroot, you should have this program available in the chroot (since it cannot use the program installed in the / of filesystem.
            You might requirement parts of /dev, /bin, /etc, /usr, /lib (and probably others also) installed suitably under the new root directory. Symlinks back to 'outside the chroot() environment' won't work, in overall. If you impartial want the ls command, you'll quiet need to copy extra than ls. To run ls, you'll need to copy the ls command as well as all the files it be contingent on.






            share|improve this answer








            New contributor




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

























              0














              To run any command inside the chroot, you should have this program available in the chroot (since it cannot use the program installed in the / of filesystem.
              You might requirement parts of /dev, /bin, /etc, /usr, /lib (and probably others also) installed suitably under the new root directory. Symlinks back to 'outside the chroot() environment' won't work, in overall. If you impartial want the ls command, you'll quiet need to copy extra than ls. To run ls, you'll need to copy the ls command as well as all the files it be contingent on.






              share|improve this answer








              New contributor




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























                0












                0








                0







                To run any command inside the chroot, you should have this program available in the chroot (since it cannot use the program installed in the / of filesystem.
                You might requirement parts of /dev, /bin, /etc, /usr, /lib (and probably others also) installed suitably under the new root directory. Symlinks back to 'outside the chroot() environment' won't work, in overall. If you impartial want the ls command, you'll quiet need to copy extra than ls. To run ls, you'll need to copy the ls command as well as all the files it be contingent on.






                share|improve this answer








                New contributor




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










                To run any command inside the chroot, you should have this program available in the chroot (since it cannot use the program installed in the / of filesystem.
                You might requirement parts of /dev, /bin, /etc, /usr, /lib (and probably others also) installed suitably under the new root directory. Symlinks back to 'outside the chroot() environment' won't work, in overall. If you impartial want the ls command, you'll quiet need to copy extra than ls. To run ls, you'll need to copy the ls command as well as all the files it be contingent on.







                share|improve this answer








                New contributor




                Aanchal Kaura 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




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









                answered 10 mins ago









                Aanchal KauraAanchal Kaura

                11




                11




                New contributor




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





                New contributor





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






                Aanchal Kaura 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%2f1007636%2fmagento2-commands-not-running-in-chroot-environment%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

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...