diff --git a/guide/english/apache/index.md b/guide/english/apache/index.md index dcd82fe4e3..f1fb2f1ce0 100644 --- a/guide/english/apache/index.md +++ b/guide/english/apache/index.md @@ -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).