When opening the Call Detail Reports section of FreePBX, you may get the following error:
YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!
This occurs when the php session save path is not writable by the httpd process.
1. Determine the save path:
grep save_path /etc/php.ini
should result in something like:
session.save_path = /var/lib/php/session
2. Fix ownership
For the identified directory, change the ownership of that to be asterisk:
chown asterisk /var/lib/php/session