Suggested by Mitz Pettel, reviewed by Darin.
[WebKit-https.git] / WebKitTools / Scripts / run-webkit-tests
index dde03171e4b640909195ff001e5a7669a3f81cfb..38d2a668fc934d7d7f92517f7b2b21a8c9c45697 100755 (executable)
@@ -234,7 +234,9 @@ sub openHTTPDIfNeeded()
         "-C", "Listen $listen",
         "-c", "TypesConfig \"$typesConfig\"",
         "-c", "CustomLog \"$absTestResultsDirectory/access_log.txt\" common",
-        "-c", "ErrorLog \"$absTestResultsDirectory/error_log.txt\"");
+        "-c", "ErrorLog \"$absTestResultsDirectory/error_log.txt\"",
+        "-c", "User \"#" . `id -u` . "\"",  # Apache wouldn't run CGIs with permissions==700 otherwise
+        "-c", "Group \"#" . `id -g` . "\"");
 
     sleep 1; # FIXME: need a better way to wait for Apache to bind to the port
     $httpdOpen = 1;