-
Notifications
You must be signed in to change notification settings - Fork 695
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
Incorrect work in emperor mode with php plugin #26
Comments
Can You try without DOCUMENT_ROOT var in nginx and with those options in vassal config:
It should work with chrooted vassal. I have few php apps in chroot and they all work fine |
Sorry, I've confused --chroot with --namespace, those are two different options. Anyway --php-docroot should help with DOCUMENT_ROOT |
I've removed DOCUMENT_ROOT from nginx configuration and php-docroot = /home/testuser/example.com/www to vassal configuration. It is OK until reload of vassal. Problem is still presented. But now uwsgi return 404, not 500.
|
Why do You have |
Under /fpanel/data/testuser/ I have chrooted env for user.
under /home/testuser/* user has their sites
I'll try to build uwsgi from source. May be it's a distro specific problem |
Try this options instead of chroot, this is how I run php apps and it works fine.
|
I tried to reproduce this issue but --chroot option works fine for me, the only thing I've noticed is that You don't have
message in Your logs while I do. Try using latest uwsgi from source. |
OK, if I have master-as-root in my config than my vassal does not chroot(), please remove it from Your vassal ini and try again. Hopefully this time it will work ;) |
Working config (using http socket instead of nginx, just remove http and remap-modifier options and then uncomment socket to use it in nginx)
|
Yes! It works without master-as-root! But in this case chrooted user can get access to socket file. It is not very good. |
First of all: every user will have access to socket file since You set |
chmod-socket = 666 is for test purposes =) |
Vassal configuration:
Nginx configuration:
Then I start uwsgi and it work as expected
But when I change ini-file of vassal or simply touch it and uwsgi gracefilly reloads the config, I got an error
Uwsgi thinks that this path is not in chroot, because I change DOCUMENT_ROOT var in nginx configuration. But without it any site in chroot will be broken.
Then I kill emperor process and start it again and it works perfectly until the next reload.
I think it is a bug.
PS: Without using chroot this problem is not presented. uwsgi 1.2.6. Sorry for my english
The text was updated successfully, but these errors were encountered: