Notfoundhttpexception error when copying Laravel site

Asked

Viewed 76 times

0

I created a website on a machine and it works fine.

I copied the folder to another computer, installed Composer, typed the commands composer update, php artisan migrate and php artisan app:name farmacia. However when accessing, I get the error

NotFoundHttpException

Sorry, the page you are Looking for could not be found.

But if I access the direct link localhost/farmacia/public/municipios he accesses in good.

What can it be?

  • 1

    you ran php Artisan key:generate?

  • 1

    what is the text of Exception?

  • 1

    Another site means just another folder or also another server?

  • @fernandosavio went to another computer

  • @Ademilsonsantanadasilva the text is Sorry, the page you are looking for could not be found., king rotate this command to see

  • 1

    Take a look at the file .env there will be server specific settings.

  • @fernandosavio apparently everything is ok in the file .env

  • 1

    only by the address I already see problems, it is bad configured where the folder public is the root of your application, any other configuration may have problems as you are having ... Configure your application to start the web server in the folder public and use the routes configured in your system smoothly from there.

  • Hi @Virgilionovic I’m a newcomer to the Laravel and it’s the first time I do this. I couldn’t even get the public home (I’m using wamp on my local pc to test)

Show 4 more comments
No answers

Browser other questions tagged

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