- Forums
- laravel
- Simple Steps To Install and run Laravel project On Windows 10 PC
these are the steps i took in order to install and run laravel on my laptop which has windows 10 [4613], Last Updated: Mon Jun 24, 2024
webber
Wed Nov 09, 2016
0 Comments
976 Visits
Windows 10 Laravel 5.1 Project
These are the steps I took in order to install and run laravel on my laptop which has windows 10 pro. In order to have a project running, these are the steps I took:
REQUIREMENTS:
Resources:
Start Project
- First, you will need to install XAMPP from apachefriends.org, you will need to have PHP 7 running on your computer. XAMPP is very simple to install. nothing complicated, once you have installed it, follow these step by step
- Install composer, if you dont have it, run Composer-Setup.exe you downloaded with composer.org
- If you get "choose the command line you want use", look for C:\apachefriends\xampp\php\php.exe or wherever you installed you XAMPP look for the php folder and find php.exe
- Proxy Settings: Leave as is. Don't put anything.
- SQLLite Error: Open C:\apachefriends\xampp\php\php.ini and uncomment (remove the preceeding ;) the line: extension=php_pdo_sqlite.dll or extension=pdo_sqlite and restart your http server if you have xampp running.
- Hit the back button on the installation so you wont get this error anymore
- NO PROXY: don't use a proxy server in the composer setup
- YOU MUST RESTART YOUR COMPUTER FOR THE CHANGES TO TAKE AFFECT IF YOU HAD XAMPP ALREADY RUNNING
- After you have restarted your computer open a command and type this command:
composer
This will show you the version of composer you are running on you PC using XAMPP
- Install Laravel:
composer global require laravel/installer
- Composer will be installed in C:/Users/<USER>/AppData/Roaming/Composer
- Set the PATH environment variable using command prompt with admin privileges:
setx /M path "%path%;%appdata%\Composer\vendor\bin"
- Good Message: SUCCESS: Specified value was saved.
- Erro Message: ERROR: Access to the registry path is denied. - Run command prompt or PowerShell as admin if you get this error
- cd to the directory you want to create the new laravel project: example:
cd C:\xampp\htdocs\projects\
or
cd F:\apachefriends\xampp\htdocs\LARAVEL\Projects
- At this point, you might get a waring to upgrade your composer, this is what I got as of 12/11/2022:
Warning: Module 'openssl' already loaded in Unknown on line 0
Creating a "laravel/laravel" project at "./laragigs"
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
TO upgrade send this commnad: composer self-update --2
Use composer self-update --rollback to return to version 1.10.6
More information at: https://blog.packagist.com/composer-2-0-is-now-available/
- Thats it, you can start creating project like this:
composer create-project laravel/laravel PROJECT-NAME
- Start XAMPP HTTP server
- Open browser to URL: http:localhost/projects/PROJECT-NAME/public
Hope that helps..
laragigs location is in Linux VirtualBox Docker-ubuntu-100G - USE THIS ONE in
$ cd ~/Desktop/local-laravel/tutorial/laragigs
or https://github.com/edw****ino/jobpostings
MYyJ4PuL4pY