if    spell_ok  apache;  then
  OBA_LOC="/usr/share/httpd/htdocs/$SPELL/"
elif  spell_ok  apache-mod_ssl;  then
  OBA_LOC="/usr/share/httpsd/htdocs/$SPELL/"
elif  spell_ok  apache2;  then
  OBA_LOC="/usr/share/apache2/htdocs/$SPELL/"
fi  &&

if  [  "$OBA_LOC"  ==  ""  ];  then
  message  "${MESSAGE_COLOR}Unable to find apache or apache2 installed"  \
            "version...$SPELL cast aborded.${DEFAULT_COLOR}"             &&
  return 1
fi  &&

mkdir  -p  $OBA_LOC

rm  -f  apache.conf  setup.sh    &&
create_account www-data          &&
create_group   www-data          &&
chown  -R  www-data:www-data  *  &&
chmod  -Rf 755  *                &&
chmod  -Rf 777  users/           &&
chmod  777  templates/  -Rf      &&
cp  -r  *  $OBA_LOC
