Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My laravel project start page is not opening

I have install Laravel in my pc using composer.

I used gitbash and started xampp control server

  1. First I've changed my directory.

  2. Then I've ran a command composer create-project laravel/laravel project_1. After the command had run, it installed laravel and all necessary file and key was successfully set.

  3. Then I again changed my directory to project_1

  4. Then I ran another command php artisan serve. After running this command Laravel development server started and 127.0.0.1:8000 this ip has genrated.

  5. I copied the id and paste it in my browser url bar.(I copied and pasted it without using keyboard. I only used mouse)

but when I provided the ip the project_1 starting page did not open. The page was loading and it is still loading.

enter image description here

what can I do? Please help

logs folder

enter image description here

like image 877
Alien Avatar asked Feb 06 '19 06:02

Alien


3 Answers

Here is my contribution, I cannot say what is the cause but I have a solution for it; because I have such as a challenge.

run

php -S 127.0.0.1:8000 -t public

Note that the 8000 is your port, and this could be any 4-digit number.

I hope this helps

like image 189
Premium Ayodele Avatar answered Oct 20 '22 05:10

Premium Ayodele


Every thing you did seems right to me in terms of Laravel requirements, so lets check some other possible issues:

  1. make sure that your internet connection isn't configured to use proxy, if so make sure you excluded your local address.
  2. if you are using Internet security suite software, make sure it doesn't block your requests, this vary from software to another but you might test this by deactivating the software for a while until you try.

now that's what I have in mind, I hope it help.

like image 43
Ahmed Nasr Avatar answered Oct 20 '22 05:10

Ahmed Nasr


First, stop the php artisan serve

After changing directory go to inside your project folder, you can run php artisan serve. Then a localhost URL will be generated for you where you can see your project in the browser

If you have PHP installed locally and you would like to use PHP's built-in development server will start a development server at http://localhost:8000

like image 1
Udhav Sarvaiya Avatar answered Oct 20 '22 07:10

Udhav Sarvaiya