Download Laravel dependencies via Composer in AWS EC2

Asked

Viewed 122 times

0

I cloned an Laravel project on a linux server EC2 and when I will download the dependencies via Build it gives the error

Do not run Composer as root/super user! See https://getcomposer.org/root for details

The project is with Laravel 5.7 in version 7.3 of PHP

inserir a descrição da imagem aqui

  • 1

    It’s not an error, it’s just a warning... You should not run Composer as root, but if you want you can.

  • 1

    Actually the error itself is the mbstring extension that is missing

  • 1

    run the command sudo yum install php-mbstring to install

  • 1

    Here are listed the dependencies of Laravel, you need to install some php extensions to work properly https://laravel.com/docs/5.8/#installation

  • @sant0will worked, thank you

1 answer

1


The error that is actually returning in the console is the extension mbstring that is missing. To carry out the installation of a project laravel are needed some prerequisites on the server.

In your case since you are missing only the mbstring extension and are using a Redhat derivative, just run the command:

sudo yum install php-mbstring

Browser other questions tagged

You are not signed in. Login or sign up in order to post.