I have file structure on EC2 like : but facing some file referencing problem.
index.php -db -config.php -cron -cron1.php
I have tried file
I had a similar problem. Just to help out someone with the same issue:
My error was the user file attribute for the files in /var/www. After changing them back to the user "www-data", the problem was gone.