Mac apache2.4.* configure virtual host Forbidden

mac encountered the following error in configuring virtual host:

< H2 > Forbidden < / H2 >

You don"t have permission to access / on this server.
Server unable to read htaccess file, denying access to be safe

< hr >

apache version 2.4.*
Baidu has many answers that have not been solved

apachehttpd.conf

Require all none -> Require all granted 
AllowOverride none -> AllowOverride all


< hr >
:

<Directory "project/path">
    Options Indexes FollowSymLinks
    AllowOverride all
    Require all granted
</Directory>


< hr >
777

chomd -R 777 project_directory


I really don"t know what to do, and this problem still occurs.

Mar.02,2021

learn to check the log and go to apache's error log to see it

Menu