git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Exec format error when using gitweb

From
EZErez Zilber <erezzi.list@gmail.com>
Date
Jun 22, 2008, 14:11 UTC
Message-ID
<ce513bcc0806220711k5e8c5085qfa330b017d736142@mail.gmail.com>
In-Reply-To
<485E5BD6.6060105@gmail.com>
On Sun, Jun 22, 2008 at 5:04 PM, Lea Wiemann <lewiemann@gmail.com> wrote:
Show 8 quoted lines
> Erez Zilber wrote:
>>
>> [Sun Jun 22 16:33:53 2008] [error] [client 172.16.0.7] (8)Exec format
>> error: exec of '/var/www/cgi-bin/gitweb/gitweb.css' failed, referer:
>
> Random guess: Did you make the data files (.css, .png) executable by
> accident, so your server is trying to execute them?
>

Thanks for the quick response. Yeah, I did that after I got "Permission denied" errors. Now, I chnaged it and it looks like this:

[admin@kites ~]$ sudo ls -l /var/www/cgi-bin/gitweb total 192 -rwxr-xr-x 1 apache root 164 Jun 19 13:57 git-favicon.png -rw-r--r-- 1 apache root 208 Jun 19 13:57 git-logo.png -rwxr-xr-x 1 apache root 170562 Jun 19 13:57 gitweb.cgi -rwxr-xr-x 1 apache root 79 Jun 22 16:29 gitweb_config.perl -rw-r--r-- 1 apache root 7112 Jun 19 13:57 gitweb.css

and I get the following errors:

[Sun Jun 22 17:06:08 2008] [error] [client 172.16.0.7] (13)Permission denied: exec of '/var/www/cgi-bin/gitweb/gitweb.css' failed, referer: http://kites/cgi-bin/gitweb/gitweb.cgi [Sun Jun 22 17:06:08 2008] [error] [client 172.16.0.7] Premature end of script headers: gitweb.css, referer: http://kites/cgi-bin/gitweb/gitweb.cgi [Sun Jun 22 17:06:08 2008] [error] [client 172.16.0.7] (13)Permission denied: exec of '/var/www/cgi-bin/gitweb/git-logo.png' failed, referer: http://kites/cgi-bin/gitweb/gitweb.cgi [Sun Jun 22 17:06:08 2008] [error] [client 172.16.0.7] Premature end of script headers: git-logo.png, referer: http://kites/cgi-bin/gitweb/gitweb.cgi

Erez
Previous: Lea WiemannNext: Lea Wiemann
Message 3 of 6 in “Exec format error when using gitweb”
  1. Erez ZilberJun 22, 2008
  2. Lea WiemannJun 22, 2008
  3. Erez ZilberJun 22, 2008
  4. Lea WiemannJun 22, 2008
  5. Erez ZilberJun 22, 2008
  6. Luciano RochaJun 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.