# Windows

**Step 1**: Install this XAMPP from\
<https://www.apachefriends.org/download.html><br>

**Step 2**: Copy/extract Open Enventory files into C://XAMPP/htdocs/ . Write down the folder name because this will be the web address. In this case the folder is named ‘enventory’<br>

**Step 3**: Start XAMPP and start **Apache** and **MySQL**

![XAMPP Panel](/files/-LrirwNstMqkn3CAR0R6)

**Step 4**: setting up root password for MySQL. This changes with XAMPP version so consult this [FAQ ](https://www.apachefriends.org/faq_windows.html)for specific details.

**Step 5**: Change **php.ini** content by clicking on **Config** button on the same row with **Apache** on XAMPP panel to match the following:

* `error_reporting = E_ALL & ~E_WARNING  & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED`  (otherwise some warnings being displayed will break the functionality)
* `safe_mode=Off`
* `magic_quotes_gpc=Off`
* `upload_max_filesize=64M    # (or higher)`
* `post_max_size=64M    # (or higher)`

If still warnings appear in the generated HTML code (breaking open enventory), you should set:

* `display_errors=Off    # (especially on PHP 7+)`

**Step 6**: Change **my.cnf** (or **my.ini)** content by clicking on **Config** button on the same row with **MySQL** on XAMPP panel to match the following under `[mysqld]` section:

```
[mysqld]
sql_mode = NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
max_allowed_packet = 64M # (or higher)

innodb_buffer_pool_size = 1024M # to about 50% of the available memory
innodb_log_file_size = 128M # to about 10% of the available memory
```

**Step 7**: Restart both **Apache** and **MySQL** service by clicking on **Stop** and then **Start** for each service.

**Step 8**: Open this link in your web browser: <http://localhost/enventory/> and log in with the following info:

* "Database":  \<database-name>\
  "database-name" can be whatever you choose but should not have blank space and unique; I suggest short name is better as well.
* "Username": root \
  (It has to be the exact word "root" for this set up first)&#x20;
* "Password": the root password that we set in the step above&#x20;
* Then click on "Inventory".

![](/files/-LrirwNweuW_c6it1Qoi)

**Step 9:** If successful, it will bring up something similar to this page:

![Example of display page after first successful login](/files/-M4RBBHlyc0MdNC6TVMn)

{% hint style="warning" %}
If you are locked from login due to incorrect entries of username and password (for 30 min), find the file named “**openenv.log**” which you can find in a similar path given below:\
`C:\Users\sr\AppData\Local\Temp\ openenv.log`

Open the file with any text editor program (Notepad), delete the content, save and restart XAMP and then try to access Open Enventory again (<http://localhost/enventory/>)
{% endhint %}


---

# 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://open-enventory.gitbook.io/user-guides/installation/windows.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.
