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

V3 install "failed to open stream: Permission denied" error

Open ch-gz opened this issue 10 years ago • 1 comments

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:


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/logs and 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?

ch-gz avatar Aug 19 '16 21:08 ch-gz

delete wrong variables in the script, work perfect then correct it afterwards.

ch-gz avatar Sep 02 '16 14:09 ch-gz