A Matomo installation that suddenly returns a blank page or an HTTP 500 rarely fails for mysterious reasons. The server is almost always writing the exact cause somewhere, and the task is to read the correct log, interpret the message, and apply a fix that stays inside the boundaries of an unprivileged hosting account. Matomo is a heavy PHP application with strict requirements around PHP version, extensions, memory, and file permissions, so most breakage after an upgrade, a PHP version switch, or a plugin change traces back to one of those four areas. This walkthrough shows how to find the true error and repair it through DirectAdmin, File Manager, phpMyAdmin, .htaccess, and .user.ini only.
Finding the real error instead of guessing
A white screen means PHP hit a fatal error but display is suppressed, which is the default and correct behavior for a production analytics tool. An HTTP 500 usually points to a web server or .htaccess problem, or to PHP exceeding a limit mid-request. The difference matters because the two live in different log files. Before changing anything, read both.
The PHP error log is the most valuable source. On Hostiso's LiteSpeed and CloudLinux stack, PHP writes per-account errors to a file inside your Matomo directory or the account root. Open DirectAdmin → System Info & Files → File Manager, navigate to /domains/yourdomain.com/public_html/ (or the subfolder where Matomo lives, often /matomo/ or /analytics/), and look for error_log. Right-click and view it. The last entries, read from the bottom, contain the fatal line, file path, and line number.
If no error_log exists yet, force PHP to create one. Create or edit a .user.ini file in the Matomo document root with these directives:
display_errors = Off
log_errors = On
error_reporting = E_ALL
error_log = /home/USERNAME/domains/yourdomain.com/public_html/matomo/php_errors.log
Replace USERNAME and the path with your real values; you can copy the absolute path from the File Manager breadcrumb. LiteSpeed caches .user.ini for up to five minutes, so wait before retesting. Reload the failing Matomo page, then open php_errors.log. You now have the exact fatal message to act on rather than a blank screen.
For HTTP 500 responses specifically, also check the web server error log exposed in DirectAdmin → Advanced Features → Site Summary / Statistics / Logs, under the domain error log view. A 500 caused by .htaccess shows a message referencing an invalid command or an unsupported directive, which immediately rules out a PHP fault.
PHP version mismatches and missing extensions
The single most common Matomo failure after a platform update is running on an unsupported PHP version or missing a required extension. Recent Matomo releases require PHP 7.2.5 as a bare minimum, and current major versions expect PHP 8.1 or newer. If your account was switched to an older or much newer PHP build than Matomo supports, you get a fatal error on the first page load, frequently referencing a syntax token or a removed function.
Set the correct version in DirectAdmin → Account Manager → PHP Selector (or MultiPHP Manager depending on your panel layout). Select a version Matomo officially supports, such as PHP 8.1 or 8.2, and apply it to the domain hosting Matomo. If you run Matomo in a subdirectory of a domain that needs a different PHP version, use a scoped .htaccess handler in the Matomo folder instead of changing the whole domain:
# place inside /public_html/matomo/.htaccess
<IfModule lsapi_module>
AddHandler application/x-httpd-lsphp82 .php
</IfModule>
After fixing the version, confirm the extensions. Matomo needs pdo, pdo_mysql, mbstring, json, gd, curl, zlib, and dom/xml, among others. In the PHP Selector → Extensions tab, tick the required modules for the active version and save. A log line such as Call to undefined function Matomo\...\curl_init() or Class "DOMDocument" not found tells you exactly which extension is disabled. Matomo also surfaces this cleanly if you can reach Administration → System → System Check; the green and red rows there map directly to extensions and settings you can toggle in the PHP Selector.
One subtle trap: switching PHP versions resets your extension selections and your .user.ini interpretation. If Matomo worked yesterday and broke after a version change, re-enable the extensions for the newly selected version before assuming the application itself is corrupt.
Memory limits, timeouts, and .htaccess faults
When the log shows Allowed memory size of N bytes exhausted or Maximum execution time exceeded, Matomo ran out of resources during archiving, a large report, or a plugin update. These are configurable from your account. In PHP Selector → Options, raise memory_limit to 512M and max_execution_time to 300 where your plan allows. You can also pin the same values in .user.ini so they survive and stay documented:
memory_limit = 512M
max_execution_time = 300
max_input_vars = 5000
post_max_size = 64M
upload_max_filesize = 64M
Do not place php_value directives for these in .htaccess on a LiteSpeed/PHP-as-LSAPI setup; they are ignored and can themselves throw a 500. Keep PHP tuning in .user.ini or the PHP Selector, and keep .htaccess limited to rewrite and header rules. If you want the full breakdown of safe limits and the config.ini.php cache options, the companion article on tuning Matomo configuration covers those values in depth.
If the 500 appeared right after editing .htaccess or after a Matomo update rewrote it, test by temporarily renaming the file to .htaccess.bak in File Manager and reloading. If the page returns, a directive was invalid for this server. Matomo ships a protective .htaccess set in its subfolders; the common offender on shared hosting is a leftover Options -Indexes combined with an unsupported module block. A minimal, safe root rule set for Matomo looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
<FilesMatch "\.(ini|log|dat|sql)$">
Require all denied
</FilesMatch>
Permissions produce their own class of fatal errors. If the log mentions failed to open stream: Permission denied or Matomo cannot write to tmp/, confirm that files are 644 and directories are 755, and that the tmp/, config/, and plugins/ folders are owned by your account. Use File Manager's Change Permissions action; never loosen anything to 777, since CloudLinux and LiteSpeed reject world-writable PHP execution and it invites compromise.
Database faults, broken plugins, and safe recovery
A fatal error containing SQLSTATE, Access denied for user, or Unknown database is a connection problem, not a code problem. Open config/config.ini.php in File Manager and verify the [database] block host, username, password, and dbname match a user you can log into through DirectAdmin → phpMyAdmin. On this platform the host is almost always localhost. If credentials are correct but connections still fail, confirm the database user is still assigned to the database under DirectAdmin → MySQL Management, since a restored or migrated account sometimes drops that grant.
Errors that reference Table '...' doesn't exist or an incomplete column usually mean an upgrade was interrupted. Re-run the database update by visiting https://yourdomain.com/matomo/index.php?module=CoreUpdater and letting Matomo apply pending migrations. If the updater itself white-screens, check php_errors.log for the failing SQL and raise max_execution_time before retrying, because large archive tables time out mid-migration.
When a single plugin is the culprit, the log names it directly, for example Fatal error ... in /plugins/SomePlugin/.... You cannot always reach the dashboard to disable it, so disable it through config/config.ini.php instead. Find or add a [PluginsInstalled] and [Plugins] section and remove the broken plugin from the enabled list, or add this block to force it off:
[PluginsInstalled]
PluginsInstalled[] = "BrokenPluginName"
; remove the plugin's line from the [Plugins] enabled array
The cleaner approach is to rename the plugin's folder under /plugins/ to something like SomePlugin_disabled in File Manager; Matomo then treats it as absent and loads without it, restoring dashboard access so you can uninstall or update it properly. After any fix, clear Matomo's compiled cache by deleting the contents of the tmp/ directory (keep the folder itself), since stale cached container files can replay an error you already resolved. Reload the page, recheck Administration → System → System Check, and only then set display_errors back off in .user.ini for production.