我在win7系统上搭建了php+apache环境后!我修改了apache里的httpd.conf里的
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/php"
然后在浏览器输入http://localhost/打开是提示403禁止访问是什么原因呢?(我在php目录里面设置了个index.html页面的了)
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/php"
然后在浏览器输入http://localhost/打开是提示403禁止访问是什么原因呢?(我在php目录里面设置了个index.html页面的了)
改成
Allow from all
1、#--------------------------添加服务器名称---------------------
ServerName localhost:802、#-------------------------------打开Apache的httpd.conf文件,增加默认首页-----------
<IfModule dir_module>
DirectoryIndex index.html,index.php
</IfModule>3、#------------------加入浏览器识别的php文件类型
AddType application/x-httpd-php .php .html .htm .vcgi .ini4、#------------------------加入php.ini文件的路劲提供apache加载
PHPIniDir "d:/php/php_home"能想到的就这么多了。