Home > Backend Development > PHP Tutorial > The php project under the mac system cannot be accessed except for the home page.

The php project under the mac system cannot be accessed except for the home page.

little bottle
Release: 2023-04-05 21:58:01
forward
2226 people have browsed it

Some netizens reported that there was a problem with configuring apache on Mac. They could not access anything except the homepage. The editor found relevant solutions. Friends in need can come and find out.

  1. The mod_rewrite.so module is loaded in the httpd.conf configuration file

  2. AllowOverride None Change None to 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&#39;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>
Copy after login

[Recommended tutorial: php programming from entry to mastering a full set of video tutorials]

The above is the detailed content of The php project under the mac system cannot be accessed except for the home page.. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template