fixed run.sh permission and enhanced the apache configuration