assets folder is not writable even it has 777 permissions

Hello there!

I’m new to Yii framework. Trying to set up my first application.

I’m setting 777 permissions for both “runtime” and “assets” folders. With runtime it works fine but I keep getting “directory is not writable” error message for assets dir. I’ve checked several times. It has 777 permissions and it’s group is set to “web-data” (as it’s for apache2 on Debian).

Any ideas how to solve the problem?

UPD: Forgot to mention that I’m using Yii 2.0.4, basic template, Apache2 and PHP 5.4.41

SOLVED

My bad, I did change permissions for “assets” folder in app directory, not in web directory. :)