Added an Arch Linux-specific instruction (#30814)

Inserted the terminal commands to start the Apache Server + run at system start
This commit is contained in:
Justin Parado
2018-12-19 06:24:39 +08:00
committed by Christopher McCormack
parent 945b89d569
commit 8c54610905

View File

@ -47,25 +47,35 @@ Popular options for deploying Apache httpd and optionally, PHP + MySQL or PHP +
### Getting Started
Once you have Apache installed you need to know where to put your HTML documents. This location is generally referred to as the `DocumentRoot`. This location is usually `/var/www/html` on most Linux systems. Follow the instructions below to find the configuration file for Apache and the `DocumentRoot`.
#### Command
#### Find DocumentRoot
```
~$ sudo grep "DocumentRoot" -R /etc/
```
The `-R` flag will cause grep to search recursively through the `/etc` directory and print out the full path of the file that it finds the `DocumentRoot` keyword in.
#### Ubuntu output
###### Ubuntu output:
```
/etc/apache2/sites-available/000-default.conf: DocumentRoot /var/www/html
/etc/apache2/sites-available/default-ssl.conf: DocumentRoot /var/www/html
/etc/apache2/sites-enabled/000-default.conf: DocumentRoot /var/www/html
```
#### Centos output
###### Centos output:
```
/etc/httpd/conf/httpd.conf DocumentRoot /var/www/html
```
#### Start Apache
```sh
sudo systemctl start httpd
```
#### Run Apache on Startup
```sh
sudo systemctl enable httpd
```
## Features
Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. These can range from authentication schemes to supporting server-side programming languages such as Perl, Python, Tcl and PHP. Popular authentication modules include mod_access, mod_auth, mod_digest, and mod_auth_digest, the successor to mod_digest. A sample of other features include Secure Sockets Layer and Transport Layer Security support (mod_ssl), a proxy module (mod_proxy), a URL rewriting module (mod_rewrite), custom log files (mod_log_config), and filtering support (mod_include and mod_ext_filter).