Access Forbidden! – XAMPP on macOS Sierra

I just installed a fresh installation of Sierra on my Hackintosh and couldn’t for the life of me get XAMPP to run properly! I got “Access Forbidden” on my localhost and vhosts.I figured I’d write a few notes for people that run into this issue running XAMPP on your Mac. Please comment below if you don’t agree with or see a flaw in my notes and I can test and update your feedback. This guide assumes you already know basics behind XAMPP/WAMP stacks and are stuck getting it running on OSX.

Are they rebranding OSX to macOS? I digress…

Setting Up httpd.conf & httpd-vhosts.conf

1.) Open up XAMPP and click the tab Manage Servers. Highlight Apache and click Configure. Click Open Conf File. This will open your httpd.conf file.

2.) In httpd.conf find the follow line of code and change it daemon to your OS X username.
User daemon

3.) In httpd.conf find the following line and uncomment it (by removing the #)
#Include etc/extra/httpd-vhosts.conf

Save the file, don’t close TextEditor

4.) In TextEditor, goto File -> Open. You should start out in xamppfiles/etc. Click into the extra directory and then open httpd-vhosts.conf

5.) Remove the example code -or- comment all of it out.

6.) Use the following code to base your vhosts on, keep in mind I kept the default localhost example just to access the default htdocs location.

7.) Restart Apache services in XAMPP’s Manage Servers tab.

Solving Access Forbidden in XAMPP

This part is the one thing many would disagree with and I’m not 100% a way around this in macOS Sierra. Previously I’ve simply chmod 644 -R my working folders but I couldn’t for the life of me get around the forbidden error. If you know a better way around this please comment below.

1.) Open Terminal (Applications/Utilities/Terminal)

2.) cd to your directory and give execute read write permissions, example below
$ sudo chmod -R +xrw wordpress/

If you’re new to this, the $ is just signifying the command line beginning and we’re not su. This should set execute/read/write permissions reclusively to all files and folders within our working directory. I haven’t tried it but you can also try chown but these directories are already owned by my user…

Setting Up Hosts File in OSX Sierra

If you’re not familiar with vhosts on a local XAMPP stack, the hosts file allows you to overwrite local DNS routing on your machine. In our scenario, we will one for our local wordpress environment.

1.) In terminal, simply use this command to open up the hosts file:
$ sudo nano /private/etc/hosts

2.) At the bottom of the file add this to your hosts file:
127.0.0.1 wordpress.dev

This will now route traffic from http://wordpress.dev to your localhost. If your httpd.conf and httpd-vhosts.conf files are setup correctly, you can now access your local WordPress developer environment. Try to refresh http://localhost -or- for example http://wordpress.dev

Read More

How To Tweet From CLI On Windows 10 w. Node.js

Always working from PowerShell, CMD, Git Bash, or Git Shell? Ever want to tweet from the command line while your pushing code to your Github repository? I was interested in doing this on my laptop, making it easy to tweet on the go while I’m coding away at a coffee shop. I’d like keep my phone face down or in my pocket to avoid distractions… But that urge to tweet happens to often. Windows Store Twitter app is crap, and Twitter.com in browser is always sluggish… Let’s just tweet from the command line!

Tweet from CLI with Node.js

1.) Download & Install Node.js

2.) Run cmd.exe or PowerShell. I prefer to use Git Bash.

3.) Install cli-tweet by typing this command in:

npm install cli-tweet -g

4.) Now we need to see where npm installed the npm_modules folder.
npm root
It will return a path that we need.


5.) Open File Explorer, Right Click “This PC” -> Properties, click Advanced system settings, then click Environment Variables. Copy and paste the path that npm root gave you into your Windows 10 Systems PATH.

6.) Close your CLI window and run it again in Administrative Mode.

7.) Type the following:
tweet config

8.) It will give you an authorization URL that you have to copy and paste into your browser. Once the page loads, login and authorize RaedsLab app and it will give you a token to enter.

9.) With cli-tweet configured, try typing

echo "Hello Universe" | tweet

Do you like this awesome cli tweet tool? Go star the repo over on Github! If you don’t want to use RaedsLab Twitter app, you can create your own Twitter app and clone cli-tweet repository. In main.js line 13-14 you should see the key and secret for your Twitter App. You can install cli-tweet with your own key with the command: npm install /path

Read More

Replacing RX7 FD Door Handles With Aluminum Ones

I made a start to finish video on how to replace the RX7 FD plastic door handles with the aluminum ones that are commonly used. In this specific application, my girlfriend bought the Napol Performance aluminum RX7 FD handles. We got them in the mail within a week of ordering them from Canada off eBay and they were surprisingly good quality. This video serves as a reference for individuals that want to see the process of removing an RX7 FD door handle and disassembling the door latch mechanism.

Read More

Hello Mervin Manufacturing!

Mervin Manufacturing Logo

The other day I hanging out at the Google Fremont campus, enjoying a lively #WordPress presentation by Kimberly Gauthier (KeepTheTailWagging.com) and happened to run across the Mervin Manufacturing Head Quarters! Their glowing florescent green logo caught my eyes! I spent 3 good seasons up at Mt Baker and Glacier WA during our epic La Nina season. Unfortunately, this season I haven’t spent much time up in the cascades due to the slushy rain. 🙁

