如何在 aws s3 存储桶上运行 PHP 文件?

问题描述:

我已经使用 aws s3 存储桶在 aws 平台上开发了我的网站.如何在我的域上运行 php 文件?

I have developed my website on aws platform using aws s3 buckets.How do I run php files on my domain?

S3 不运行任何类型的 CGI 脚本(PHP、Perl、Ruby 等).将其视为静态 html 和图像存储库.

S3 doesn't run any sort of CGI script (PHP, Perl, Ruby, etc). Think of it as a static html and image repository.

如果您想在 AWS 上托管您的 PHP 应用程序,请考虑使用 AWS Beanstalk.它将启动一个环境(服务器、IP 等),您可以在其中轻松部署和运行 PHP 应用程序.

If you want to host your PHP application on AWS, consider using AWS Beanstalk. It will launch an environment (server, IP, etc) where you can deploy and run your PHP application easily.