Added apache restart and fixed some small issues