2014年11月20日 星期四

install yii mvc framework

1. use curl to install composer
#  export http_proxy=http;//X.X.X.X:3128
#  export https_proxy= http;//X.X.X.X:3128
#  curl -sS https://getcomposer.org/installer | php
#  mv composer.phar /usr/bin/composer

2. installl php-mcypt module
#  apt-get update
#  apt-get install php5-mcypt

3. enable php5-mcypt module
#  php5enmod mcrypt
#  /etc/init.d/apache2  restart

4. create first project use composer
#  composer create-project --prefer-dist yiisoft/yii2-app-basic yii

5. check project running status
user browser to http://localhost/yii/web/index.php



2014年11月5日 星期三

start ubuntu in text mode

1. modify grup setting
# vim /etc/default/grub

comment the line
GRUB_CMDLINE-LINUX_DEFAULT= ""

change the line to
GRUB_CMDLINE_LINUX = "text"

uncomment the line
GRUB_TERMINAL=console

2. update the setting
#update-grup

3. reboot the machine
# reboot