Did you upgrade your system to Foswiki 1.1.5? It appears that you might be running bin/configure that was shipped with Foswiki 1.1.3. The line number corresponds to the older version of the script. Maybe your apache configuration is pointing to the wrong directory location.

Check your Web Server configuration. Is the bin directory pointing to the location where 1.1.5 is installed?

Look at the bin/configure script being run by the server. Check the length

Foswiki 1.1.5 - 35932

Foswiki 1.1.3 - 30644

If apache is pointing to the wrong directory, update the apache configuration. If the wrong version of the script is in the bin directory, the upgrade was faulty. re-do the upgrade, and make sure all the correct directories are copied into the upgraded system.

The Apache is pointing to the D: drive and to my www directory. I can access the wiki in general only the mail system doesnt work...

If I look at the size D:\www\foswiki\bin\configure it has the size: 31571

So I took the 1.1.5 upgrade packet and installed it agian or took all of it and copied over my current directory....
then I tried to enter the configure foswiki since all now ofcause didnt work.. but as soon as I press configure foswiki I get "Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request................."