AWS S3 PHP - How to open access to a file from PHP

Web links

Create Bucket

Lock down bucket to a policy:

Errors: PHP Fatal error: Uncaught Error: Call to undefined function JmesPath\mb_strlen() in /home/poultryp/public_html/S3/JmesPath/Lexer.php:343

PHP Fatal error: Uncaught Aws\Exception\CredentialsException: Cannot read credentials from /.aws/credentials in /home/poultryp/public_html/S3/Aws/Credentials/CredentialProvider.php:874

  • See “Setup Credentials” above
  • If this still happens:
  • // Needed overwise AWS cannot find home directory

Access Denied:

Last modified November 7, 2022: Lots of updates (46e788a)