When a new Yii2 project is required move to the root of your web and issue the following command.
composer create-project --prefer-dist yiisoft/yii2-app-basic fdoc
Composer will initiate and build the new project “fdoc”.
Two commands should be issued to make directories writable by the web process.
chmod 0777 runtime chmod 0777 web/assets
You may need to change ownership of the files by issuing the following command.
sudo chown -R www-data:www-data fdoc
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.