the ultimate fix for phpMyAdmin forbidden
After Mac OS update, I tried to load phpMyAdmin web interface and this error came out.
Forbidden
you don't have permission to access this resource
So I fixed that error once and for all on Mac OS X.
The fix includes three main parts:
1. using the right apachectl
2. adding php7 and mod_rewrite modules automatically in httpd.conf via include (not directly in the file itself)
3. install phpMyAdmin via a package manager (like homebrew or macports) and add the conf of it into a separate file which will be included automatically in httpd.conf
Note: I used homebrew in the video, but you can use any other package manager.