Skip to content

Run Hypnotoad as nginx user #1799

Answered by Grinnz
Poorchop asked this question in Q&A
Jun 16, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

There is no restriction what user can run a mojo app based on its location or owner. The user must have permissions to read the script, and must have the environment set up to load your Perl modules. Since you are using a local::lib which is specific to your user, you must configure that local::lib location in the other user's env in your init script for the hypnotoad daemon (which can also handle choosing the user to run it as).

PERL5LIB=/path/to/your/perl5/lib/perl

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@Poorchop
Comment options

@Grinnz
Comment options

Answer selected by Poorchop
Comment options

You must be logged in to vote
3 replies
@Poorchop
Comment options

@Grinnz
Comment options

@squizzster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants