-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
HHVM and directory permissions #150
Comments
@enricodeleo I just set-up a bedrock-ansible using the HHVM option, and I have the same problem as you for the uploads. The owner of the the folder is :
For your second problem (the bad gateway and HHVM), I didn't experience that. Did you check the logs for any info that might be useful? Did you try to restart HHVM and NGINX manually before switching to a tcp socket? I wonder if that has hanything to do with HHVM at all. Since I'm doing a talk about Bedrock this evening, I going to experiment this afternoon with clean installs with HHVM and PHP-FPM. I'll report back. @swalkinshaw, what the permissions should be on the folders? |
@louim I tried a fresh install and both php-fpm and hhvm gave me the same issue (bad gateway). I digged a little bit in and I found that switching from the unix socket to tcp solve this problem but not that of the directory permissions. |
Solution/workaround for directory permissions in Vagrantfile when using HHVM: Change:
to:
That lets group write to directories. Probably not the best solution, would love to hear opinions for something better. |
Is this a problem for anyone else or just me these days? |
I believe it's still a problem :( I looked into this at the time and it was more complicated than it seems unfortunately. Forgot about it since then because we don't use HHVM though. |
Yeah, really struggling with it, because the workaround seems not to work :( |
Any tipps on where to look to debug it and then help with the solution? |
Sounds like all of this could be easily resolved with ACL. |
OK @QWp6t ... any suggestion how I could help? :) |
You should use I'll see if I can reproduce this issue. How do you guys run into it? Just simply enabling hhvm results in this issue? |
@QWp6t yeah just the standard HHVM install. |
See #431 |
Hi everybody,
good to see we have HHVM support now! I forked and implemented this feature myself (plus SSL) in the past but I had some problem with directory permissions: I had to assign the ownership of
/srv/www/site_name
to the user www-data.Now, hoping this implementation was better than mine, I cloned a new copy of this repo and tried it with HHVM but I experienced the same issue.
Actually, I had to modify something since the current version of bedrock-ansible didn't work for me out of the box with HHVM set to true (the error was 502 bad gateway). I discovered that I have to switch from unix socket to tcp socket in order to make it work. The same happened with my implementation.
Now, if I leave the
vagrant
user as owner, everytime I try to upload a file or install a plugin from the dashboard I'm asked for ftp credentials.Anyone experienced the same issue? Any hint?
The text was updated successfully, but these errors were encountered: