So I just bought a brand new MacBook Pro 2019, restore it from Time Machine. Most of my files are restored, but Apache2 configurations seem not fully restored. My local site that used to work, but now not working. All my Apache2 settings seem to reset back to default.
Open up : /private/etc/apache2/httpd.conf
Uncomment this line
Include /private/etc/apache2/extra/httpd-vhosts.conf
and
LoadModule php7_module libexec/apache2/libphp7.so
and
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
and
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
This is one of my vhost record from httpd-vhosts.conf
<VirtualHost *:80 >
ServerName boss.test
VirtualDocumentRoot "/Users/bheng/Sites/laravel/boss-portal/public"
UseCanonicalName Off
</VirtualHost>
and I restart my Apache as I go sudo apachectl -k restart
I have this line : /etc/hosts
127.0.0.1 boss.test
When I goto boss.test
You don't have permission to access / on this server.
Just to try it out, I even try
sudo chmod -R 777 vendor/ storage/ public/
Still same result
What steps am I missing ?