一.配置PHP环境:
搭建好基本的安装包。然后执行如下代码:
二.配置compser等:
三.开始安装:
安装完成后:
搭建好基本的安装包。然后执行如下代码:
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/init.d/iptables save
service iptables restart
reboot
export PATH=$PATH:/usr/local/php/bin
source
二.配置compser等:
cd /home/wwwroot
curl -sS https://getcomposer.org/installer | php
php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
vi /usr/local/php/etc/php.ini
将disable_functions=这一行的内容改为:
disable_functions=dl,eval,assert,exec,popen,system,passthru,shell_exec,escapeshellcmd
service php-fpm restart
三.开始安装:
php composer.phar create-project yiisoft/yii2-app-basic /home/wwwroot/yii-test
安装完成后: