I've installed Laravel on a EC2 instance. All permissions have been written and all necessary solutions have been installed. I can access the Laravel directory fine, however when accessing the public
folder, all I'm getting is a blank white page. No errors and no "welcome" page that I normally should be seeing. However, this is the error being logged on the server:
PHP Fatal error: require(): Failed opening required '/var/www/mrktpop/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mrktpop/bootstrap/autoload.php on line 17
Line 17 of autoload.php is as follows:
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/../vendor/autoload.php';
Anyone experience this and can extend an offering hand? No /vendor
folder exists anywhere on the directory...
It sounds like it's a memory issue. The options aren't great if you're not familiar with command line, but they work. Try upgrading PHP. Increase memory PHP is allowed to use in php.ini. Try committing your composer.lock
file to your repo, pulling it to the EC2 instance, and then running composer install
.
Hope this helps!