权限都设置了,目录也更改了,仍然报错。

 <Directory />
      Options FollowSymLinks Indexes MultiViews
      AllowOverride all
</Directory>

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

找了许久,终于找到,原来是全局目录位置设置仍是默认位置,

# This should be changed to whatever you set DocumentRoot to.
<Directory "C:/xampp/htdocs">
# Possible values for the Options directive are "None", "All",

将默认<Directory "C:/xampp/htdocs">更改成<Directory "****">就可以了,运行phpinfo 没有问题。