Apache2 & OpenLiteSpeed

Updated 14 Nov 2026 Published

Apache2 & OpenLiteSpeed

Besides Nginx, VinzaPanel can run Apache2 or OpenLiteSpeed as the server's web server. Apache2 honours .htaccess files fully and OpenLiteSpeed reads the rewrite rules in them, which makes both the easy choice for PHP applications that ship their own rewrite rules (WordPress, Laravel, many CMSs). You pick the web server in the setup wizard at first login; only one runs at a time.

Note

Nginx, Apache2 and OpenLiteSpeed are mutually exclusive. The one that is not selected is kept stopped and disabled. To switch, use Replace in the Vinza Store — see Switching web server below.

Apache2

Open Server → Apache2 (/apps/apache2/). The page has the tabs Overview, Virtual Hosts, Modules, Configuration, Logs, Tuning and Site Tools.

  • Overview: service status, version and active modules; Service Control (Start, Stop, Restart, Reload) and Config Test (apachectl configtest).
  • Virtual Hosts: the sites in /etc/apache2/sites-available/ and which are enabled. Add Virtual Host creates a standalone vhost that is not a panel website; use Websites for normal sites. When you edit one, the current config is backed up, checked with apache2ctl configtest and rolled back automatically if the test fails.
  • Modules: enable or disable Apache modules (a2enmod/a2dismod); Apache restarts afterwards. On install the panel enables rewrite, headers, proxy, proxy_fcgi, deflate, ssl, expires and status.
  • Configuration: a read-only view of the Apache configuration.
  • Logs: tail /var/log/apache2/error.log or access.log (up to 500 lines).
  • Tuning: MPM & connection tuning for the active MPM and KeepAlive. The values go to a drop-in file loaded after apache2.conf; Test & apply tests the configuration before Apache reloads and restores the previous settings if the test fails. Changing ServerLimit or ThreadLimit needs a full restart.
  • Site Tools: per website, Password-protected directories (folders inside the document root that visitors must log in to open; the password file is kept outside the document root) and Custom error pages for 403, 404, 500 and 503 (a page in the document root, such as /errors/404.html). Both are written as marked blocks in the site's .htaccess, so they survive vhost regeneration.

Website owners without administrator rights see the running state and version, and can use the Site Tools for their own websites — the website page links to them as Apache: protected folders & error pages under Extensions. Vhost and module lists, service control and server logs are admin-only.

New installations get a 50 MB request-body limit (LimitRequestBody) by default, which a site's own settings can still override.

Where things live (Apache2)

WhatPath
Site configuration/etc/apache2/sites-available/<domain>.conf
Document root (default)/home/<user>/web/<domain>
Per-site logs/home/<user>/logs/<domain>.access.log and .error.log
PHPThe owner's PHP-FPM pool via proxy_fcgi (see PHP-FPM Configuration)

Every vhost the panel writes for a website is tested with apache2ctl configtest before Apache reloads. If the test fails, the previous vhost is restored and the error names the file and line.

OpenLiteSpeed

Open Server → OpenLiteSpeed (/apps/openlitespeed/). OpenLiteSpeed is event-driven and has a built-in cache (LSCache). The service is called lshttpd. The page has the tabs Overview, Virtual Hosts, Sites: cache & PHP, Listeners & SSL, Configuration and Logs.

  • Overview: status, version, web server mode, the WebAdmin console (Open WebAdmin), Service control and Test config (lshttpd -t).
  • Virtual Hosts: a read-only view of each site's vhconf.conf.
  • Sites: cache & PHP: per website, turn LSCache on or off (when on, the application decides what is cached, for example through a LiteSpeed Cache plugin), Purge LSCache, and choose the PHP: the panel's PHP-FPM pool or an installed lsphp build. lsphp runs as the site owner and is confined like the PHP-FPM pools (open_basedir and disabled functions). Settings are kept on the site and restored after its vhost is rebuilt.
  • Listeners & SSL: the panel keeps every enabled site on the :80 listener and every HTTPS site on :443. You can map sites to other listeners (Map site / Unmap) and bind or unbind a site's certificate (Bind certificate); issue certificates in Let's Encrypt or SSL Manager.
  • Configuration: a Settings form for max connections, connection timeout, keep-alive timeout, max keep-alive requests, max request body size, GZIP compression and showing the server version number, plus a read-only Raw view. Test & Save runs a config test; if it fails, the original file is restored, otherwise OpenLiteSpeed reloads gracefully. Only directives already present in the file are edited.
  • Logs: the server's error and access logs.

New installations get a 50 MB maximum request body size by default (instead of OpenLiteSpeed's stock value); a value you change stays.

Where things live (OpenLiteSpeed)

WhatPath
Server configuration/usr/local/lsws/conf/httpd_config.conf
Site configuration/usr/local/lsws/conf/vhosts/<domain>/vhconf.conf
Per-site logs/home/<user>/logs/<domain>.access.log and .error.log
PHPThe same per-user PHP-FPM pool as Nginx and Apache2, as an external FastCGI app — or an lsphp build chosen per site
Tip

The OpenLiteSpeed WebAdmin console (port 7080 by default) gets a random password at install. The panel shows the console port and the path of the root-only file that holds the credentials (/usr/local/lsws/conf/.vinza-webadmin) — it never displays the password itself. Make changes in the panel where possible; the panel rewrites site vhosts when sites change.

Updates

Both pages have an Updates card that shows a newer Apache2, or a newer OpenLiteSpeed or lsphp, in the configured repositories. Update installs it, then tests the configuration and reloads Apache2, or restarts OpenLiteSpeed.

.htaccess and Web Rules

On Apache2, a site's .htaccess in its document root works as usual. OpenLiteSpeed reads only the rewrite rules from .htaccess. The website's Web Rules (Websites → domain → Files & Logs → Web Rules) edits the same file through a guided form: force HTTPS, force www or non-www, redirects and rewrites, blocking dotfiles, sensitive files and IPs, password protection, static caching, security headers and PHP values. Only the panel's own block is changed — the rest of your .htaccess is kept. PHP values are written to the site's .user.ini, which PHP-FPM reads.

Because .htaccess is read per request, it cannot be tested before saving. Instead the panel checks the site's answer after saving: if the new rules make the site answer 500 Internal Server Error, they are reverted.

Note

On OpenLiteSpeed, password protection set in Web Rules is saved but not enforced, because OpenLiteSpeed ignores the Basic Auth lines in .htaccess. Protect the site with an OpenLiteSpeed realm instead.

Warning

Don't hand-edit the site configuration files listed above. The panel regenerates them when a site changes (PHP version, SSL, aliases, web server switch) and your edits are lost.

Switching web server

Open the Vinza Store, find the web server you want and click Replace (or Install (replaces active app) on its page). Before it starts, the panel tells you which app is removed and how many sites will be moved. Then:

  1. the new web server is installed and the old one is removed, together with its configuration directory;
  2. every website on this server is rewritten for the new web server from the panel template (hand-edited vhosts and settings that only exist on the old web server do not carry over);
  3. sites on remote nodes are not affected.

The install log lists each migrated site. If a site fails to migrate, fix it from Websites. To go back, use Replace on the previous web server.

Danger

Switching takes all sites offline for a moment. Take a backup first and do it in a maintenance window.

On this page