Olá,
Estou com apache2 instalado a algumas semanas e tenho testado mtos cgis diferentes, cgi em shell, em python, mas derrepente ( da noite pro dia ) o apache2 tem retornado um erro interno ( 500 internal server error ) sempre q tento rodar algum cgi.
No log do apache2 o erro é esse [Mon Nov 07 15:53:26 2005] [error] [client 127.0.0.1] Premature end of script headers: calendin.py.
O header do script ta assim
ustrucx@soulless:/var/www$ cat /usr/lib/cgi-bin/calendin.py
#!/python/python
# calendin.py - calendário dinâmico - protótipo 1
print 'Content-type: text/html\n'
print
try:
from time import time, localtime
from calendar import monthcalendar
Nem imagino o que esta errado, se alguem tiver uma pista fico feliz
.
Obrigado.