(#278) Ports file attempted to be created before Apache installed

Ports file creation should depend on Apache being installed.

Closes #278