secondman's avatar

Homestead without Apache

There isn't a channel for Homestead so I just figured this might be the place.

Looking at the docs, it mentions that Apache is optional, but it doesn't list whether to disable it as a service, or set it to false as a feature so that it isn't installed.

I don't want apache anywhere near my dev environment, so I'd rather it not be on my server at all, instead of having to remove it manually through the terminal.

Thanks.

0 likes
2 replies
automica's avatar
automica
Best Answer
Level 54

@vkronlein according to https://laravel.com/docs/8.x/homestead#included-software

Homestead runs Nginx not Apache, so you don't need to disable Apache as its not enabled anyway.

if you run the following

$ sudo apt-get remove apache2*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo rm -rf /etc/apache2 /var/lib/apache2 /var/lib/apache2

on your vagrant, you'll get the following:

Package 'apache2-mpm-itk' is not installed, so not removed
Package 'apache2' is not installed, so not removed
Package 'apache2-bin' is not installed, so not removed
Package 'apache2-data' is not installed, so not removed
Package 'apache2-dbg' is not installed, so not removed
Package 'apache2-dev' is not installed, so not removed
Package 'apache2-doc' is not installed, so not removed
Package 'apache2-ssl-dev' is not installed, so not removed
Package 'apache2-utils' is not installed, so not removed
Package 'apache2-suexec-custom' is not installed, so not removed
Package 'apache2-suexec-pristine' is not installed, so not removed

which suggests its optional but not installed.

secondman's avatar

@automica

Thanks for the reply. This is what I normally do, I just figured there was a Homestead.yml flag I could throw.

Appreciate it.

Please or to participate in this conversation.