配置 Laravel 环境
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install php5-mcrypt
需要开启 mod_rewrite
模块
修改 apache2 的配置文件 /etc/apache2/apache2.conf
为 laravel 目录添加权限,rewrite 需要同时有 Options Indexes FollowSymLinks 和 AllowOverride All
<Directory /var/www/html/laravel>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
--------------------------------------------------------------------------------
打开 app.php 的 debug
--------------------------------------------------------------------------------
编译 php 5.5.15
yum install libxml2
yum install libxml2-devel
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar -zxvf libiconv-1.14.tar.gz
./configure --with-iconv=/usr/local/libiconv/