“如何修复”;你没有';“我没有权限访问此服务器上的/index.php。”;关于64位WAMP 3

“如何修复”;你没有';“我没有权限访问此服务器上的/index.php。”;关于64位WAMP 3,php,apache,wamp3,Php,Apache,Wamp3,在本地主机端口80处使用WAMP 3(Apache/2.4.23(Win64)PHP/7.0.10 mod_fcgid/2.3.9服务器) #虚拟主机 # 选项+索引+跟随符号链接+多视图 允许超越所有 要求本地 服务器管理员 DocumentRoot“c:/wamp/www/testdir/” ServerName prerelease.mydomain.com DirectoryIndex.php ErrorLog“logs/prerelease.mydomain.com error.log

在本地主机端口80处使用WAMP 3(Apache/2.4.23(Win64)PHP/7.0.10 mod_fcgid/2.3.9服务器)

#虚拟主机
#
选项+索引+跟随符号链接+多视图
允许超越所有
要求本地
服务器管理员
DocumentRoot“c:/wamp/www/testdir/”
ServerName prerelease.mydomain.com
DirectoryIndex.php
ErrorLog“logs/prerelease.mydomain.com error.log”
CustomLog“logs/prerelease.mydomain.com access.log”通用
#
这是我的httpd.conf(仅在标准文件末尾添加了这些行)

LoadModule fcgid_module modules/mod_fcgid.so
fcgidenv PHPRC“C:/wamp/bin/php/php7.0.10”
AddHandler fcgid script.php
FcgidWrapper“C:/wamp/bin/php/php7.0.10/php cgi.exe”。php
FcgidIOTimeout 1200
FcgidConnectTimeout 1200
FcgidBusyScanInterval 1200
FcgidBusyTimeout 1200
FCGID错误扫描间隔1200
FcgidIdleScanInterval 1200
FcgidIdleTimeout 1200
FcgidProcessLifeTime 3600
FCGID僵尸扫描间隔1200
MaxRequestLen 15728640
FcgidMaxRequestLen 15728640
我一定在这里读了20多篇文章,尝试了许多解决方案,但都没有结果


所有这些都在以前版本的WAMP(Apache 2.4.9,PHP5.5.12,相同的mod_fcgid.so文件)中起作用。

可能的解决方案

改变

<Directory c:/wamp/www/testdir>
    Options +Indexes +FollowSymLinks +Multiviews
    AllowOverride all
    Require local
</Directory>

选项+索引+跟随符号链接+多视图
允许超越所有
要求本地


选项+索引+跟随符号链接+多视图
允许超越所有
通融
它应该允许从每一个连接


然后重新启动APACHE。

尝试安装32位版本。我知道您在技术上使用的是正确的版本,这只是我以前遇到的一个问题。它对我很有效。

为我解决的问题添加了“execgi”:

<Directory / >
  Options Indexes FollowSymLinks ExecCGI
  # . . . . .
</Directory>

选项索引跟随SYMLINKS ExecCGI
# . . . . .

如果您将虚拟主机中的
更改为“允许来自所有”
并在
中删除
要求本地”
,该怎么办?刚刚尝试过。同样的结果。我们现在使用的是32位(较旧版本的Apache2.4.9,PHP5.5.12,相同的mod_fcgid.so文件),但我们需要一个64位的解决方案。
<Directory c:/wamp/www/testdir>
    Options +Indexes +FollowSymLinks +Multiviews
    AllowOverride all
    Require local
</Directory>
<Directory c:/wamp/www/testdir>
    Options +Indexes +FollowSymLinks +Multiviews
    AllowOverride all
    Allow from all
</Directory>
<Directory / >
  Options Indexes FollowSymLinks ExecCGI
  # . . . . .
</Directory>