{{ s.label }}
{{ s.description }}
{% if s.active %} In use {% else %} {% endif %}{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Web server{% endblock %} {% block content %}
The front server answers on ports 80 and 443 and serves this panel. Switching rewrites every site config, tests it and rolls back if the new server does not start.
{{ s.description }}
{% if s.active %} In use {% else %} {% endif %}Lets sites use .htaccess while the front server stays fast. Pick "PHP via Apache" on a site to use it.
Apache is the front server, so every PHP site already reads .htaccess.
{% else %} {% endif %}Sites choose their version. Extra versions come from the Sury (Debian) or Ondřej (Ubuntu) repository.
{% for v in me.php_versions %}PHP {{ v }} {% else %}No PHP installed.{% endfor %}
| Task | Started | Result |
|---|---|---|
| {{ {'webserver': 'Switch web server', 'apache-backend': 'Apache backend', 'php': 'Install ' ~ j.target|replace('php', 'PHP ')}[j.kind] }} | {{ j.created|ago }} | {% if j.status == "running" %}Running{% elif j.status == "done" %}Done {% if j.result.to %} {{ j.result.from }} to {{ j.result.to }}{% endif %} {% else %}Failed{{ j.result.error }}{% endif %} |