2017-04-15 09:33:12 +00:00
+++
2017-04-15 14:43:11 +00:00
title = "httpd (Apache)"
2017-04-15 09:33:12 +00:00
+++
2017-04-15 14:43:11 +00:00
# httpd (Apache)
2017-04-15 09:33:12 +00:00
2017-04-15 14:43:11 +00:00
Solus provides httpd (otherwise referred to as Apache) web server for web developers to test locally before uploading their work.
2017-04-15 09:33:12 +00:00
2017-04-15 14:43:11 +00:00
## Installation
2017-04-15 09:33:12 +00:00
httpd can be installed either from the Software Center or via terminal:
``` bash
sudo eopkg install httpd
```
2017-04-15 14:43:11 +00:00
## Usage
2017-04-15 09:33:12 +00:00
2017-04-15 14:43:11 +00:00
### Configuration and DocumentRoot
2017-04-23 09:58:06 +00:00
As we supply a default vendor configuration in `/usr/share/defaults/httpd/` , to make modifications to httpd's configuration, you must first create the directory `/etc/httpd/conf.d/` and create your own *.conf files, which will overwrite the default configuration. If you modify the default vendor configuration instead it will be overwritten with the next update.
2017-04-15 14:43:11 +00:00
By default, httpd's DocumentRoot is set to `/var/www/` , thus files you desire to be accessible via your httpd server must be copied to that location.
### Management
Managing httpd is done via systemd, using the following commands:
2017-04-15 09:33:12 +00:00
``` bash
2017-04-15 14:43:11 +00:00
sudo systemctl enable httpd # Enable on startup
sudo systemctl start httpd # Start the web server
sudo systemctl stop httpd # Stop the web server
2017-04-15 09:33:12 +00:00
```