# Can't run cgi script with Apache 2.2 with Windows XP

**URL:** <https://www.ruby-forum.com/t/cant-run-cgi-script-with-apache-2-2-with-windows-xp/120140>\
**Category:** Ruby\
**Created:** [November 14, 2007, 2:19am UTC](https://www.ruby-forum.com/t/cant-run-cgi-script-with-apache-2-2-with-windows-xp/120140 "2007-11-14T02:19:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynchnco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Post date:** [November 14, 2007, 2:19am UTC](https://www.ruby-forum.com/t/cant-run-cgi-script-with-apache-2-2-with-windows-xp/120140/1 "2007-11-14T02:19:35Z")

</div>

I’m trying to get Ruby up and running using a CGI script in a Windows  
XP/Pro.  
I entered the following URL in the IE browser:  
localhost:8080/cgi-bin/hello.cgi.  
The following is returned on the browser: 500 Internet Server Error.  
The following is in the Apache Error Log: …cgi-bin/hello.cgi is not  
executable…

It appears that Windows doesn’t know how to execute the hello.cgi  
script…  
Might be a httpd.conf configuration file issue.

If I was in a Unix environment I would try adding a shebang to the  
beginning of the file…

I’d appreciate any help…
