IIS网站“;无法打开流:C:inetpubvhosts";中没有这样的文件或目录;但文件存在


IIS website "failed to open stream: No such file or directory in C:inetpubvhosts" but file exists there

嗨,我一直在努力解决一个wierd问题。我正在使用IIS,并将我的一个网站文件夹移到服务器的桌面上,然后放回现在我看到

警告:includeonce(./lib/config.inc.php)[function.includeonce]:无法打开流:在第12行的C:''inetpub''vhosts''politicacim.net''httpdocs''index.php中没有这样的文件或目录

警告:include_once()[function.include]:打开"失败/lib/config.inc.php',用于在第12行的C:''inetpub''vhosts''politicacim.net''httpdocs''index.php中包含(include_path='.;./includes;./pear')

这种错误。我查看了我的根文件夹,发现它的权限是系统和管理员的完全访问权限,我该如何让它工作?请帮帮我。

给定错误消息,您需要将config.inc.php文件放在以下位置之一:

C:'inetpub'vhosts'politikacim.net'httpdocs'lib'config.inc.php
C:'inetpub'vhosts'politikacim.net'httpdocs'includes'config.inc.php
C:'inetpub'vhosts'politikacim.net'httpdocs'pear'config.inc.php

如果您的Web服务器在其他用户帐户下运行,则系统/管理员权限是不相关的。您必须根据您的网络服务器的用户ID授予权限,而不是您自己的个人ID或其他帐户。