旗下导航:搜·么
当前位置:网站首页 > PHP教程 > 正文

mac体系下php项目除了首页全接见不了【php教程】

作者:搜搜PHP网发布时间:2019-11-26分类:PHP教程浏览:92


导读:有网友反应mac设置apache的有题目,除了首页全都接见不了,小编找来了相干的解决办法,有须要的朋侪能够来相识一下。httpd.conf设置文件中加载了mod_re...
有网友反应mac设置apache的有题目,除了首页全都接见不了,小编找来了相干的解决办法,有须要的朋侪能够来相识一下。

  1. httpd.conf设置文件中加载了mod_rewrite.so模块

  2. AllowOverride None 将None改成 All


DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks Multiviews
    MultiviewsMatch Any
  #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    #AllowOverride None
     AllowOverride All         #这里这里!!!
     Order deny,allow
     Allow from all
    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

【引荐教程:php编程从入门到通晓全套视频教程】

以上就是mac体系下php项目除了首页全接见不了的细致内容,更多请关注ki4网别的相干文章!

标签:mac系统php访问出错