Composer will only execute as root, will not execute as common user












0














Composer has worked fine without incident. I recently upgraded my Mac (Mojave) to PHP 7.2.12 using homebrew.



Now I'm unable to run composer. It simply hangs and does nothing, yet if I run it as sudo it runs fine.



I've already validated:




  1. Composer lives in my /usr/local/bin folder and that folder is in the $PATH

  2. Composer's permissions are 0755

  3. I've checked the ~/.composer folder and it is owned by the user with proper permissions


I've tried removing it and re-installing, yet I experience the same hang as soon as I go to run php composer-setup.php



Any help or suggestions would be great.










share|improve this question






















  • What does this composer-setup.php file do?
    – xabbuh
    Nov 12 at 18:12










  • php composer-setup.php is the install for composer
    – Sean
    Nov 12 at 19:36










  • Can you run any Composer command with -vvv added (e.g. composer install -vvv) and update your question with the output?
    – xabbuh
    Nov 13 at 10:32










  • There is no output, it just hangs. Incredibly strange though as running it with sudo works fine. I noticed this happened after upgrading to PHP 7.2 but I had thought this was some sort of permission issue. I've checked all permissions and everything appears fine.
    – Sean
    Nov 13 at 15:27










  • Sorry, no idea then.
    – xabbuh
    Nov 13 at 16:27
















0














Composer has worked fine without incident. I recently upgraded my Mac (Mojave) to PHP 7.2.12 using homebrew.



Now I'm unable to run composer. It simply hangs and does nothing, yet if I run it as sudo it runs fine.



I've already validated:




  1. Composer lives in my /usr/local/bin folder and that folder is in the $PATH

  2. Composer's permissions are 0755

  3. I've checked the ~/.composer folder and it is owned by the user with proper permissions


I've tried removing it and re-installing, yet I experience the same hang as soon as I go to run php composer-setup.php



Any help or suggestions would be great.










share|improve this question






















  • What does this composer-setup.php file do?
    – xabbuh
    Nov 12 at 18:12










  • php composer-setup.php is the install for composer
    – Sean
    Nov 12 at 19:36










  • Can you run any Composer command with -vvv added (e.g. composer install -vvv) and update your question with the output?
    – xabbuh
    Nov 13 at 10:32










  • There is no output, it just hangs. Incredibly strange though as running it with sudo works fine. I noticed this happened after upgrading to PHP 7.2 but I had thought this was some sort of permission issue. I've checked all permissions and everything appears fine.
    – Sean
    Nov 13 at 15:27










  • Sorry, no idea then.
    – xabbuh
    Nov 13 at 16:27














0












0








0







Composer has worked fine without incident. I recently upgraded my Mac (Mojave) to PHP 7.2.12 using homebrew.



Now I'm unable to run composer. It simply hangs and does nothing, yet if I run it as sudo it runs fine.



I've already validated:




  1. Composer lives in my /usr/local/bin folder and that folder is in the $PATH

  2. Composer's permissions are 0755

  3. I've checked the ~/.composer folder and it is owned by the user with proper permissions


I've tried removing it and re-installing, yet I experience the same hang as soon as I go to run php composer-setup.php



Any help or suggestions would be great.










share|improve this question













Composer has worked fine without incident. I recently upgraded my Mac (Mojave) to PHP 7.2.12 using homebrew.



Now I'm unable to run composer. It simply hangs and does nothing, yet if I run it as sudo it runs fine.



I've already validated:




  1. Composer lives in my /usr/local/bin folder and that folder is in the $PATH

  2. Composer's permissions are 0755

  3. I've checked the ~/.composer folder and it is owned by the user with proper permissions


I've tried removing it and re-installing, yet I experience the same hang as soon as I go to run php composer-setup.php



Any help or suggestions would be great.







composer-php






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 at 17:52









Sean

1,009624




1,009624












  • What does this composer-setup.php file do?
    – xabbuh
    Nov 12 at 18:12










  • php composer-setup.php is the install for composer
    – Sean
    Nov 12 at 19:36










  • Can you run any Composer command with -vvv added (e.g. composer install -vvv) and update your question with the output?
    – xabbuh
    Nov 13 at 10:32










  • There is no output, it just hangs. Incredibly strange though as running it with sudo works fine. I noticed this happened after upgrading to PHP 7.2 but I had thought this was some sort of permission issue. I've checked all permissions and everything appears fine.
    – Sean
    Nov 13 at 15:27










  • Sorry, no idea then.
    – xabbuh
    Nov 13 at 16:27


















  • What does this composer-setup.php file do?
    – xabbuh
    Nov 12 at 18:12










  • php composer-setup.php is the install for composer
    – Sean
    Nov 12 at 19:36










  • Can you run any Composer command with -vvv added (e.g. composer install -vvv) and update your question with the output?
    – xabbuh
    Nov 13 at 10:32










  • There is no output, it just hangs. Incredibly strange though as running it with sudo works fine. I noticed this happened after upgrading to PHP 7.2 but I had thought this was some sort of permission issue. I've checked all permissions and everything appears fine.
    – Sean
    Nov 13 at 15:27










  • Sorry, no idea then.
    – xabbuh
    Nov 13 at 16:27
















What does this composer-setup.php file do?
– xabbuh
Nov 12 at 18:12




What does this composer-setup.php file do?
– xabbuh
Nov 12 at 18:12












php composer-setup.php is the install for composer
– Sean
Nov 12 at 19:36




php composer-setup.php is the install for composer
– Sean
Nov 12 at 19:36












Can you run any Composer command with -vvv added (e.g. composer install -vvv) and update your question with the output?
– xabbuh
Nov 13 at 10:32




Can you run any Composer command with -vvv added (e.g. composer install -vvv) and update your question with the output?
– xabbuh
Nov 13 at 10:32












There is no output, it just hangs. Incredibly strange though as running it with sudo works fine. I noticed this happened after upgrading to PHP 7.2 but I had thought this was some sort of permission issue. I've checked all permissions and everything appears fine.
– Sean
Nov 13 at 15:27




There is no output, it just hangs. Incredibly strange though as running it with sudo works fine. I noticed this happened after upgrading to PHP 7.2 but I had thought this was some sort of permission issue. I've checked all permissions and everything appears fine.
– Sean
Nov 13 at 15:27












Sorry, no idea then.
– xabbuh
Nov 13 at 16:27




Sorry, no idea then.
– xabbuh
Nov 13 at 16:27












1 Answer
1






active

oldest

votes


















0














While debugging my application I realized that when I ran the composer manager that it had a debug break in it that was being cause by xdebug in phpStorm.



So future note to anyone who encounters a similar issue, make sure your debugger is disabled when you run composer.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    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%2fstackoverflow.com%2fquestions%2f53267557%2fcomposer-will-only-execute-as-root-will-not-execute-as-common-user%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    While debugging my application I realized that when I ran the composer manager that it had a debug break in it that was being cause by xdebug in phpStorm.



    So future note to anyone who encounters a similar issue, make sure your debugger is disabled when you run composer.






    share|improve this answer


























      0














      While debugging my application I realized that when I ran the composer manager that it had a debug break in it that was being cause by xdebug in phpStorm.



      So future note to anyone who encounters a similar issue, make sure your debugger is disabled when you run composer.






      share|improve this answer
























        0












        0








        0






        While debugging my application I realized that when I ran the composer manager that it had a debug break in it that was being cause by xdebug in phpStorm.



        So future note to anyone who encounters a similar issue, make sure your debugger is disabled when you run composer.






        share|improve this answer












        While debugging my application I realized that when I ran the composer manager that it had a debug break in it that was being cause by xdebug in phpStorm.



        So future note to anyone who encounters a similar issue, make sure your debugger is disabled when you run composer.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 at 18:00









        Sean

        1,009624




        1,009624






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2fstackoverflow.com%2fquestions%2f53267557%2fcomposer-will-only-execute-as-root-will-not-execute-as-common-user%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

            Bressuire

            Vorschmack

            Quarantine