title: run yii framework on ubuntu 16.06
body: <p>I was introduced to yii framework recently on someone's computer. I really liked that framework and therefore I ran fast to install it on my ubuntu 16.04 LTS. But since then, it has been trouble to run yii, I dont know why. In the first place I installed the composer,</p>
  
  <pre><code>sudo apt-get install curl
  sudo apt-get install php5-cli
  sudo apt-get install php5-mysql
  sudo apt-get install php5-mcrypt
  sudo php5enmod mcrypt
  sudo apt-get install php5-gd
  curl -sS https://getcomposer.org/installer | php
  sudo mv composer.phar /usr/local/bin/composer
  </code></pre>
  
  <p>I then used composer to install Composer asset plugin</p>
  
  <pre><code>root@miller:/home/miller# composer global require "fxp/composer-asset-plugin:~1.1.1"
  </code></pre>
  
  <p>It generated autoload files (atleast that is what the terminal said).
  When it came to installing yii2 basic and advanced templates, the whole story changed. Some tutorial advised me to move to my localhost web root folder with this command so that I could Install the templates</p>
  
  <pre><code>cd /opt/lampp/htdocs/
  </code></pre>
  
  <p>This did not work so I changed to:</p>
  
  <pre><code>cd /var/www/html
  </code></pre>
  
  <p>Perfect! there I was in the web root folder.
  The last command that I ran to install the templates was this;</p>
  
  <p>composer create-project --prefer-dist yiisoft/yii2-app-basic</p>
  
  <p>and this is the error I got (I still get it even now) from the terminal;</p>
  
  <pre><code>[Composer\Downloader\TransportException]                                                                                                           
  </code></pre>
  
  <p>The "<a href="http://packagist.org/p/yiisoft/yii2-codeception%247d4410e5dca24aea872a0c6b775ab397344bdbd02d76969367de08d7e8439116.json" rel="nofollow">http://packagist.org/p/yiisoft/yii2-codeception%247d4410e5dca24aea872a0c6b775ab397344bdbd02d76969367de08d7e8439116.json</a>" file could not be d<br>
    ownloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution<br>
    failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution</p>
  
  <p>I have tried to load (localhost/basic/web) but it finds nothing. I have also used this tutorial<a href="http://www.freetuts.org/tutorial/view?id=4" rel="nofollow">enter link description here</a></p>
  
  <p>Please help </p>