I tried to make a yii project for testing by executing
/var/www/html/yii/framework/yiic webapp demo
and when I go to localhost/demo I get en er
you must config with semanage like this which allow php-fpm write access to directory
# semanage fcontext -a -t httpd_sys_rw_content_t 'YOUR_PATH_HERE' # restorecon -v 'YOUR_PATH_HERE'