Wednesday, December 28, 2016

Quick Apache Setup - Change localhost path on macSierra for Test Only

To quickly change the localhost path from default (/Library/WebServer/Documents) to your path and bypass all the permission problems

  • edit DocumentRoot in /private/etc/apache2/httpd.conf and set it to your path, both "DocumentRoot" and "Directory"
  • add the following lines
Options Indexes FollowSymLinks Multiviews
(Indexes is so you can view directory) 
  • change User from _www to your username

This is for single machine and for test only as it will not be highly secure but it's a quick way for not having to do all the permission change on your test web directory.

Saturday, December 24, 2016

Turn off ipv6 on mac Sierra

Off setting was removed from the network settings for ipv6. To turn it off, need to use terminal command networksetup

1. list hardware port
networksetup -listallhardwareports

2. turn off the port you want
networksetup -setv6off Ethernet (Ethernet is the name of the port to want to turn if off)

3. turn it back to default
networksetup -setv6automatic