Php error: failed to open stream: No such file or directory

Linode Staff

Im having an error in my site, it seems to be with the PHPversion of the host, can you please tell me if you can fix it or if it has to be with the development of the application

The error I am receiving is:

Warning : md5_file (/var/www/html/image/tmp/$filename
failed to open stream: No such file or directory in /var/www/html/system/library/

1 Reply

Hey there,

There could be a few reasons for your site not being able to load correctly.

  1. Check the file path for typos
  2. Verify the permissions of the file

If you file path is correct you may have the wrong permissions for the folder. You can check the owner of the file by running the following command.

 ps aux | grep httpd

The out put should let you know which group is the owner of the folder. Usually this is nobody or www-data. You will need to change the ownership of the folder. By entering the following command:

 sudo chown nobody /var/www/html/image/tmp/

If the group is www-data or something else from the output of the first command you need to change nobody in the previous command.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct