Php error: failed to open stream: No such file or directory
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/
There could be a few reasons for your site not being able to load correctly.
- Check the file path for typos
- 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.