diff --git a/lib/private/util.php b/lib/private/util.php
index 53c9fbfd56bfbb41f4102a278818ecf579559716..3178639b02e33d0dcaccb92bb8b74395729b2976 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -1031,6 +1031,11 @@ class OC_Util {
 			return true;
 		}
 
+		// php dev server does not support htaccess
+		if (php_sapi_name() === 'cli-server') {
+			return false;
+		}
+
 		// testdata
 		$fileName = '/htaccesstest.txt';
 		$testContent = 'testcontent';