You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MediaWiki Vector皮肤无法加载,Apache提示找不到index.php求助

MediaWiki Vector皮肤加载失败:提示找不到skins/Vector/index.php

问题详情

全新安装MediaWiki后,网站仅显示原始文本,Vector皮肤无法加载。查看Apache错误日志,出现如下提示:

script 'C:/Program Files/xampp/htdocs/wiki/skins/Vector/index.php' not found or unable to stat

实际Vector皮肤文件夹中并没有index.php文件。

排查与解决方向

  • 核对皮肤配置与MediaWiki版本
    1.35及以上版本的MediaWiki,Vector皮肤已采用新结构,不再包含index.php。打开LocalSettings.php,确认$wgDefaultSkin的值为'vector'(小写字符串),而非指向旧的文件路径配置。
  • 补全皮肤文件
    重新下载与当前MediaWiki版本匹配的安装包,解压后将skins/Vector目录完整覆盖到现有站点的对应路径,确保Vector.php、skin.json等核心皮肤文件齐全,避免安装时文件遗漏。
  • 检查路径与重写配置
    确认LocalSettings.php中$wgScriptPath设置正确(例如'/wiki');同时检查XAMPP的Apache是否启用了mod_rewrite模块,若使用URL美化功能,需确保根目录的.htaccess文件配置了正确的重写规则。
  • 验证文件权限
    在Windows环境下,确保Apache进程对skins/Vector文件夹拥有读取权限,避免因权限限制导致无法加载皮肤资源。

内容的提问来源于stack exchange,提问作者Lea Luftig

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.18 04:19:53