Type:
chmod -R 0707 /var/www/html/youfluxfolder/data (or where ever your flux data folder is)
and it will grant read and write permissions to all subdirectories and files in the data folder. This is a must or I guarantee you will run into more of the same problems. Good luck!