shiny's avatar

How to install on Xampp [windows 8]

What are the steps to install lumen onto a windows 8 computer that has web services set up using XAMPP?

I have composer installed as well as lumen-installer, but I do not know how to get them to install an instance of lumen to a specific folder where I can host my web project.

THansk for the help.

0 likes
6 replies
shiny's avatar

*sigh.

I was following the instructions on the link you replied with them before making the post asking for step by step instructions. And my problem came at the following...

"lumen new blog"

This instruction was vague, because Win 8 is a GUI, as compared to a linux system or apple system which has a terminal interface feature, so I opened the cmd.exe program to access the command line interface for windows 8. I then typed "lumen new [c:\path\to\project\folder]" and it replied with an error, "'lumen' is not recognized as an internal or external command, operable program or batch file."

So I went on to the alternative method and used compser to do the install.

"composer create-project laravel/lumen --prefer-dist"

So with an unsuccessful translation of the above command to cmd.exe of "php composer.phar create-project laravel/lumen [c:\path\to\project] --prefer-dist"

I tried "composer create-project laravel/lumen [c:\path\to\project] --prefer-dist

This seems to have worked, but failed while attempting to install fzaniotto/faker. It says I have to create a Github OAuth token to go over the API rate limit, plus some other instructions.

I have logged into Github and created a token and saved it in the location reported and pressed enter on the cmd.exe line to continue processing. Well surprise! It fails. The install ends with fzaniotto/faker failing to clone from git because I do not have git installed on my computer.

So now what?

WayneLuke's avatar

Make sure the composer binaries are in your path. The default install for composer will put it in an %appdata%\composer directory. So that will be something like c:\user\username\appdata\local\composer. Anything requiring a terminal will require the use of cmd.exe or PowerShell. Whichever you are more comfortable with. I use cmder with a PowerShell terminal. You will use the command line a lot.

See: https://getcomposer.org/doc/00-intro.md#installation-windows

Should install git for Windows as well. If you want a gui, install github for Windows. Takes a while to get it all installed on Windows but you only have to do it once. Make sure it all in your path variable.

If you are going to use sqlite, you should search for install sqlite3 as well.

shiny's avatar
shiny
OP
Best Answer
Level 1

So here are the steps to successfully install lumen on XAMPP for windows 8.

  1. Download and run Composer-Setup.exe - it will install the latest composer version whenever it is executed. https://getcomposer.org/Composer-Setup.exe
  2. Install git from github, find it on the website: https://github.com
  3. Create a github account
  4. Get an OAuth TOKEN because the install files will exceed default limits, at https://github.com/settings/profile
  5. Click Personal access tokens link
  6. Click Generate new token link
  7. Copy token to clipboard
  8. Locate the composer.json file on your computer to locate the composer folder
  9. Create a new file named auth.json and paste the github TOKEN into this file. Make sure the TOKEN string is surrounded by double quotes.
  10. Press Windowskey + X to open start menu and click 'Run'
  11. type cmd and press enter
  12. Change directory to your folder containing composer, from #8 above
  13. type composer create-project laravel/lumen [path\to\your\project\folder] --prefer-dist to install lumen onto your computer

UPDATE

  1. type composer update in the cmd shell, because composer create-project does not load the most recent version

It should all load automatically. If not make sure you have php installed and you may have to reboot your computer after installing composer. Hard to remember 'cause I got a new puppy and have been sleep deprived for the last three weeks.

Anyway thanks to @WayneLuke for reaching out to help and your avatar looks like my puppy.

Best wishes to all.

OskarD's avatar

Thanks for the thorough step-by-step guide (for those who need it) @shiny, but it does not explain how to set up Lumen with XAMPP, just how to set up Lumen

Please or to participate in this conversation.