add full path to apache directory
Add commit function