1.搭建LAMP:
安装apache2:sudo apt-get install apache2
安装php5: sudo apt-get install php5
安装(配置APACHE+PHP):apt-get install libapache2-mod-php5
安装mysql: apt-get install mysql-server
安装(apache、php支持 mysql):apt-get install libapache2-mod-auth-mysql
安装php5-mysql: apt-get install php5-mysql
2.升级php5至php5.5高版本:
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
3.安装 mcypt php extension
apt-get install php5-mcrypt php5-dev 3.1将配置文件链接给 PHP(有就不用了)
3.2开启Mcrypt模块:ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
php5enmod mcrypt 4.配置apche: vi/etc/apache2/apache2.conf 把None改成All 把denied改成granted cd /etc/apache2/sites-available vi 000-default.conf 把DocumentRoot /var/www/html 去掉/html 5.开启apache2 rewrite功能:a2enmod rewrite 6.开启php管理:a2enmod php5(相当与php-fpm) 7.下载composer.phar 8.下载laravel包,解压包到/var/www/下 9.cp composer.phar composer,把composer改成composer 10.打开laravel主目录(composer.josn目录)运行:composer install 自动安装文件 11.输入127.0.0.1/laravel/public得到图:
you have arrived