internal server error shows you have a problem with your apache configuration file(httpd.conf).
the original uniform server has no problem running your code.
open your httpd.conf(/udrive/usr/local/apache2/conf/httpd.conf) and check your cgi-bin configuration.
it should much like
ScriptAlias /cgi-bin "/cgi-bin/"
# "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
BUT if you have no problem with your first page of uniform server and can shutdown your server using your admin panel page then there might be another problem. check your apache log file also.