Installing Yii from an archive file involves three steps:

  • Download the archive file from yiiframework.com.
  • Unpack the downloaded file to a Web-accessible folder.
  • Modify the config/web.php file by entering a secret key for the cookieValidationKey configuration item (this is done automatically if you are installing Yii using Composer):
'cookieValidationKey' => 'enter your secret key here',
  • 使用浏览器访问/basic/web/index.php,如果有报错则根据报错信息解决错误。
  • 执行php yii server运行yii的内置Web Server,默认运行在http://localhost:8080/

You should see the above “Congratulations!” page in your browser.

sudo apt install php7.0-mbstring