简体   繁体   English

如何在Amazon EC2中运行index.php文件?

[英]How to run index.php file in amazon EC2?

I have been newly introduced to AMAZON EC2 Server. 我刚被介绍给AMAZON EC2 Server。 Recently I created a micro instance EC2 Ubuntu and installed Apache, PHP & MySql. 最近,我创建了一个微型实例EC2 Ubuntu,并安装了Apache,PHP和MySql。 I have some PHP files including an index.php. 我有一些PHP文件,包括index.php。 I have uploaded my files to /var/www/html directory. 我已将文件上传到/ var / www / html目录。 Now when i open my Public DNS in browser it shows nothing. 现在,当我在浏览器中打开我的公共DNS时,它什么也没有显示。 The same thing is working in my localhost setup. 同样的事情正在我的本地主机设置中工作。 Is there something enabling mod rewrite in EC2 Ubuntu instance ? 在EC2 Ubuntu实例中是否有启用mod重写的功能?

Please help. 请帮忙。

Thanks in advance. 提前致谢。

Enable inbound and outbound rules for port 80 (http) in your security group(s) that is assigned for the instance. 为分配给实例的安全组中的端口80(http)启用入站和出站规则。 By default the only inbound rule is ssh (port 22) and all outbound rules are enabled. 默认情况下,唯一的入站规则是ssh(端口22),并且所有出站规则均已启用。 So you might only need to change the inbound rule. 因此,您可能只需要更改入站规则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM