Apache not working after macOS Mojave update

后端 未结 5 1398
野趣味
野趣味 2020-12-20 14:23

Ok, after update macOS from High Sierra to Mojave, Apache with PHP stop working properly, so I did everything as is said in this guide - https://getgrav.org/blog/macos-mojav

5条回答
  •  天涯浪人
    2020-12-20 14:56

    I followed the instructions in the above answers and still got a 403 Forbidden when trying to access my /Users/myuser/Sites/ folder. To fix this I had to change the user in /etc/apache2/httpd.conf from _www to my own user.

    To do this edit your httpd.conf file using your favorite editor /etc/apache2/httpd.conf. Look for:

    User _www
    

    replace with your user:

    User myuser
    

    then restart apache:

    sudo apachectl restart
    

提交回复
热议问题