We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Nginx + PHP5-FPM error:(2: No such file or directory)
-
- Posts: 4
- Joined: Thu Dec 22, 2016 9:52 pm
Nginx + PHP5-FPM error:(2: No such file or directory)
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?
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)
This is a file encode problema
You should not upload files whit special chars to prevent this issue.
You need parse this from wordpress.
You should not upload files whit special chars to prevent this issue.
You need parse this from wordpress.
-
- Posts: 4
- Joined: Thu Dec 22, 2016 9:52 pm
Re: Nginx + PHP5-FPM error:(2: No such file or directory)
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)
What a templated used? Wordpress or Wordpress 2 ?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?
-
- Posts: 4
- Joined: Thu Dec 22, 2016 9:52 pm
Re: Nginx + PHP5-FPM error:(2: No such file or directory)
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
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)
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
-
- Posts: 4
- Joined: Thu Dec 22, 2016 9:52 pm
Re: Nginx + PHP5-FPM error:(2: No such file or directory)
didn't see any diference. I've change it and the restart nginx. What is the diference between default, wordpress and wordpress2?