Support apache, fix upstart script and improve settings.json