我在Mac机上成功安装了Laravel 5.2。但现在我正在逐步完成在AWS上安装Laravel的过程。
一旦我运行了实例,我使用以下命令安装了apache,php和mysql: sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd
php版本是5.6.17
然后我做了以下事情:
作曲家全球需要" laravel / installer"
并更新了路径:export PATH = $ PATH:〜/ .composer / vendor / bin
当我导航到/ var / www / html并执行" laravel new"时,项目被创建但我收到了mbstring扩展问题。下面是我看到的文本转储:
laravel new hws3
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for laravel/framework v5.2.29 -> satisfiable by laravel/framework[v5.2.29].
- laravel/framework v5.2.29 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
我已经浏览过互联网,只找到了适用于Windows的解决方案。我正在使用Amazon Linux。任何指导都将非常感激。
答案 0 :(得分:3)
答案 1 :(得分:0)
如果你想用作曲家安装Laravel,这是正确答案!
sudo su //to be root
yum install php56-mbstring