Snipe-It Installation on IIS (confusing at best)
Is there a clear, concise, step by step install guide for making Snipe-It work on Windows Server 2012 using IIS? I'm finding bits and pieces here, but they are referencing PHP, database, etc, and no where does it show where I get these programs, what versions, when/where to install.
The IIS setup document only tells me how to create the site, and adjust permissions. The dependencies page only states to download and run composer from the snipe-it directory. That program is asking for some type of PHP command.
@brudnicke you need to install PHP and a database app. These can be installed in IIS from the Micorsoft Web Platform (https://www.microsoft.com/web/downloads/platform.aspx) Install the platform installer so that you can add PHP (PHP 7 should work fine), MySQL 5.5 etc.. additionally, once PHP is installed, you will have PHP Manager appear in your IIS Manager, You can enable there as well as enable additional PHP extensions that are needed as referenced in the install guide.
Hope this helps!
Thanks for the information. Was able to find the step by step requirements. However, when i try to access the site, it doesn't come up. Standard "The website cannot display the page". I've restarted IIS, and the server, but with no luck.
Did you make sure to apply your hostname to the .env file you are accessing from. Also, did you make sure you added a DNS record as well for your server in your DNS entries? Additionally make sure you set your bind address to the IP for your host server in IIS
Not sure where I put a host name in the .env file. Not seeing a reference to it. As for DNS, I’ve created a record “snipeit” pointing to 10.10.199.12 (IP of website). I’ve tried accessing the site at http://10.10.199.12 and http://snipeit , but each of them comes up with HTTP ERROR 500.
When I added the hostname snipeit.corp.domain.com to the bindings, when I try to hit the website, it brings up the generic IIS page.
Here is the .env file:
--------------------------------------------
REQUIRED: BASIC APP SETTINGS
--------------------------------------------
APP_ENV=production APP_DEBUG=false APP_KEY=ChangeMe APP_URL=null APP_TIMEZONE='UTC' APP_LOCALE=en
--------------------------------------------
REQUIRED: DATABASE SETTINGS
--------------------------------------------
DB_CONNECTION=mysql DB_HOST=localhost DB_DATABASE=null DB_USERNAME=root DB_PASSWORD=password DB_PREFIX=null DB_DUMP_PATH='C:\PROGRA~1\MARIAD~10.1\bin'
--------------------------------------------
REQUIRED: OUTGOING MAIL SERVER SETTINGS
--------------------------------------------
MAIL_DRIVER=smtp MAIL_HOST=10.10.199.70 MAIL_PORT=587 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null [email protected] MAIL_FROM_NAME='Snipe-IT' [email protected] MAIL_REPLYTO_NAME='Snipe-IT'
--------------------------------------------
REQUIRED: IMAGE LIBRARY
This should be gd or imagick
--------------------------------------------
IMAGE_LIB=gd
--------------------------------------------
OPTIONAL: SESSION SETTINGS
--------------------------------------------
SESSION_LIFETIME=12000 EXPIRE_ON_CLOSE=false ENCRYPT=false COOKIE_NAME=snipeit_session COOKIE_DOMAIN=null SECURE_COOKIES=false
--------------------------------------------
OPTIONAL: CACHE SETTINGS
--------------------------------------------
CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync
--------------------------------------------
OPTIONAL: AWS S3 SETTINGS
--------------------------------------------
AWS_SECRET=null AWS_KEY=null AWS_REGION=null AWS_BUCKET=null
--------------------------------------------
OPTIONAL: MISC
--------------------------------------------
APP_LOG=single APP_LOCKED=false FILESYSTEM_DISK=local APP_TRUSTED_PROXIES=192.168.1.1,10.0.0.1 ALLOW_IFRAMING=false
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
- Make sure to apply your hostname(APP_URL=yourhostname.com) in the .env file.
2.) Make sure you added a DNS record as well for your server in your DNS entries.
Additionally make sure you set your bind address to the IP for your host server in IIS.
One other thing. Make sure you have assigned the proper permissions as noted on this page for all the correct folders listed. https://snipe-it.readme.io/v3.0/docs/windowsiis
-
I’ve added the hostname per instructions. I’ve also setup the hostname in DNS, and checked that it’s resolving correctly. I edited the bindings on IIS, and set the host name. Bind is set to the IP address on the servers second network card. I’ve verified the permissions on all the folders as suggested in the document url provided.
Site won’t respond.
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
after you made all changes. did you restart IIS? or at leaset restart the single site in IIS
Yes. Using the IISRESET command.
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
Not sure if this makes a difference, but I ran the php artisan key:generate command, but the key is still set to ChangeMe in the .env file.
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
that makes a big difference. Yes, that key is important. You have created a copy of .env.example and made your changes and saved it as .env only correct? You should also be able to take the appkey and manually add it to your .env file. I would restart your site after that.
Yes. I’m working with a .env file. I’m using Notepad+++ to edit and save it.
Does it store the key somewhere after you run the command. I enter the command, and it just goes right back to a command promp.t
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
Yes, it is supposed to write the key automatically to the .env file. Are you running php artisan key:generate in the command prompt while inside of your snipeit directory?
Yes. Should it be run from an elevated command prompt?
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
I would, to make sure you have write access to the directory when the command is run.
I tried using the elevated command prompt, but it did not change the file.
I confirmed the security again. The file also has everyone with full control.
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
manually copy the key it generates on the screen to the .env save and restart IIS
It’s not generating a key (at least it’s not displaying one on the screen).
From: JExactly [mailto:[email protected]] Sent: Wednesday, November 09, 2016 2:17 PM To: snipe/snipe-it Cc: Brian Rudnicke; Mention Subject: Re: [snipe/snipe-it] Snipe-It Installation on IIS (confusing at best) (#2883)
manually copy the key it generates on the screen to the .env save and restart IIS
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/snipe/snipe-it/issues/2883#issuecomment-259515012, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWLwtrafc7jJgYqHIldHFK_hctw4HpJsks5q8ipBgaJpZM4Kpjlt.
The information including any attachments contained in this document is confidential and is for the use only of the intended recipient. If you are not the intended recipient, you should notify the sender and delete this message immediately. Any distribution, disclosure, or copying of this message, or the taking of any action based on its contents is strictly prohibited.
Birkey’s Farm Store, Inc.
I am currently out of ideas, Maybe someone else has some additional ideas
If it's not displaying a key, something else is wrong. Check your laravel log file after you run the key generation and see if anything shows up
@snipe Maybe he didn't get composer installed properly and he is missing some dependencies?