# Binary cgi script download instead of executing

**URL:** <https://www.ruby-forum.com/t/binary-cgi-script-download-instead-of-executing/244551>\
**Category:** NGINX\
**Created:** [May 2, 2016, 10:55am UTC](https://www.ruby-forum.com/t/binary-cgi-script-download-instead-of-executing/244551 "2016-05-02T10:55:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [May 2, 2016, 10:55am UTC](https://www.ruby-forum.com/t/binary-cgi-script-download-instead-of-executing/244551/1 "2016-05-02T10:55:53Z")

</div>

* * *

nginx mailing list  
removed\_email\_address@domain.invalid  
[http://mailman.nginx.org/mailman/listinfo/nginx](http://mailman.nginx.org/mailman/listinfo/nginx)

---

<div class="post-metadata">

**Author:** ![mayak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@mayak](https://www.ruby-forum.com/u/mayak)\
**Post date:** [May 3, 2016, 4:01am UTC](https://www.ruby-forum.com/t/binary-cgi-script-download-instead-of-executing/244551/2 "2016-05-03T04:01:41Z")

</div>

Hi,

On Mon, May 2, 2016, at 17:55, mayak wrote:

> hi all,  
> i have simply broken my brain trying to execute a `cgi` script that  
> requires no interpreter – just execute the cgi binary with the query  
> portion of the url, and it spits out html content.  
> no matter what i do, i always end up with ELF\> GARBAGE – the cgi  
> script is downloading and not executing. I’ve googled it to death, and  
> cannot find how to do this.  
> thanks  
> m

nginx doesn’t execute anything. In your case, something like  
slowcgi/thttpd is needed so nginx can talk to it.

---

<div class="post-metadata">

**Author:** ![mayak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@mayak](https://www.ruby-forum.com/u/mayak)\
**Post date:** [May 3, 2016, 7:37am UTC](https://www.ruby-forum.com/t/binary-cgi-script-download-instead-of-executing/244551/3 "2016-05-03T07:37:16Z")

</div>

Hi.

Am 02-05-2016 10:55, schrieb mayak:

> hi all,
> 
> i have simply broken my brain trying to execute a `cgi` script that  
> requires no interpreter – just execute the cgi binary with the query  
> portion of the url, and it spits out html content.
> 
> no matter what i do, i always end up with ELF\> GARBAGE – the cgi  
> script is downloading and not executing. I’ve googled it to death, and  
> cannot find how to do this.

please take a look into this.

> **[Running CGI scripts on uWSGI — uWSGI 2.0 documentation](https://uwsgi.readthedocs.io/en/latest/CGI.html?highlight=Nginx)**

As Edho written nginx does not execute anything by default.

What I’m wondering why the first hit shows a possible solution, does  
this solution does not work for you?

[https://startpage.com/do/search?q=nginx+cgi+run](https://startpage.com/do/search?q=nginx+cgi+run)

Cheers Aleks
