LavaLite / cms

Multilingual PHP CMS built with Laravel and bootstrap
https://lavalite.org
2.84k stars 966 forks source link

Installation failed #269

Open ranrinc opened 5 years ago

ranrinc commented 5 years ago

I'm trying to install it on macOS running MAMP Running NGINX MySQL PHP 7.1.22

php artisan lavalite:install

unable to setup my DB correctly keep asking for the right credential, not even root go through. So any help would be helpfull.

rwalus commented 5 years ago

You can try:

  1. Set bash to use the MAMP version of PHP $ export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH

  2. Add your .env file ... DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=dbname DB_USERNAME=dbuser DB_PASSWORD=dbpass DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock

when you will install

  1. Enter your database host. [127.0.0.1] :

    localhost

gadimlie commented 4 years ago

You can try:

  1. Set bash to use the MAMP version of PHP $ export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH
  2. Add your .env file ... DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=dbname DB_USERNAME=dbuser DB_PASSWORD=dbpass DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock

when you will install

  1. Enter your database host. [127.0.0.1] :

localhost

It didn't help

PFAhard commented 3 years ago

The same problem. Please ensure your database credentials are valid. But they are valid in reality.

Ok, I fixed it by creating a new user - homestead and a new database - homestead. Maybe It will be useful for someone.