V3 install "failed to open stream: Permission denied" error
Expected Behavior (or desired behavior if a feature request)
(what you expect to happen goes here)
Actual Behavior
(what actually happens goes here)
Please confirm you have done the following before posting your bug report:
- [x] I have enabled debug mode
- [x] 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 -V3
-
What OS and web server you're running Snipe-IT on -Linux 7
- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) -install.sh
-
If you're getting an error in your browser, include that error -Whoops, looks like something went wrong.
-
What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error -php composer.phar install --no-dev --prefer-source
-
If a stacktrace is provided in the error, include that too. - [ErrorException] file_put_contents(/var/www/html/snipeit/vendor/composer/installed.json): failed to open stream: Permission denied
-
Any errors that appear in your browser's error console. -Whoops, looks like something went wrong.
-
Confirm whether the error is reproduceable on the demo. no
-
Include any additional information you can find in
app/storage/logsand your webserver's logs. -
Include what you've done so far in the installation, and if you got any error messages along the way. snipeit]$ php composer.phar install --no-dev --prefer-source Loading composer repositories with package information Installing dependencies from lock file Nothing to install or update
[ErrorException] file_put_contents(/var/www/html/snipeit/vendor/composer/installed.json): failed to open stream: Permission denied
-
Indicate whether or not you've manually edited any data directly in the database no
Hi,
I got this error during installation. After running "install.sh" I follow the steps on "https://snipe-it.readme.io/docs/configuration" edited .env file then download composer as normal user(not webserver user) and run the command "php composer.phar install --no-dev --prefer-source" then I got permission issue pop up. I've already checked snipeit(root of snipeit) folder owner is apache and also app folder. Can you please help me with this issue?
delete wrong variables in the script, work perfect then correct it afterwards.