Fixing Apache localhost/~username resolve on macOS Mojave

Edit /etc/apache2/httpd.conf Uncomment the following lines: Uncomment the following in /private/etc/apache2/extra/httpd-userdir.conf : Create the file /private/etc/apache2/users/yourUserName.conf if it doesn’t exist: Add the following in this file: For running PHP, uncomment the following line in /etc/apache2/httpd.conf . The version of PHP in the module name may vary as per the currently installed version (7 in this […]