Since Apple and Apache seems to not care about this important issue, i can tell you that what worked for me, it was to give full access to disk to "Terminal, Netbeans, java and sh" from "System > Preferences > Security and Privacy".
Hope this helps someone.