I configured an Amazon Cloud server, installed php, apache, etc. Then installed composer and ran $php composer.phar
and its working.
But when I tried to include the vendor/autoload.php file (which I can clearly see on the server), I get this warning and fatal error because it can't seem to find the file:
Warning: require(/home/ec2-user/vendor/autoload.php): failed to open stream: Permission denied in /var/www/html/index.php on line 12
Fatal error: require(): Failed opening required '/home/ec2-user/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/index.php on line 12
Line 12 is simply:
require "/home/ec2-user/vendor/autoload.php";
Does anybody know what is causing this error or anything that would help eliminate the error? Thanks.