我正在尝试在 Fedora 17 上安装 MediaWiki
我已按照以下说明安装指南进行操作。
我达到了一个阶段,我应该在本地主机/维基页面上配置MediaWiki。
相反,我得到一个页面,指定该目录下的文件。
我的 php 设置/安装似乎有问题。
如果您需要我发布其他信息,请告诉我。
关于如何解决此问题的任何想法?
编辑:以下文件可见
[TXT] api.php 12-Apr-2011 04:07 4.5K
[DIR] config/ 12-Jun-2012 12:58 -
[DIR] images/ 12-Jun-2012 12:58 -
[TXT] index.php 01-Jan-2010 23:09 4.2K
[TXT] opensearch_desc.php 21-Mar-2009 18:48 3.0K
[DIR] skins/
谢谢现在php页面的源代码显示在其中,出现以下消息
* This is the main web entry point for MediaWiki.
*
* If you are reading this in your web browser, your server is probably
* not configured correctly to run PHP applications!
任何想法如何配置它?
提前致谢
您可以尝试添加
.htaccess
文件到您看到的目录中,其中包含:
Options -Indexes
在其中,禁用目录列表。
编辑:
看看本地 Apache 文件夹中的 httpd.conf 文件。您还需要修改 DirectoryIndex 值以显示索引.php还需要:
DirectoryIndex index.php index.html index.htm
编辑2:
要运行安装脚本,您需要使可由 Web 服务器/Apache 用户写入的"配置"目录。
chmod a+w config
使用以下命令重新启动 Apache :
service httpd restart
然后重新加载页面。
呵呵