rt-server.fcgi incomplete headers

Check your apache error log file in my case error_log.
after checking the error log file i saw this :
“File::Temp version 0.18 required–this is only version 0.16”

So I had to install :

cpan -i File::temp

then another error about Sys::Syslog
so i had to install:

cpan -i Sys::Syslog