# 4.7. Set up for Apache

Set up for a web server, Apache.

## 4.7.1. Config file editing. <a href="#id-4-7-1-config-file-editing" id="id-4-7-1-config-file-editing"></a>

| **\[root\@xoonips-server \~]# vi /etc/httpd/conf/httpd.conf** | ← Edit config files.  |
| ------------------------------------------------------------- | --------------------- |
| **AddDefaultCharset UTF-8**                                   |                       |
| ↓                                                             |                       |
| **#AddDefaultCharset UTF-8**                                  | ← Make it as comment. |

## 4.7.2. Automatic startup for web server <a href="#id-4-7-2-automatic-startup-for-web-server" id="id-4-7-2-automatic-startup-for-web-server"></a>

Set up for making the web server automatically started when the computer is restarted.

| **\[root\@xoonips-server \~]# /etc/init.d/httpd start** | ← Startup web server.                          |
| ------------------------------------------------------- | ---------------------------------------------- |
| **\[root\@xoonips-server \~]# chkconfig httpd on**      | ← Set up for automatic startup for web server. |

## 4.7.3. Check the performance of the web server. <a href="#id-4-7-3-check-the-performance-of-the-web-server" id="id-4-7-3-check-the-performance-of-the-web-server"></a>

Startup the browser of another computer and enter the address.

For example: <http://(The> host name decided when having installed the OS.)/

The setup will be successfully completed if the screen appears as follows:

![](/files/-LTR30_6KASKucf9AmiK)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xoops.gitbook.io/xoonips-tutorial/3installation/4.-customize-centos5/47set_up_for_apache.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
