# Self Hosting

### 1 - Download the latest version of 1C0N via git

* Open a terminal and type: `git clone https://github.com/1C0N-CMS/1C0N`

### 2 - Move the code to the public html directory

* In the same terminal use `mv`to move the code to the folder (Example: `sudo mv ~/1C0N/* /var/www/blog/*`)

### 3 - Config 1C0N

* Open `config.php`and edit all the parameters on the file

#### 3.5 - Creating the tables in mysql (You MUST have the user and the databases)

* Open a mysql terminal and use the following command

### 4 - Enjoy!

* Yay! Now you have 1C0N installed, just add a post in the admin page (`/admin.php`)


---

# 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://1c0n.gitbook.io/1c0n/self-hosting.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.
