edelwater
edelwater

Reputation: 2802

Permission denied with nginx and php

Warning: opendir(/usr/local/n/test): failed to open dir: Permission denied in /usr/local/n

How can I fix this?

Upvotes: 0

Views: 3934

Answers (2)

Lukas Oberhuber
Lukas Oberhuber

Reputation: 1064

The only solution to this was to copy the files. I wasn't able to get nginx to read symbolically linked files.

I've seen recommendations that the files under the main 'public' or 'html' directory can be followed, but this was not the case for me.

Upvotes: 2

Zhenyu Li
Zhenyu Li

Reputation: 745

I remember there is option in php or nginx(apache) to allow symbolic link, you need to check that. you could search google : nginx and php using symbolic link I couldn't remember that option exactly.

Upvotes: 1

Related Questions