HTTP 500 Internal Server Error (Windows Server 2012 R2)
Expected Behavior (or desired behavior if a feature request)
(what you expect to happen goes here)
Webpage opens
Actual Behavior
The website cannot display the page
HTTP 500
Most likely causes: •The website is under maintenance. •The website has a programming error.
Please confirm you have done the following before posting your bug report:
- [ yes] I have enabled debug mode
- [ yes] I have read checked the Common Issues page
Please provide answers to these questions before posting your bug report:
- Version of Snipe-IT you're running: Latest Release
- What OS and web server you're running Snipe-IT on Windows Server 2012 R2 Standard (IIS8)
- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) Manual
- If you're getting an error in your browser, include that error HTTP 500
- What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error any
- If a stacktrace is provided in the error, include that too.
- Any errors that appear in your browser's error console.
- Confirm whether the error is reproduceable on the demo.
- Include any additional information you can find in
app/storage/logsand your webserver's logs. No logs have been created even though debug is turned on - Include what you've done so far in the installation, and if you got any error messages along the way.
- Indicate whether or not you've manually edited any data directly in the database
add the "full control" rights for directory under C:\Inetpub\wwwroot\ "Snipe-IT" & "Temp"folder under Windows directory or it's good if you add everyone with full rights
Hi @dheer99 I tried this but I still get the same error message :-( I've applied the correct permissions that it mentioned in the instructions as well
Check storage/logs/laravel.log and see if anything in there is indicative of an issue.
Hi @dmeltzer I've checked the folder and there's only a single file called .gitignore which contains no log. I think there must be something very wrong here...
If you set APP_DEBUG to true in the .env file does it give more information? (You may need to restart IIS, not sure how everything works on windows)
I have set it as true - what should the .env file be called ? I have just called mine config.env @dmeltzer
It needs to be just .env, I forget how you do that on windows... you may need to do it on the command line.
that may be where i'm going wrong then - windows by default wont let you just call it .env @dmeltzer
https://gist.github.com/ozh/4131243 has a few ideas.
Ok just renamed it using the command line (ren config.env .env) and it doesn't seem to have made a difference :-( @dmeltzer
Did you restart IIS after renaming it?
have you loaded the url rewritte file on the iis server? i had a lot of troubles the first time with that.
Do you mean the .htaccess file? if so I did import it but one of the Rewright rules failed saying "The rule cannot be converted into an equivalent IIS format because of unsupported flags E
@korio77
Hi @dmeltzer yes I did
mine ended in this and iirc there was one rule that didnt work in iis

Thats mine on the same page @korio77 looks the same to me !
Also check the iis error logs, if there is no log on the lavarel side its probably because the webserver is not even reaching that, probably there is something wrong on your .env file config.
Be sure you have all the php extensions needed too.
I beleive I have all the PHP extensions enabled - I will try and look through the IIS Logs.. @korio77

I have a couple more enabled but cant remember if it was for snipeip or another thing.
Check the iis logs they will tell you where it falls to load.
IIS is a bit tricky to config if you only have one site, but if you have 2 or more on the same its a pain in the a**.
Just in case it helps here is a pic of my loaded php extensions.

Also for the v3 you need php 5.5.9 or more.
Thanks :-) I'm running PHP 5.6.20 with the same extensions enabled. I found this log - I dont know if it helps: ::1, -, 8/8/2016, 16:35:29, W3SVC5, sycamores-svr, ::1, 15, 407, 210, 500, 0, GET, /, -, @korio77