set up app for apache