Posts

Showing posts from August, 2018

Modify DocumentRoot in Apache (Mac)

After you've installed Apache with Homebrew on macOS , you might want to change the DocumentRoot which points to the directory where your website resources reside (e.g. HTML, CSS, images). By default, DocumentRoot is located in /usr/local/var/www 1 . Here are the steps to follow to change DocumentRoot to map to a custom directory path: Place your website folder to the desired place. For example: /usr/local/var/www/my_website Open the file /usr/local/etc/httpd/httpd.conf with your favorite editor, search for DocumentRoot , and modify the following line by substituting your directory path within the double quotes: DocumentRoot "/your/directory/path" Also change the next line: <Directory "/your/directory/path"> Restart your Apache server (if you want Apache to restart at login): $ sudo brew services restart httpd or if you don't want Apache to run as a background service: $ sudo apachectl restart Test the changes to DocumentRo

Error: Keychain System cannot be found to store (Mac)

Image
After performing a Mac update, I found that my known Wi-Fi network was not joined automatically as I had specified in Network Preferences and this error message popped up: Keychain System cannot be found to store ... Also, this error message showed up while I did $ git push . My github login credentials stored within Keychain Access could not be accessed anymore. Solution I tried the first solution I stumbled upon which consisted in running First Aid on the logical drive Mac HD through Disk Utility ( Fig 1 ). And I restarted my computer (very important). Then my known network was now being joined automatically like before and the error message was not shown anymore! Fig 1. Select your Mac HD logical drive and run First Aid on it.