1👍
✅
The commands used to install Apache can be run from any directory. Those command will install pieces of it to various paths in your system and not into the current directory:
/var/log/apache2
/etc/apache2
/var/lib/apache2
/usr/share/doc/
/usr/share/apache2
Source:stackexchange.com