amended record automation script to add the correct folder path
stop apache server as the first task for publishing