Hi Itay, the same problem with mine in my recent project, i have develop many project but never got this kind of error before. I’m using Apache 2.2.14 on Ubuntu 10.04 LTS. Maybe it’s about file permission? But why after the page refreshed the error gone? Anyone knows this issue?
Note: i just update my OS from Ubuntu Update Manager.
That could be because of the newly created files having different selinux contexts…
I see this issue with Yii all the time. It is not Yii that is to blame, it is a secure system recognizing that you have files/folders that do not have a context that allows public access via apache (httpd_sys_content_t).
You can check file permissions and selinux context with
ls -lZ /<webdir>/<files>"
Where "<webdir>/<files>" is changed to be the files and folders you want to look at the permissions on.
You can look at the "CentOS HowTos for SELinux" page for good information on SELinux (look closely at sections 4 and 5 for Apache).
The easiest test though is the one I said above (setenforce 0 as root). Then re-check the URLs that gave you a forbidden message.
I did forget to mention above though, that after testing you should turn SELinux back on…