diff --git a/autoload.php b/autoload.php
index 1e5ad34..f526490 100644
--- a/autoload.php
+++ b/autoload.php
@@ -11,4 +11,11 @@
  * @see core/modules/statistics/statistics.php
  */
 
-return require __DIR__ . '/vendor/autoload.php';
+if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
+  header('500 Internal Server Error');
+  print 'Run composer install in your web root.';
+  exit;
+}
+else {
+  return require __DIR__ . '/vendor/autoload.php';
+}
