Weird fopen errors

Pr0t0n

New member
Joined
Sep 14, 2009
Messages
1
Hi,

I new to this site, and I don't know if I place the question in the right place so please tell me if it is. My problem is that I want to load an index.cgi file and when I load that page I only get the html tags executed but the javascript that manages the menu doesn't load, well I have checked the apache error log and it says:

[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] suexec failure: could not open log file, referer: http://www.dutchperlhackers.org/cgi-bin/board/show_cat.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] fopen: Permission denied, referer: http://www.dutchperlhackers.org/cgi-bin/board/show_cat.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: style.css, referer: http://www.dutchperlhackers.org/cgi-bin/board/show_cat.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] suexec failure: could not open log file, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] fopen: Permission denied, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: dropdown.js, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] suexec failure: could not open log file, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] fopen: Permission denied, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] suexec failure: could not open log file, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: sdmenu.css, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] fopen: Permission denied, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi
[Mon Sep 14 23:48:15 2009] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: sdmenu.js, referer: http://www.dutchperlhackers.org/cgi-bin/login/index.cgi

- [15/Sep/2009:00:28:58 +0200] "GET /cgi-bin" dropdown.js HTTP/1.1" 500 476 "http://www.dutchperlhackers.org/cgi-bin/login/index.cgi" "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
- [15/Sep/2009:00:28:58 +0200] "GET /cgi-bin/style.css HTTP/1.1" 500 476 "http://www.dutchperlhackers.org/cgi-bin/login/index.cgi" "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
- [15/Sep/2009:00:28:58 +0200] "GET /cgi-bin/login/sdmenu/sdmenu.css HTTP/1.1" 500 476 "http://www.dutchperlhackers.org/cgi-bin/login/index.cgi" "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
- [15/Sep/2009:00:28:58 +0200] "GET /cgi-bin/login/sdmenu/sdmenu.js HTTP/1.1" 500 476 "http://www.dutchperlhackers.org/cgi-bin/login/index.cgi" "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
- [15/Sep/2009:00:28:58 +0200] "GET /cgi-bin/news/news.cgi HTTP/1.1" 500 476 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"


All my scripts are set to 755, as you can see get style.css 500 same as dropdown.js as example and style.css get's executed.

please help me.

Greets Pr0t0n
 
Seems like you think that .js and .css files are CGI scripts, which are not.
Just move them from the cgi-bin directory to somewhere else or remove the execute bit (octal 1, so 755 becomes 644) and they will "work" (they will be read by Apache as plain files to provide to the client directly, instead of files to be executed).
 
Back
Top