I know, this question has been asked many times, but it seems the problem is different or I am missing something.
I have the following structure: /var/www/html/website/class/useofautoload.php
The vendor folder is at: /var/www/html/website/vendor and it has necessary folders and autoload.php file.
Things checked:
- Failed opening required '../vendor/autoload.php'
- Have relative path
- done:
composer install - done:
composer update
Still, I don't know why I am getting this error.
Note: I have installed the composer at using sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer, will it create a problem as such?
I am using Amazon LightSail with only Ubuntu and no added stacks.