phpstudy安装过程遇到的错误

问题描述:phpstudy运行环境。apache和mysql都可以正常启动,但打开页面出现403,You don't have permission to access / on this server.


纠错:1.

    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all

修改成

    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
#    Deny from all
    Allow from all
#允许所有访问
    Satisfy all





但我的是没错的,我有找了好久,终于发现,原来是我的/www文件夹下没有 index.html!!!文件。
 2. 确保根目录文件下有index.html文件(或名为index而后缀为其他形式(如.jsp .php等)的文件) ,因为Apache默认以index.html为网站首页,如果没有这个文件就会出现上面的403错误。


  注:如果你想以其他形式的文件(如:index.jsp或index.php等)作为出现的网页,可将Apache的配置文件中的:


   
       DirectoryIndex index.html
   

   改为(如你想用index.jsp):


   
       DirectoryIndex index.html index.jsp 
   



   如果需要浏览该文件夹下的内容,可以在前添加:


    Options Indexes


  就可以了。

你可能感兴趣的:(phpstudy安装过程遇到的错误)