Home » Php » amazon web services – php Api hosted on AWS s3 bucket

amazon web services – php Api hosted on AWS s3 bucket

Posted by: admin February 25, 2020 Leave a comment

Questions:

I wanna host a php file that retrieve data from a mysql DB how ever aws is not authorizing POST method.
I need to know how can I add the code in PHP knowing I already configured the Bucket policy and CORS

How to&Answers:

You can only serve static content from an S3 – PHP will not be processed.

If you want to set up a dynamic PHP website on AWS have a look at LightSail and its LAMP stack.