Skip to content

Instantly share code, notes, and snippets.

@maximishchenko
Created October 1, 2015 10:46
Show Gist options
  • Save maximishchenko/25e9a57e1a6e7c14243e to your computer and use it in GitHub Desktop.
Save maximishchenko/25e9a57e1a6e7c14243e to your computer and use it in GitHub Desktop.
Install Yii2 into Linux-server and create an application
# SSH-session
# Install Composer to /bin directory
php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer --install-dir=/bin
# Install composer plugin to work with Bower
composer global require "fxp/composer-asset-plugin:~1.0.0"
// Go to www-folder
cd /www-folder
# Create project (<project_name> - also project-folder)
composer create-project --prefer-dist yiisoft/yii2-app-basic <project_name>
# Need change VirtualHost directory to /www-folder/<project_name>/web/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment