パケージ版を利用しています。
レンタルサーバーはCORESERVERを利用し、PHPのバージョンは7.4です。
sshで接続しphp bin/console cache:clear --no-warmup
などのコマンドを実行すると.envファイルを
APP_ENV=prod
APP_DEBUG=0
にしていると
Symfony 4.4.36 (env: prod, debug: false) Usage: command [options] [arguments] Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -e, --env=ENV The Environment name. [default: "prod"] --no-debug Switches off debug mode. -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Available commands: about Display information about the current project help Display help for a command list List commands assets assets:install Install bundle's web assets under a public directory cache cache:clear Clear the cache ・ ・ ・
と表示され
APP_ENV=dev
APP_DEBUG=1
にしていると
Symfony 4.4.36 (env: dev, debug: true) Usage: command [options] [arguments] Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -e, --env=ENV The Environment name. [default: "dev"] --no-debug Switches off debug mode. -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Status: 500 Internal Server Error Content-Type: text/html; charset=UTF-8 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="robots" content="noindex,nofollow,noarchive" /> <title>An Error Occurred: Internal Server Error</title> <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; } .container { margin: 30px; max-width: 600px; } h1 { color: #dc3545; font-size: 24px; } h2 { font-size: 18px; }</style> </head> <body> <div class="container"> <h1>Oops! An Error Occurred</h1> <h2>The server returned a "500 Internal Server Error".</h2> <p> Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. </p> </div> </body> </html>
と表示されます。
コマンドを使うには別途設定や別ファイルが必要なのでしょうか?
ご教授いただければ幸いです。
よろしくお願いいたします。
【追記】
EC-CUBEの開発コミュニティにも同様の質問をしています。
解決につながる回答が得られませんでしたので、回答率の高いとされるこちらでも質問と投稿させていただきました。
PHPエラーログを表示するようサーバーを設定しましたが、反映がまだなのかエラーメッセージは表示されていません。
EC-CUBEはインストールした状態でプラグイン追加やカスタマイズはしていません。
サイト自体は正常に動いています。
あなたの回答
tips
プレビュー