You are not logged in.

#1 2013-02-20 07:57:35

jamgood96
Member
Registered: 2012-01-09
Posts: 42

SOLVED Nginx chroot

I've gone through the ArchWiki article on setting up Nginx in a chroot, but am having no luck. When it comes time to start nginx via systemd, I get the error that "/usr/bin/chroot: invalid user". To be honest, this is the first time I've played arond with doing a chroot other than during installation processes.

Any idea where to start? What info do I need to give to help figure things out.

Last edited by jamgood96 (2013-02-20 11:20:41)

Offline

#2 2013-02-20 09:03:16

jamgood96
Member
Registered: 2012-01-09
Posts: 42

Re: SOLVED Nginx chroot

Not sure if it's headway, and not quite sure I understand why it matters, but if I edit the nginx.service file described in the ArchWiki article, and I replace http:http with 33:33, it no longer says invalid user. But now I get "/usr/bin/chroot: failed to run command ‘/usr/sbin/nginx’: Permission denied" instead.

Offline

#3 2013-02-20 11:22:02

jamgood96
Member
Registered: 2012-01-09
Posts: 42

Re: SOLVED Nginx chroot

Yeah, it helps to check the mounting flags in your fstab... Had noexec, which I believe was the root of my problem.

For future reference, I used a similar command to "strace -f -o /tmp/nginx.strace chroot /nginx /usr/local/nginx/sbin/nginx -t" which seemed to help a bit.

Offline

Board footer

Powered by FluxBB