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

Ports file creation should depend on Apache being installed.
Merge pull request #279 from puphpet/bug/master/ports-requires-apache

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