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 have entered a wrong syntax for the chmod command. Try this:
chmod
sudo chmod -R 777 ./var/www/*
Enter a password when you will be prompt.
Important notice:
The asterisk at the end of command line is very important. It means all files in the current directory.