【问题标题】:XAMPP - ALIAS - Unknown: failed to open streamXAMPP - 别名 - 未知:无法打开流
【发布时间】:2013-10-09 10:40:53
【问题描述】:

按照here 的说明,我创建了 2 个 Alias 目录。

<Directory "C:\Users\user\Documents\sites">
   Allow from all
   Require all granted
</Directory>

Alias /site "C:\Users\user\Documents\sites"

<Directory "S:\directory (servername)\site">
   Allow from all
   Require all granted
</Directory>

Alias /lab "S:\directory"

当我访问localhost/site 时,它可以正常工作并在那里加载网页。

当我访问localhost/lab 时,它返回一个错误。

警告:未知:无法打开流:中没有这样的文件或目录 第0行未知

致命错误:未知:无法打开所需的“S:/directory (servername)/site/index.php” (include_path='.;C:\ProgramData\xampp\php\PEAR') 在第 0 行的未知中

当我在S:\directory (servername) 的属性中注意到S:\directory (servername) PATH 实际上是\\servername\directory (servername) 所以它被映射了。

我将如何让我的 Alias 工作签名,以便我可以成功访问 localhost/lab

谢谢

【问题讨论】:

    标签: php apache xampp


    【解决方案1】:

    你确定你有 S:\directory....

    您可以只使用 C:\dir\server\sites,然后在该目录中创建两个文件夹 lab 和 site!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-16
      • 2020-05-21
      • 1970-01-01
      • 1970-01-01
      • 2021-05-21
      • 2010-11-04
      • 2019-09-10
      相关资源
      最近更新 更多