snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.04k stars 3.18k forks source link

D'oh. If you're seeing this, your DocumentRoot is set incorrectly. It should be set to the public directory. #10661

Open Reza-pro20 opened 2 years ago

Reza-pro20 commented 2 years ago

Debug mode

Describe the bug

Hi, I'm using the Plesk control panel and have already added the .env file but after heading to my browser I got the mentioned error. on the server configuration part there is nowhere that talks about the configuration for shared hosts like mine. I believe my problem should be .htaccess but I couldn't resolve it.

Reproduction steps

1.Git Clone

  1. Didn't do [Install package dependencies via composer] since I'm using a shared host 3.I used a random 32 bit string character for App Key ...

Expected behavior

Having the Pre-flight

Screenshots

Untitled

Snipe-IT Version

5.3.8

Operating System

Not sure

Web Server

Not sure

PHP Version

5.3.8

Operating System

No response

Browser

Chrome

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

flawzies commented 2 years ago

Your web server should point to the .\snipe-it\public folder. You are probably pointing to the root snipe-it folder. This change isn't made in the env file, but rather the IIS configuration, for example.

Reza-pro20 commented 2 years ago

Thanks for your reply, but how should I do that? is there any documentation regarding that? After contacting our hosting support they mentioned maybe I can do it by using this guide, but I'm not sure if it's applicable for SnipeIT or not: https://github.com/hannanstd/change-laravel-public

GitHub
GitHub - hannanstd/change-laravel-public: change laravel public folder tutorial
change laravel public folder tutorial. Contribute to hannanstd/change-laravel-public development by creating an account on GitHub.
snipe commented 2 years ago

The repo above isn't really applicable, and it's not a code or Snipe-IT level issue. It's a server-based setting, where you need to tell the hosting provider to set the web document root to the public directory.