Skip to content

need prepare /var/run/nginx directory #1

@peerasan

Description

@peerasan

If nginx.conf not specify PID file
pid /var/run/nginx.pid;

nginx will create file nginx.pid at /var/run/nginx/, but it will error since the directory is not found.

Solutions - create default /var/run/nginx directory.

RUN mkdir -p /apps; \
	mkdir -p /var/run/php; \
	mkdir -p /var/log/php7; \
        mkdir -p /var/run/nginx; \
	chown -Rf nginx:nginx /apps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions