Composer will only execute as root, will not execute as common user
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:
- Composer lives in my
/usr/local/bin
folder and that folder is in the $PATH - Composer's permissions are 0755
- 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
add a comment |
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:
- Composer lives in my
/usr/local/bin
folder and that folder is in the $PATH - Composer's permissions are 0755
- 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
What does thiscomposer-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
add a comment |
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:
- Composer lives in my
/usr/local/bin
folder and that folder is in the $PATH - Composer's permissions are 0755
- 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
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:
- Composer lives in my
/usr/local/bin
folder and that folder is in the $PATH - Composer's permissions are 0755
- 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
composer-php
asked Nov 12 at 17:52
Sean
1,009624
1,009624
What does thiscomposer-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
add a comment |
What does thiscomposer-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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 20 at 18:00
Sean
1,009624
1,009624
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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