apache的安装目录下面有conf文件夹,在下面有httpd.conf文件 找到 # This should be changed to whatever you set DocumentRoot to. # <Directory "D:/Program Files/Apache Group/Apache/htdocs"> 一部分,修改D:/Program Files/Apache Group/Apache/htdocs为你自己要作为主目录的文件夹 也可以在里面加上如下面 Alias /atmm c:\inetpub\wwwroot\atmm 的目录 这时要访问c:\inetpub\wwwroot\atmm 下面的文件就要用 127.0.0.1/atmm/文件名
問題沒有解決,還是有這樣的提示!!You don't have permission to access /file://C:/php/info.php on this server.
找到
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/Program Files/Apache Group/Apache/htdocs">
一部分,修改D:/Program Files/Apache Group/Apache/htdocs为你自己要作为主目录的文件夹
也可以在里面加上如下面
Alias /atmm c:\inetpub\wwwroot\atmm
的目录
这时要访问c:\inetpub\wwwroot\atmm 下面的文件就要用
127.0.0.1/atmm/文件名
具体不知道怎么回事,但是如果添加everyone的访问权限
应该是可以的
如果能行了,肯定是c:/php目录权限不够