How can PHP be installed without automatically installing Apache?

When installing PHP, it often comes bundled with Apache web server by default. To install PHP without automatically installing Apache, you can use package managers like apt-get or yum to install PHP packages individually without the Apache dependencies. ```bash sudo apt-get update sudo apt-get install php ```