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

  1. 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
  2. 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
  3. Install Laravel:
    1. composer global require laravel/installer
    2. Composer will be installed in C:/Users/<USER>/AppData/Roaming/Composer
    3. Set the PATH environment variable using command prompt with admin privileges:
      setx /M path "%path%;%appdata%\Composer\vendor\bin"
    4. Good Message: SUCCESS: Specified value was saved.
    5. Erro Message: ERROR: Access to the registry path is denied. - Run command prompt or PowerShell as admin if you get this error
  4. 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
  5. 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/
  6. Thats it, you can start creating project like this:
    composer create-project laravel/laravel PROJECT-NAME
  7. Start XAMPP HTTP server
  8. 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