I have a Centos 7.2 web server and Apache httpd 2.4.6, also I have an outdated php page with Smarty installed in the folder /var/www/html/project. When I try to load the page, I get this error:
Fatal error: Smarty error: cannot be written to the file $ compile_dir '/ var / www / html / project / tmp'. Verify that the $ compile_dir file is writable by the web server user. at...
I understand that the tmp folder must have write permissions, so I added it:
chmod 777 -R tmp
ls -l
drwxrwxrwx. 2 user user Jun 6 28:22 p.m. tmp
But the error still exists ...
What else could cause this error?