* Exec format error when using gitweb
@ 2008-06-22 13:51 Erez Zilber
2008-06-22 14:04 ` Lea Wiemann
2008-06-22 14:42 ` Luciano Rocha
0 siblings, 2 replies; 6+ messages in thread
From: Erez Zilber @ 2008-06-22 13:51 UTC (permalink / raw)
To: git
Hi,
I'm trying to config gitweb using v1.5.5.3. I'm able to see my
repositories (through gitweb) but I see the following errors in
/var/log/httpd/error_log. Can anyone help?
[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:
http://kites/cgi-bin/gitweb/gitweb.cgi
[Sun Jun 22 16:33:53 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 16:33:53 2008] [error] [client 172.16.0.7] (8)Exec format
error: exec of '/var/www/cgi-bin/gitweb/git-logo.png' failed, referer:
http://kites/cgi-bin/gitweb/gitweb.cgi
[Sun Jun 22 16:33:53 2008] [error] [client 172.16.0.7] Premature end
of script headers: git-logo.png, referer:
http://kites/cgi-bin/gitweb/gitweb.cgi
Thanks,
Erez
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Exec format error when using gitweb
2008-06-22 13:51 Exec format error when using gitweb Erez Zilber
@ 2008-06-22 14:04 ` Lea Wiemann
2008-06-22 14:11 ` Erez Zilber
2008-06-22 14:42 ` Luciano Rocha
1 sibling, 1 reply; 6+ messages in thread
From: Lea Wiemann @ 2008-06-22 14:04 UTC (permalink / raw)
To: Erez Zilber; +Cc: git
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?
-- Lea
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Exec format error when using gitweb
2008-06-22 14:04 ` Lea Wiemann
@ 2008-06-22 14:11 ` Erez Zilber
2008-06-22 14:17 ` Lea Wiemann
0 siblings, 1 reply; 6+ messages in thread
From: Erez Zilber @ 2008-06-22 14:11 UTC (permalink / raw)
To: Lea Wiemann; +Cc: git
On Sun, Jun 22, 2008 at 5:04 PM, Lea Wiemann <lewiemann@gmail.com> wrote:
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Exec format error when using gitweb
2008-06-22 14:11 ` Erez Zilber
@ 2008-06-22 14:17 ` Lea Wiemann
2008-06-22 14:47 ` Erez Zilber
0 siblings, 1 reply; 6+ messages in thread
From: Lea Wiemann @ 2008-06-22 14:17 UTC (permalink / raw)
To: Erez Zilber; +Cc: git
Erez Zilber wrote:
> -rw-r--r-- 1 apache root 7112 Jun 19 13:57 gitweb.css
>
> [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:
Apparently your web server is trying to execute gitweb.css even though
its executable bit isn't set -- perhaps because it's located in the
cgi-bin directory. I suggest you open
http://.../cgi-bin/gitweb/gitweb.css and try to get it to display the
CSS file in your browser; this is a problem with your web server, not
with gitweb.
(By the way, git-favicon.png and gitweb_config.perl shouldn't have their
executable bits set either, since they're not CGI scripts.)
-- Lea
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Exec format error when using gitweb
2008-06-22 14:17 ` Lea Wiemann
@ 2008-06-22 14:47 ` Erez Zilber
0 siblings, 0 replies; 6+ messages in thread
From: Erez Zilber @ 2008-06-22 14:47 UTC (permalink / raw)
To: Lea Wiemann; +Cc: git
On Sun, Jun 22, 2008 at 5:17 PM, Lea Wiemann <lewiemann@gmail.com> wrote:
> Erez Zilber wrote:
>>
>> -rw-r--r-- 1 apache root 7112 Jun 19 13:57 gitweb.css
>>
>> [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:
>
> Apparently your web server is trying to execute gitweb.css even though its
> executable bit isn't set -- perhaps because it's located in the cgi-bin
> directory. I suggest you open http://.../cgi-bin/gitweb/gitweb.css and try
> to get it to display the CSS file in your browser; this is a problem with
> your web server, not with gitweb.
I moved gitweb outside of cgi-bin and now it works OK. Thanks!
>
> (By the way, git-favicon.png and gitweb_config.perl shouldn't have their
> executable bits set either, since they're not CGI scripts.)
>
Sure.
Thanks,
Erez
> -- Lea
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Exec format error when using gitweb
2008-06-22 13:51 Exec format error when using gitweb Erez Zilber
2008-06-22 14:04 ` Lea Wiemann
@ 2008-06-22 14:42 ` Luciano Rocha
1 sibling, 0 replies; 6+ messages in thread
From: Luciano Rocha @ 2008-06-22 14:42 UTC (permalink / raw)
To: Erez Zilber; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
On Sun, Jun 22, 2008 at 04:51:52PM +0300, Erez Zilber wrote:
> Hi,
>
> I'm trying to config gitweb using v1.5.5.3. I'm able to see my
> repositories (through gitweb) but I see the following errors in
> /var/log/httpd/error_log. Can anyone help?
>
> [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:
> http://kites/cgi-bin/gitweb/gitweb.cgi
If cgi-bin is configured as ScriptAlias in Apache httpd server, then it
will try to execute every file inside that directory. You should move
them elsewere, or use a different directory altogether, with ExecCGI
permissions.
--
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-06-22 14:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-22 13:51 Exec format error when using gitweb Erez Zilber
2008-06-22 14:04 ` Lea Wiemann
2008-06-22 14:11 ` Erez Zilber
2008-06-22 14:17 ` Lea Wiemann
2008-06-22 14:47 ` Erez Zilber
2008-06-22 14:42 ` Luciano Rocha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).