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

snipe-it。 已搭建完毕,但是.env文件问题

Open 57594261 opened this issue 7 years ago • 3 comments

image 报错信息:

Config File   Please make sure your .env is not readable by the outside world via web browser. You don't ever want anyone able to see that file. Ever. Ever ever. An exposed .env file can disclose sensitive data about your system and database. Click here to check now (This should return a file not found or forbidden error.)
改了.env的权限 711 700 744 611 755各种,但是还是没有用。

57594261 avatar Aug 12 '19 02:08 57594261

[root@localhost snipeit]# chown -R www:www storage public/uploads [root@localhost snipeit]# chmod -R 755 storage public/uploads

哥们,照我这个改文件夹下面的目录权限。

jacklibra avatar Aug 12 '19 07:08 jacklibra

Check your VirtualHost settings in your Apache configuration file. Check Directory and Document Root. It should direct to Public folder in your Snipe IT folder.

sid8000 avatar Aug 14 '19 07:08 sid8000

I also encountered this problem during the deployment process. Could you please tell me how you solved it?

nixueyao0216 avatar Jul 10 '25 07:07 nixueyao0216