Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

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

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
pedrorainho
Posts: 4
Joined: Thu Dec 22, 2016 9:52 pm

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

Post by pedrorainho » Thu Dec 22, 2016 10:01 pm

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?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

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

Post by skamasle » Thu Dec 22, 2016 10:06 pm

This is a file encode problema

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

You need parse this from wordpress.
Top

pedrorainho
Posts: 4
Joined: Thu Dec 22, 2016 9:52 pm

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

Post by pedrorainho » Thu Dec 22, 2016 10:09 pm

I know the solution in wordpress but how can I fix this also in nginx? Because this must be a common problem, right?
Top

n0rton
Posts: 29
Joined: Tue Mar 31, 2015 7:31 am

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

Post by n0rton » Fri Dec 23, 2016 2:56 pm

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 ?
Top

pedrorainho
Posts: 4
Joined: Thu Dec 22, 2016 9:52 pm

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

Post by pedrorainho » Sat Dec 24, 2016 11:47 am

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
Top

n0rton
Posts: 29
Joined: Tue Mar 31, 2015 7:31 am

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

Post by n0rton » Sat Dec 24, 2016 12:36 pm

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
Top

pedrorainho
Posts: 4
Joined: Thu Dec 22, 2016 9:52 pm

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

Post by pedrorainho » Sat Dec 24, 2016 2:28 pm

didn't see any diference. I've change it and the restart nginx. What is the diference between default, wordpress and wordpress2?
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password