I wanted to share this photo on here because I absolutely miss shredding Baker pow!

Read More

301 Redirect Subdomain Forwarding On AWS Route 53

amazon-web-services-logo-large

UPDATED: fixed missing/broken gist link with the code snippet.
UPDATE #2 May 24, 2017: updating this post since S3 has a new UI.

Recently I decided to ditch registrar DNS Managers like GoDaddy’s in favor of Amazon’s Route53. I really like their console and the DNS is snappy and responsive, not to mention the handy features when creating and pointing to Load Balancers for your TLD. However, one draw back of Route 53 is the lack of subdomain forwarding. Below is a quick solution.

All you will need is an Amazon S3 bucket, the static website end-point, and a Route 53 CNAME.

1.) Create an S3 Bucket: Name the bucket ie: subdomaintoForward.mydomain.com. It has to be the exact subdomain you wish to forward otherwise Route 53 won’t resolve. Choose the region and create!

Create An S3 Bucket

2.) Set Properties: I don’t typically Set Properties for S3 bucket forwarding, but it’s an option for your specific use case. Skip this step if you’re not familiar with this.

3.) Set Permissions: Be sure to set the group permissions under Everyone to Read. This will allow the public to access the S3 bucket contents.

4.) Enable S3 Website Hosting: Open your new bucket and click the “Properties” tab.

Open up “Static Website Hosting” than select “Use this bucket to host a website”. Make the “Index document” simply index.html. After that, you will need to copy/paste the sample JSON below into “Redirection Rules”.

IMPORTANT: Open up Notepad or SimpleEdit and make note of the ENDPOINT. This will be used in Step 5 when you point the subdomain DNS.

Be sure to read the JSON closely and edit HostName and ReplaceKeyPrefixWith values. Paste in the XML below:

Again, just for clarification lets breaks down the JSON above. In this example, I want subdomaintoForward.mydomain.com to 301 redirect to http://domaintoforwardto.com/anything/after/thedomain/index5.html – compare this URL to the XML above, you should be able to figure out the syntax.

Click Save!

5.) Create A CNAME in Route 53: Make note of the “Static Website Hosting” End-point, copy that, then open up Amazon Route 53. Select your Hosted Zone and click “Go to Record Sets”. Click “Create Record Set” and configure your Record. In this example, domaintoForward is the subdomain, use CNAME, and paste in the Static Web Hosting End-point into Value. Create the record.

amazon-route-53-301-redirect

Read More

How to Replace Galaxy Note 4 Screen – by Zedomax!

Over the past year or so I’ve become a fan of @Zedomax on Twitter. He caught my attention with his open frame bitcoin miner design. About a year and a half ago I got into mining Litecoin, Dogecoin, and using exchanges to play a bit of the Bitcoin game. I soon discovered how resourceful Zedomax’s channels and websites are, and wondered why I never seen these show up on Google SERPS. Let’s not get into SEO!

Max recommends getting the LCD screen with assembly, which makes replacing the LCD screen less complex and is only about $20 more. All you have to do is swap over the motherboard, camera, and back frame.

This video is a bit inspiring, it’s been a while since I’ve rooted, flashed, and help fix broken Android phones. Perhaps I’ll have to provide my services to local friends when I have downtime. :]

Read More

2014 Was A Great Season at Evergreen Drift!

10861103_856712121017326_7779098822900227758_o
NWToyRun 2014: Thanks to David Kim and Caryl DelaRosa from Nice-Hunters!

I thought I’d write a quick little blurp about the 2014 season at Evergreen Drift! I had a great season in 2014! Although I did run into a few issues during GrassRoots competitions; I had a blast getting back behind the wheel and practicing this season! Prior to this season, I did take a 3 year break from drifting but I’m back and hope to compete more in 2015!

I’d really like to thank my partner in crime Kayla Whidden, Justin Nigro at Always Reckless, Nicolas Jacober @ NJacoberPhotography, Matt Nelson @ I-Nertia Media, Yerem Saribekian @ PantyHeist.com, Travis Stern @ BlatBlatPewPew, Kyle Robertson @ KRAFTED Photography, Nathan Shewchuk @ Villains Drift, Mark Walker @ EOPerformance.net and especially Lupe Zaragoza @ Evergreen Drift. Especially fun kicking it with new and old faces in the pits… Mat Risher, Roland Gallagher, Gleb Antonov, Nate Snyder, Brandon Coonce, Derek Von Ahn, André Escalante.

I can’t wait for the 2015 season, I have a few ideas brewing and hope to rekindle a few projects that have been sitting for a long time!

10750397_399215690230882_5966500696418462050_o 14992548223_6c6422575e_k 10700147_882504011768357_1448277849386813220_o 10697245_882503215101770_77951582757032242_o 1522850_459352320833741_1179867172039832600_o 1402794_399215840230867_7520668992260491652_o 1275298_377567325729052_7262672069993757901_o 885899_855506101134815_8397223750118638028_ologo-concept

Read More