0

I have installed Laravel 5.2 successfully on my Mac machine. But now I am walking through the procedures to install Laravel on AWS.

Once I got the instance running, I installed apache, php and mysql with the following command: sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd

The php version is 5.6.17

I then did the following:

composer global require "laravel/installer"

and updated the path: export PATH=$PATH:~/.composer/vendor/bin

when I navigate to /var/www/html and do "laravel new ", the project gets created but I receive an mbstring extension problem. Below is a text dump of what I saw:

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.

I've scoured the internet and only found a solution for Windows. I am using Amazon Linux. Any guidance would be most appreciated.

Michael
  • 13
  • 5
  • Did you install composet before installing laravel? – Luis Deras Apr 06 '16 at 02:34
  • Hi ggderas, I did install composer with the following commands: sudo curl -sS https://getcomposer.org/installer | sudo php sudo mv composer.phar /usr/local/bin/composer sudo ln -s /usr/local/bin/composer /usr/bin/composer – Michael Apr 06 '16 at 18:28

2 Answers2

1

It seems you have php 5.6 installed. You need to install mbstring for that particular version of php.

Run sudo yum install php56-mbstring

credits: Alex Andrei answered here

Community
  • 1
  • 1
PSN
  • 2,326
  • 3
  • 27
  • 52
0

If you want to install Laravel with composer, This is the right answer!

sudo su //to be root
yum install php56-mbstring
llioor
  • 5,804
  • 4
  • 36
  • 44