-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[How to] Unable run node js script under php (www-data can't run external program) #1862
Comments
Hi! The problem is not in the user See what happens - you have installed the node under the workspace container but the requests are by other container called php-fpm. And in the php-fpm you don't have node installed So you should install node there - see the example in dockerfile of workspace Lines 447 to 468 in 538b6aa
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
Info:
$ docker --version
): Docker version 18.06.1-ce, build e68fc7a$ git rev-parse HEAD
): 436df88Issue:
Unable run node js script under php
Expected behavior:
I should be able to run nodejs script under php
Relevant Code:
I have installed nodejs in workspace container
When i try to run same under php it fails
Output:
Let's find out which user performs code
Output:
So, user "www-data" does not know anything about installed node js
How i can fix it?
The text was updated successfully, but these errors were encountered: