by

PHP 5.6 Mac OSX 10.11.6 (El Capitan)

Check your apache version.

httpd -v
Server version: Apache/2.4.25 (Unix)

Installing PHP 5.6 With Mac OSX Default Apache

brew install php56 --with-apache

# to start apache service at boot
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

# to start apache service manually
sudo apachectl start

For full list of options when installing php56:

brew options php56

Configure httpd.conf:


...more

by

Tuning iTerm2 Shortcut Keys

Please meet iTerm, alternative replacement for native OSX terminal. This guy has been my preferred terminal since snow leopard. But the only thing that was missing is i want it to behave like a common text editor, where i can navigate through words using option+left (⌥ + ⇐), option+right (⌥ + ⇒), command+left (⌘ + ⇐), command+right (⌘ + ⇒).


...more

by

Multiple JDK in Mac OSX 10.10 Yosemite

It is very common for developers to setup multiple JRE environment. Some developers prefer using VM to install another version of JDK and keeping the default version in their local, but i prefer to install multiple JRE in my local machine. Here's how i do it on my Mac.


...more

by

Port Forwarding in Mac OS Yosemite

When upgrading to Yosemite (Mac OSX 10.10), be aware that port forwarding using ipfw is no longer supported.
But we can overcome this issue using pf

For example when using Eclipse Tomcat as development server, you may want to forward all the port from 80 to 8080 and 443 to 8443, here's the step:


...more

by

Port Forwarding in Mac OSX Mavericks (Port 80 to 8080 and 443 to 8443)

Some issues when setting up Tomcat server (using SSL) in Eclipse - Mac OS environment is that, Mac limit the port usage permission below 1000 to only root. So Eclipse won't be able to run the tomcat server at port 80 or 443.
This issue can be solved by setting up port forwarding in your Mac OS. Let's open terminal and type something cool.


...more