sudo chmod -R 777 /usr/local/openfire/bin
php
sudo suhtml
cd /usr/local/openfire/binjava
export JAVA_HOME=`/usr/libexec/java_home`app
echo$JAVA_HOME/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Homeui
cd /usr/local/openfire/binurl
./openfire.shspa