1

I have installed Lavarel on my ubuntu system by going through this link. After all the steps I can see the laravel default page(You have arrived). I came to know about the laravel command tool. So inside laravel folder from command tool(terminal) I tried

php artisan serve 

and it showed me like this

Laravel development server started on http://localhost:8000
Directory  does not exist.

When I used http://localhost:8000 from the browser it showed me like This webpage is not available. So can someone tell me how to solve this? Any help and suggestions will be really appreciable. Thanks

3 Answers 3

1

This is caused when Laravel cannot find public/index.php. You might need to update boostrap/paths.php to reflect your current public path.

Sign up to request clarification or add additional context in comments.

Comments

1

In bootstrap/paths.php, change

'public' => __DIR__.'/public',

to

'public' => __DIR__.'/../',

*(Assuming there's a good reason for butchering the base install, such as deploying on IIS)

Comments

0

Reinstall it and skip the part when you remove public folder. It's a good security feature to have your public folder separated from your application code.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.