Added methods for Installing PHP and configuring Virtual Hosts in Apache (#26359)

* Added Basic Configuration Settings for apache

* Added More Methods of Installing PHP on Windows and Ubuntu
This commit is contained in:
Ashutosh Kumar
2018-12-18 23:05:17 +05:30
committed by Christopher McCormack
parent 28c02d4b24
commit 6816c92620
2 changed files with 26 additions and 12 deletions

View File

@@ -61,12 +61,27 @@ The `-R` flag will cause grep to search recursively through the `/etc` directory
/etc/httpd/conf/httpd.conf DocumentRoot /var/www/html
```
### Resources
## Basic Configuration
If you want to host multiple domains on a single server, you can configure Virtual Hosts in Apache.
#### Installation and Configurations Guides
You can copy the `default.conf` and modify accordingly in the following directory:
#### On Ubuntu:
```sh
/etc/apache2/sites-enabled/
```
#### On Centos:
```sh
/etc/httpd/sites-enabled/
```
## Resources
### Installation and Configurations Guides
- [Ubuntu](https://tutorials.ubuntu.com/tutorial/install-and-configure-apache#2)
- [CentOS](https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-apache-config-ui.html)
- [Arch Linux](https://wiki.archlinux.org/index.php/Apache_HTTP_Server)
#### Getting Started Guides
### Getting Started Guides
- [Getting Started with Apache HTTP Server Version 2.5](https://httpd.apache.org/docs/trunk/getting-started.html)