snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

XAMPP Installation with Snipe-IT v3.3.0

Open ghost opened this issue 10 years ago • 4 comments

I try for a few weeks to install snipe-it with no success.

Made a clean Server 2012 R2 server

I follow this ticket/steps: https://github.com/snipe/snipe-it/issues/2421

i install composer install command on snipe-it folder next is made C:\xampp\htdocs\snipe-it>php artisan key:generate

was success generate

I get stuck on composer.

If i enter composer command i still get message file is not found.

What im doing wrong?

2016-08-21 12_59_23-igo-snipe-it - remote desktop connection

If i go to the url i dont get the Snipe-IT Pre-Flight

Still get Whoops, looks like something went wrong. on the start page

ghost avatar Aug 21 '16 11:08 ghost

  1. I'd suggest reading the messages that appear after running a command, they usually give you a good idea of what is going on.

"Could not open input file: composer.phar" "Unknown database 'snipe-it'"

If you fix these, things will be much more likely to work.

mnemonicly avatar Aug 21 '16 13:08 mnemonicly

The problem is why i get the error "Could not open input file: composer.phar"

I run composer install with success.

Afther that step i could create artisan key

Only if i run the command php composer.phar install --no-dev --prefer-source

i get the error. Don't know why.

"Unknown database 'snipe-it'" also strange because 100% sure i created.

If i look composer.phar on the pc 0 results, if run composer install it's with succes and composer is up to date. My questions is why or what i need to do to solved it? It cant find it.

ghost avatar Aug 21 '16 13:08 ghost

it sounds like composer is installed globally for you, and not locally (in the snipe directory.) composer install does the same thing as php composer.phar install, depending on where you installed composer.

mnemonicly avatar Aug 21 '16 13:08 mnemonicly

Thanks for the tip. Files are standing in the app data folder from the user. I copy them to the vendor folder form snipe-it

Also i had need to run these commands

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

Finaly i get the install page 2016-08-21 16_27_49-igo-snipe-it - remote desktop connection

ghost avatar Aug 21 '16 14:08 ghost