<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi<br>
<blockquote
 cite="mid:3F643797A078EB4FB02880080968098401FA5B6D@langouste.zhaw.ch"
 type="cite"><font face="Arial" size="2">var mapFile2 =
"../htdocs/"+pfad+"/Maps/Hintergrund.map";</font></blockquote>
use absolute paths to mapfile (/var/htdocs/+pfad+..... ). Not relative.<br>
Test Your WMS server in same WMS-client (QGIS) with this paths.<br>
Bartek<br>
</body>
</html>