laravelプロジェクトを新しいサーバーに移動しようとしています。新しいサーバーに移動する前に、私はlocalhostでそれをテストしています。 私はこのようなエラーを取得しています:file_put_contents(/megashopping_dk_files/storage/framework/views/d2f79fe2bf4361439b4c43509087ad6167dfffd9.php): failed to open stream: No such file or directory
Laravelを別のサーバーに移動するエラー
config.phpファイルの元のパスがいた私はすでにフォルダcache
sessions
とviews
内のすべてのファイルを削除した私は 0 => '/megashopping_dk_files/resources/views',
に変更されている 0 => '/var/zpanel/hostdata/zadmin/public_html/megashopping_dk_files/resources/views',
in storage/framework
もう一度、このようなファイル構造を持つ2つのルートフォルダがあります。
1st root Folder - megashopping_dk
backend
compaign
css
fonts
img
js
library
....
2nd Root Folder - megashopping_dk_files
app
bootstrap
config
database
public
resources
storage
....
最初のルートフォルダの の内容はルート になり、2番目のルートフォルダの内容はそのフォルダに含まれているはずです。
正しいパスを教えてください。
'storage/framework'ディレクトリに権限がありません。 '755'パーミッションを与えてみてください。 – PaladiN
私はWindows Wampサーバー上でそれを試しています。それは必要ですか?そしてあなたはそれをワンプでどうやってやりますか? – Pawan
これら3つのフォルダを作成することができます:https://github.com/laravel/laravel/tree/master/storage/framework – PaladiN