How to Install Laravel 9 in Windows

To install laravel 9 on windows xampp; Through this tutorial, i am going to show you how to install laravel latest version on the windows 10/11 xampp step by step with the composer using cmd.

How to Install Laravel 9 in Windows

Use below given steps to install laravel 9 on windows 10/11 xampp or ubuntu:

  • System Requirement
  • Create a Project
  • Run the Application on Development Server

Step 1: Server Requirements

The Laravel framework has a few system requirements. You should ensure that your web server has the following minimum PHP version and extensions:

  • PHP >= 7.3
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Step 2: Install Laravel

Type the command In the command prompt => composer create-project laravel/laravel Project Name. It will install a laravel new setup on your windows xampp:

composer create-project --prefer-dist laravel/laravel blog

Step 3: Run the Application on Development Server

In this step to use the php artisan serve command .it will start your server locally

php artisan serve

If you want to run the project diffrent port so use this command

php artisan serve --port=8080 

You have successfully install laravel on windows, Now Go to the browser and hit the

URL : http://localhost:8000/blog

If you are not run php artisan server command, direct go to your browser and type the URL

URL : http://localhost/blog/public/

Conclusion

In this how to install laravel on windows XAMPP, You have learned how to install the latest version laravel 9 on windows 10/11 with the composer by using cmd.

Solved :- Server Error 500 when accessing Laravel

Download New Laravel Setup and Run, It will show server error 500 when accessing Laravel 6

If your using ubuntu machine. open your terminal and go to your project root directory and type the command in command prompt :

sudo chmod  -R 777 storage

sudo chmod -R 777 bootstrap

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *