seiffert / symfony-vagrant

This is a project template which enables you to get Symfony2 projects up and running on a Vagrant VM really quickly.
45 stars 10 forks source link

Apache2 installed by default #3

Closed Stubbs closed 11 years ago

Stubbs commented 11 years ago

I've created a new project using your template & by default it's installing apache which is causing nginx to fail when it starts because apache has already bound to port 80.

seiffert commented 11 years ago

Thank you for creating this issue! I assume the reason why Apache2 is installed is the basebox you are using. However, I will modify the manifests to ensure that apache2 is not running (as a requirement for the nginx service). Would that work for you?

seiffert commented 11 years ago

Could you please try this version and tell me if it works for you as expected? I tested it by installing and stating apache before executing vagrant provisioning.

Stubbs commented 11 years ago

I'm pretty sure that apache is being installed as a dependency for one of the PHP packages, though I'm not sure which.

I've created a blank instance of my base box & Apache is not installed on there.

To make sure that apache is not running I've added a requires => 'php5-fpm' to the service, otherwise it was being executed too soon & couldn't find the apache stop/start script because it wasn't installed yet.