ich glaube ich verblöde, mein cgi auf dem neuen server läuft einfach nicht, wen ich das cgi in der bash starte (als root und als user) sehe ich den html outpout, wenn ich es allersings im web testen will kommt blos ein error 500 :evil:
hier die error.log
Code: Select all
[Tue Jan 7 21:43:50 2003] [error] [client 212.41.xx.xx] Premature end of script headers: /www/cgi-bin/printenv
Code: Select all
#!/usr/bin/perl
print "Content-type: text/htmlnn";
while (($key, $val) = each %ENV) {
print "$key = $val<BR>n";
}
Code: Select all
-rwxrwxrwx 1 www-data root 120 Jan 7 20:07 printenv
script output:
Code: Select all
impi:/www/cgi-bin# ./printenv
Content-type: text/html
_ = ./printenv<BR>
USER = root<BR>
HOME = /root<BR>
OLDPWD = /root<BR>
SHLVL = 1<BR>
PWD = /www/cgi-bin<BR>
TERM = xterm<BR>
SSH_TTY = /dev/pts/0<BR>
SSH_CLIENT = 212.41.xxx.xx 24573 22<BR>
LOGNAME = root<BR>
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11<BR>
PS1 = h:w$ <BR>
SHELL = /bin/bash<BR>
MAIL = /var/mail/root<BR>
impi:/www/cgi-bin#
apache läuft momentan als www-data/www-data