Problems getting CDR since Asterisk upgrade

Hello, I installed Asterisk 11.20.0 in December and noticed today I am not getting any CDR at all. I have read lots this afternoon and spent several hours on google, cdr show status says it is enabled, module show like mysql shows 0 modules loaded. module load cdr_mysql.so givesUnable to load module cdr_mysql.so.

It was working under 11.16.0 which was the system I upgraded from. My FreePBX is 2.11.0.35 and I am running on a Raspberry Pi. Can anyone give me suggestions where to look? I tried meddling with permissions on myPHP earlier and managed to lock myself out so after a full image restore I am being extra careful!

Thanks :slightly_smiling: