# admin.php のファイル名変更

<figure><img src="/files/MvP1iDvpoQl6DsKeDzIE" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
管理者用パネルに最初にログインすると、画面右上に **admin.php** のファイル名を変更するようメッセージが表示されます。admin.phpのファイル名を変更することで悪意のある第三者から管理画面を保護することができます。
{% endhint %}

<figure><img src="/files/md5y5ftx3yrYPRPsMsKB" alt=""><figcaption></figcaption></figure>

外部からの不正アクセスを防止するため、以下の手順でファイル名を変更してください。

***

### 1. ファイル名の変更

サーバー上の admin.php の「admin」を第三者から類推されにくい名称に変更します。 例）yxb3vczf.php など

***

### 2. config.local.php のダウンロード & 編集

サーバー上の **config.local.php** （admin.php と同じ階層にあります）をダウンロードし、 **$config\[‘admin\_index’] = ‘admin.php’;** を **$config\[‘admin\_index’] = ‘\[変更後の名前].php’;** に変更します。

***

### 3.config.local.php のアップロード

STEP2.で編集したファイル 「 **config.local.php** 」 をサーバーにアップロードします。

***

### 4. 変更後のファイル名で管理者用パネルにアクセス

変更後のファイル名で管理者用パネルにアクセスしてください。


---

# 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://manual-admin.cs-cart.jp/install-and-configure/change-admin-file.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.
