# Обновление файлов на сервере

При сложно диагностируемых ошибках быстрым и эффективным решением является обновление файлов скрипта на сервере до актуальной версии.

{% hint style="danger" %}
Файлы скрипта всегда должны загружаться и быть распакованы на сервере из-под пользователя, созданного для сайта <mark style="color:red;">**(не root)**</mark>!
{% endhint %}

Вам необходимо:

* <mark style="color:red;">**Обязательно**</mark> сделать [бэкап всех файлов сайта на сервере](https://premium.gitbook.io/main/osnovnye-nastroiki/faq/kak-sdelat-bekap-saita)
* Скачать [дистрибутив **для обновления**](https://premiumexchanger.com/uscripts/) **под вашу версию скрипта** (версия PHP не имеет значения — выберите любой из дистрибутивов)

<figure><img src="/files/yOAqH42jm8aYzcBMJZlI" alt="" width="395"><figcaption></figcaption></figure>

* Загрузить архив с дистрибутивом в корневую папку сайта и распаковать архив с заменой существующих файлов
* Проверить устранение ошибки


---

# 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://premium.gitbook.io/main/osnovnye-nastroiki/faq/obnovlenie-failov-skripta-na-servere.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.
