前提・実現したいこと
さくらVPSへLaravelの環境構築を行い、
RLoginをつかいSFTPでローカルからプロジェクトを/var/www/html下にもってきました。
http://ipアドレス/プロジェクト名/public/を試みたところHTTP500エラーが発生しました。ログをみてみると以下の様でした。
発生している問題・エラーメッセージ
PHP Warning: file_put_contents(/var/www/laravel_fa4f8e22e874451717a9d71e8c6d63ee.zip): failed to open stream: Permission denied in /home/satoshi/.config/composer/vendor/laravel/installer/src/NewCommand.php on line 155 PHP Warning: ZipArchive::extractTo(): Permission denied in /home/satoshi/.config/composer/vendor/laravel/installer/src/NewCommand.php on line 177 PHP Warning: ZipArchive::close(): Invalid or uninitialized Zip object in /home/satoshi/.config/composer/vendor/laravel/installer/src/NewCommand.php on line 179 You should verify that the "storage" and "bootstrap/cache" directories are writable.
試したこと
chmod -R 777 storage/すると
chmod: changing permissions of 'storage/framework/views/2238cd5c53cebdd8d71bb5383bbfd7374dcf0bf3.php': Operation not permitted chmod: changing permissions of 'storage/framework/views/285b54feaf123bd4950899a151c484d4ec94226f.php': Operation not permitted
権限がなにやらおかしいようです。。
ローカルからもってきたためだと思うのですが、修正方法を教えてください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー