Page 1 of 1

Nginx + PHP5-FPM error:(2: No such file or directory)

Posted: Thu Dec 22, 2016 10:01 pm
by pedrorainho
Hi,

I've setup vesta with Nginx + PHP5-FPM for my wordpress sites, and recently i came across this error:

2016/12/22 22:23:07 [error] 13745#13745: *57198 open() "/home/yyyyy/web/xxxxx/public_html/wp-content/uploads/2016/08/tarte-de-maça-fatia-300x200.jpg" failed (2: No such file or directory), client: zzzzzz, server: ingredientes.pt, request: "GET /wp-content/uploads/2016/08/tarte-de-ma%C3%A7a-fatia-300x200.jpg HTTP/1.1", host: "www.ingredientes.pt", referrer: "http://www.ingredientes.pt/wp-admin/upload.php"

the url has the char 'ç' in it and this is what is causing the problem. Other urls with chars like 'ã', 'é' have the same problem. So the problem is using this king of chars in the urls.

I've for instance another urls like 'http://www.ingredientes.pt/wp-content/u ... rances.jpg' without this chars and work just fine.

Does anyone know how can I solve this problem?

Re: Nginx + PHP5-FPM error:(2: No such file or directory)

Posted: Thu Dec 22, 2016 10:06 pm
by skamasle
This is a file encode problema

You should not upload files whit special chars to prevent this issue.

You need parse this from wordpress.

Re: Nginx + PHP5-FPM error:(2: No such file or directory)

Posted: Thu Dec 22, 2016 10:09 pm
by pedrorainho
I know the solution in wordpress but how can I fix this also in nginx? Because this must be a common problem, right?

Re: Nginx + PHP5-FPM error:(2: No such file or directory)

Posted: Fri Dec 23, 2016 2:56 pm
by n0rton
pedrorainho wrote:I know the solution in wordpress but how can I fix this also in nginx? Because this must be a common problem, right?
What a templated used? Wordpress or Wordpress 2 ?

Re: Nginx + PHP5-FPM error:(2: No such file or directory)

Posted: Sat Dec 24, 2016 11:47 am
by pedrorainho
None of those i'm using the default. Were can I see the differences between templates?

Another question about this error, in this 2 url:

http://www.ingredientes.pt/wp-content/u ... os-xxl.jpg
http://www.ingredientes.pt/wp-content/u ... os-xxl.jpg

the first one gives me 404 and the second one gives me 200. The only diference between those two url are the capital letter 'T' in Torta.

Why is this happening?

I know that those two are different urls and I also know that nginx supports case insensitive.

Is case insensitive active by default in vesta installation or do I need to do something?

Note the nginx configuration is the default one installed by vesta, and I haven't change it.

Thanks

Re: Nginx + PHP5-FPM error:(2: No such file or directory)

Posted: Sat Dec 24, 2016 12:36 pm
by n0rton
Change template and see if work
pedrorainho wrote:None of those i'm using the default. Were can I see the differences between templates?

Another question about this error, in this 2 url:

http://www.ingredientes.pt/wp-content/u ... os-xxl.jpg
http://www.ingredientes.pt/wp-content/u ... os-xxl.jpg

the first one gives me 404 and the second one gives me 200. The only diference between those two url are the capital letter 'T' in Torta.

Why is this happening?

I know that those two are different urls and I also know that nginx supports case insensitive.

Is case insensitive active by default in vesta installation or do I need to do something?

Note the nginx configuration is the default one installed by vesta, and I haven't change it.

Thanks

Re: Nginx + PHP5-FPM error:(2: No such file or directory)

Posted: Sat Dec 24, 2016 2:28 pm
by pedrorainho
didn't see any diference. I've change it and the restart nginx. What is the diference between default, wordpress and wordpress2?