> For the complete documentation index, see [llms.txt](https://xoops.gitbook.io/xoonips-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xoops.gitbook.io/xoonips-tutorial/jp/3installation/4-centos5nokasutamaizu/47set_up_for_apache.md).

# 4.7. Apacheの設定

&#x20;Webサーバ(Apache)の設定をします。

## 4.7.1. **設定ファイルの編集** <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** | ← 設定ファイルの編集 |
| ------------------------------------------------------------ | ----------- |
| **AddDefaultCharset UTF-8**                                  |             |
| ↓                                                            |             |
| **#AddDefaultCharset UTF-8**                                 | ← コメントにする   |

## 4.7.2. **Webサーバの起動と自動起動設定** <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>

他のコンピュータでブラウザを起動し、アドレスを入力します。

例えばhttp\://(OSインストールの時に決めたホスト名)/と入力します。

以下のような画面がブラウザに表示されていればWebサーバの設定は完了です。

![](/files/-LTRXn9YdhfHP4rjphZc)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://xoops.gitbook.io/xoonips-tutorial/jp/3installation/4-centos5nokasutamaizu/47set_up_for_apache.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
