大网数据广告活动
网站运营与故障问答

PHP doesn't work on Amazon AWS S3 for email contact form

· 52CE 我爱测

I built a website with Adobe Muse, it as HTML, uploaded it to a bucket in Amazon AWS S3, enable webhosting on the bucket, and attached the domain to my website with Amazon Route 53. It can be visited with WWW.Bitframe.tech if nee…

问题原文

原帖链接 · TrevorKS · CC BY-SA 3.0

I built a website with Adobe Muse, it as HTML, uploaded it to a bucket in Amazon AWS S3, enable webhosting on the bucket, and attached the domain to my website with Amazon Route 53. It can be visited with WWW.Bitframe.tech if needed.

The form at the bottom uses PHP scripts to send a email to me for my customers. When I try to test the form, I get

Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration.

I checked to make sure the PHP files are properly uploaded, and they are.

I'm assuming I have to enable or set something up within Amazon AWS to enable this php script to work? What should I be looking for to solve this problem?

已采纳解答

原帖链接 · Michael - sqlbot · CC BY-SA 3.0

S3 web site hosting is strictly for static content. Nothing stored in S3 is executable by S3, such as PHP scripts.

This is by design, and not a configuration issue with your site.

You can host a static website on Amazon S3. On a static website, individual web pages include static content. They may also contain client-side scripts. By contrast, a dynamic website relies on server-side processing, including server-side scripts such as PHP, JSP, or ASP.NET. Amazon S3 does not support server-side scripting. (emphasis added)

http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。