I've run chmod 777 on /home/cache/, however the apache user is still unable to write to it. My php script is writing to this directory but got a permission denied error and don't know why.
ls -ld cache shows:
drwxrwxrwx. 2 root root 69632 Aug 24 17:04 cache/
ls -ld /home shows:
drwxr-xr-x. 19 root root 4096 Aug 24 18:30 /home