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

Error in importing Rules thru URL Rewrite

Open bagetsro opened this issue 10 years ago • 12 comments

Expected Behavior (or desired behavior if a feature request)

(what you expect to happen goes here)

login page shoud appear

Actual Behavior

(what actually happens goes here)

http error 403.14 - Forbidden

Please confirm you have done the following before posting your bug report:


Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running - 3.3.0
  • What OS and web server you're running Snipe-IT on - windows 7 32bit, IIS
  • 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 Error 403.14 - Forbidden
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error - login page
  • If a stacktrace is provided in the error, include that too. -na
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo. - no
  • Include any additional information you can find in app/storage/logs and your webserver's logs. - none
  • Include what you've done so far in the installation, and if you got any error messages along the way. - there was an error with importing rules with url rewrite
  • Indicate whether or not you've manually edited any data directly in the database - no

i have also added 127.0.0.1 in my host file

My web browser error image

My Rules import error image

My .htaccessfile image

My IIS Settings image

My Bindings image

bagetsro avatar Aug 25 '16 01:08 bagetsro

Thanks for the helpful screenshots - do you have index.php set as a default index? I'm no IIS expert, but something like this?

https://technet.microsoft.com/en-us/library/cc771439(v=ws.10).aspx

snipe avatar Aug 25 '16 03:08 snipe

I will study and check the link you gave. Btw just to add, i havent imported any rules yet using the url rewrite as im having errors importing. Like what is show on screenshot above. I also haven't made it to the step "pre-flight and setup" as im having the http error.

bagetsro avatar Aug 25 '16 03:08 bagetsro

Yeah, I don't know why those errors happen on IIS. Those are default Laravel rules, and it seems weird that Larval would provide rules that choke IIS up so hard. You can remove the rule that's not importing correctly though, it's not critical.

snipe avatar Aug 25 '16 03:08 snipe

after adding index.php as a default document, the error changed. i have restarted the site as well. image

image

bagetsro avatar Aug 25 '16 06:08 bagetsro

i also have my APP_URL set to null if that is an issue.

image

bagetsro avatar Aug 25 '16 06:08 bagetsro

Okay, that seems closer.

https://technet.microsoft.com/en-us/library/dd239230(v=ws.10).aspx

screen shot 2016-08-24 at 11 10 33 pm

You'll need to set your APP_URL and restart the web server tho.

snipe avatar Aug 25 '16 06:08 snipe

well the error again changed. i have set my APP_URL to gdcassets.local, added it to the host file, and binding in ISS. image

this is my permission settings image

bagetsro avatar Aug 25 '16 06:08 bagetsro

You need to set your storage directory (and all subdirectories within the storage directory) to be writeable by the server.

snipe avatar Aug 25 '16 06:08 snipe

yes as shown above, i gave IUSR full control permission. i also gave the IIS_IURS user full control permision then this error came up. image

upon checking my log files, this is the error. image

bagetsro avatar Aug 25 '16 06:08 bagetsro

Believe it or not, this is actually more progress. Now it's able to write to the log file, but it looks like the PHP-PDO extension might be missing.

http://www.iis-aid.com/articles/how_to_guides/working_pdo_extensions_iis http://www.garrypassarella.co.uk/2011/12/05/uncaught-exception-pdoexception-with-message-could-not-find-driver/

snipe avatar Aug 25 '16 07:08 snipe

well, that solved it. thank you so much! this community always responds in time and always resolves issues. thanks again. would be better if there would be a step by step installation guide including the prerequisites for windows (php) to avoid this issues in the future. i would be happy to do it if you wont mind. ;)

image

bagetsro avatar Aug 25 '16 08:08 bagetsro

We would LOVE it if you could expand on our Windows documentation. I haven't worked on Windows in over 15 years, so a more verbose step-by step would be a great benefit to the community. If you go to the current IIS documentation, there should be an option to "Suggest Edits" in the top right. If you use that, you can write up your changes in markdown and we can approve them when you're done. Thanks!

snipe avatar Aug 25 '16 15:08 snipe