服务器,而不是下载文件的信息显示这 [英] Server Downloading File Instead Of Showing It
问题描述
我有一个Apache服务器在Rackspace的云主机上运行,所以我手动安装Word preSS(设置数据库,wget的对latest.zip ...),并把它放在在/ var / WWW
,但现在当我试图访问它的第一次,它会下载IP地址是陌生的文件名称,而不是显示我的话preSS安装的。
I have a Apache server running at Rackspace Cloud Hosting, so I've installed Wordpress manually(setting up the database, wget the latest.zip...) and placed it at /var/www
, but now when I try to access it for the first time, it downloads a strange file with the IP as name instead of showing me the Wordpress Installation.
的 PS:如果我把它放在像博客的子目录同样的情况
的
推荐答案
我想你还没有配置Apache来执行PHP(mod_php的?)现在,它只是提供你的PHP文件像任何旧的文件类型的你还等什么让你的字preSS的index.php作为文件下载。
I think you haven't configured Apache to execute PHP (mod_php?) Right now it's just serving your PHP files like any old file type so what you're getting is your wordpress index.php as a file download.
我不知道什么样的过程是Rackspace公司,但通常这将意味着使mod_php的。
I'm not sure what the process is for Rackspace, but usually this would mean enabling mod_php.
您是否有在该网站工作的任何其他PHP文件?
Do you have any other PHP files that work on that site?
这篇关于服务器,而不是下载文件的信息显示这的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!