Michael-J-Scofield / plebbit

The official plebbit.net repo
12 stars 12 forks source link

Php artisan migrate not working #6

Closed xooxgit closed 6 years ago

xooxgit commented 6 years ago

Hi,

I just created the .env file and the final step was to use the php artisan migrate command. But I get this error. Any idea how I can fix this? Thanks a lot. git

Michael-J-Scofield commented 6 years ago

what's in the plebbit directory? it looks like it couldn't import the vendor/autoload.php which could be a permission issue as well.

xooxgit commented 6 years ago

The file does exist and here are the folder and file permissions:

bootstrap folder: drwxr-xr-x autoload.php: -rw--r--r--

I am accessing this as root. So this does mean I should be able to read and write. Also, this is the autoload.php page. Everything is what's default. Not really sure what the issue is.

Thank you for all your help. git

Michael-J-Scofield commented 6 years ago

Do you have the vendor folder?

xooxgit commented 6 years ago

No, I do not. I have checked both bootstrap as well as the plebbit folder. I don't find it on either. Where should it exist? Thanks for all the help here!

Michael-J-Scofield commented 6 years ago

Run composer install as documented in the installation guide. If you don't have composer, install it.

xooxgit commented 6 years ago

No luck. I had already done composer install and created a .env file. Still the same issue. I ran composer install again and I still don't see a vendor folder on the bootstrap folder.

Michael-J-Scofield commented 6 years ago

vendor folder should be in the root of the project not in the bootstrap folder.

fix your composer. this is not related to the project but to your config.

please see: https://medium.com/@colorfield/install-an-existing-laravel-project-c6e6bf28d5c6 and: https://getcomposer.org/download/