Skip to content

Socket Permission #6336

@Blackglade

Description

@Blackglade

I'm trying to use HHVM as a fastcgi server to communicate with nginx over socket. I specified the socket to be created at /var/run/hhvm/sock and passed that url onto my fastcgi_pass option. Every time I try to execute a php file I get a permission denied error because nginx doesn't have permission to use the socket. The only two options I see is to either run a chmod/chown command at run time every time on the socket file while hhvm is running for nginx to access it or to either somehow specify it to run under the nginx user. I wonder if there is any option to accomplish the latter?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions