Php Artisan Key Generate No Such File Or Directory

  1. Php Artisan Key Generate No Such File Or Directory List

Sep 02, 2014  Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. The filesystem configuration file is located at config/filesystems.php. Within this file you may configure all of your 'disks'. Each disk represents a particular storage driver and storage location. Example configurations for each supported driver are included in the configuration file. May 20, 2019  Just adding to this issue as it seems to be related to the same root issue (albeit, probably more of a Windows issue). Same as the two above commenters, I wasn't able to run a composer install or composer update without composer telling me Composer could not find a composer.json file, even though the file was right there. However, it does work when the project isn't in OneDrive.



Setting up Laravel on a Mac php artisan migrate error: No such file or directory (6)

Do not assume your unix_socket which would be different from one to another, try to find it.

First of all, get your unix_socket location.

Enter your mysql password and login your mysql server from command line.

Your unix_soket could be diffrent.

Then you got 2 solution to solve your issue:

(1) Change your config/database.php

(2) Change your php.ini, find your php.ini file from

You maybe install many php with different version, so please don't assume your php.ini file location, get it from your 'phpinfo';

Change your php.ini:

Then restart your apache or php-fpm.

This question already has an answer here:

  • PHP - MySQL connection not working: 2002 No such file or directory 18 answers
  1. Pulled a perfectly working laravel project from a git into a mac running MAMP. Project ran perfectly on a linux machine.
  2. composer install
  3. php artisan migrate, got the following error:

NB:php -v is 5.5 and mysql -v is 5.5 from the terminalHere is part of my config/database.php Halo 2 pc key generator.

I tried replacing localhost with 127.0.0.1 with no avail. Kindly help.

Edit:I added these three lines in my php.ini

I also added this symlink:

But that didnt solve. I also pulled a fresh new laravel project from git and ran into the same error after composer install then php artisan migrate

The mac version is 10.7.4

Another solution is to add the port number in the host key. In this case MAMP uses the 8889 by default:

  • Sponsor Dec 3, 2018

    Trying to set up for installation following this guide

    whe i run php artisan key:generate

    commented Dec 3, 2018

    Will you be able to complete the issue template, looking at the error you may be missing a few of the vendors which should be downloaded when running composer.

    commented Dec 6, 2018

    closed this Dec 6, 2018

    Php Artisan Key Generate No Such File Or Directory List

    Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment