{% extends "layouts/auth.html" %} {% load i18n %} {% load ravix_ui %} {% block title %}{% trans "Install" %}{% endblock %} {% block head %}{% if step == "run" and not stale %}{% endif %}{% endblock %} {% block auth_content %}

{% trans "Install Ravix" %}

{% if step != "unlock" and step != "done" and step != "error" %}
    {% for key, label in steps %}{{ forloop.counter }}. {{ label }}{% endfor %}
{% endif %} {% if step == "unlock" %}

{% trans "To protect your new site, nobody can start the installation without the install code that was created for it." %}

{% if locked_out %} {% endif %}
{% csrf_token %} {% include "partials/_form_errors.html" %} {% for field in form %}{% include "partials/_field.html" %}{% endfor %}
{% elif step == "checks" %}

{% trans "Checking that your hosting can run Ravix." %}

{% if blocked %}{% endif %}
{% csrf_token %}
{% elif step == "db" %}

{% trans "In cPanel ▸ MySQL Databases create a database, a user, and give the user all privileges. Then enter them here." %}

{% csrf_token %} {% include "partials/_form_errors.html" %} {% for field in form %}{% include "partials/_field.html" %}{% endfor %}
{% csrf_token %}
{% elif step == "site" %}

{% trans "The database works. Now the site name and the administrator account." %}

{% for note in notes %}

{{ note }}

{% endfor %}
{% csrf_token %} {% include "partials/_form_errors.html" %} {% for field in form %}{% include "partials/_field.html" %}{% endfor %}
{% csrf_token %}
{% elif step == "run" %}

{% trans "Installing. This takes a minute or two; this page refreshes by itself. Do not close it." %}

{% trans "Working…" %} {{ status.step }}

{% if stale %} {% endif %} {% elif step == "error" %}
{% csrf_token %}
{% elif step == "done" %}

{% trans "Ravix is installed." %} {% trans "The installer is now locked for good." %}

{% trans "One last step: the scheduled task" %}

{% trans "In cPanel open “Cron Jobs”, choose “Once Per Five Minutes”, and paste this command. It publishes scheduled posts, sends queued email, makes the daily backup and keeps the site fast." %}

{{ cron }}

{% trans "Sign in to the panel" %}

{% endif %} {% endblock %}