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
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