来源:WimJimmy 发布时间:2018-06-30 17:31:22 阅读量:868
服务器环境ubuntu-server-14.04.4
查看系统环境是否满足以下条件
OR
命令行php -m 查看模块
对照一下
- PHP >= 5.5.9
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
First, you need to download Composer into your project folder. Let’s create an empty folder for this purpose in our /var/www Apache web root folder called my_project:
Download Composer into this folder with the following command:
curl -sS https://getcomposer.org/installer | php
You should see a success message that looks something like this:
Now if you check in the project folder, you’ll see that only one file has been downloaded: composer.phar - a PHP archive file that can be run from the command line.
根目录是public
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop
访问localhost 出现“Laravel 5” 就OK了
假如发现报错
failed to open之类的
设置下777权限就好了
原文地址https://blog.csdn.net/WenJimmy/article/details/51152919