-
Notifications
You must be signed in to change notification settings - Fork 90
Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' #3
Comments
Needs to composer & require aws-sdk-php. |
I got the same error too. Please let me know what to be done. |
Hello all, I have just run into this issue as well. I was able to resolve this by finding where the file was located and modifying the php script to match. (I literally only added 'dynamodb/' to the file path as specified in the script):
Line numbers for the lines in these files are as follows (note that the period is a hard link to the current working directory). There will also be an error for describing the line number of the failure in the web browser.
Hopefully this will clear up this for some people. ACloudGuru please update this at your earliest convenience. Respectfully, |
You need composer and AWS SDK for PHP. This is already in the updated video of ACloudGuru. Details are in - https://docs.aws.amazon.com/aws-sdk-php/v2/guide/installation.html Go to /var/www/html directory and run following commands -
Then you should have all required files in html directory -
|
This error could even actually be that your composer.phar needs to be updated. If you observe carefully you will notice that when you run ls on your html you might not find composer.lock Sometimes even after running the curl -sS https://getcomposer.org/installer | php [root@ip-172-31-18-42 html]# php composer.phar require aws/aws-sdk-php Using version ^2.8 for aws/aws-sdk-php
PHP Warning: proc_open(): fork failed - Cannot allocate memory in phar:///var/w ww/html/composer.phar/vendor/symfony/console/Application.php on line 959 Warning: proc_open(): fork failed - Cannot allocate memory in phar:///var/www/ht ml/composer.phar/vendor/symfony/console/Application.php on line 959 [ErrorException] In a nut shell, Just simple run the command below in the hmtl directory php composer.phar update Then you are good to go, Your files will update in the dynamodb sucessfully after wards. Cheers. |
This solves my problem |
When i run the ${PUBLIC_IP}/dynamodb/createtables.php , we get following error,
please fix the code so that other beginer will not face the issue.
Thanks,
Selva
Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/dynamodb/createtables.php on line 12
Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/dynamodb/createtables.php on line 12
The text was updated successfully, but these errors were encountered: