![](/img/trans.png)
[英]fsockopen() error 500 when I try to access my Symfony app after deployment to Ubuntu VPS
[英]Symfony, I have an error 500 when I put my site into production on the host 1and1
我正在將我的 Symfony 5 站點的第一個版本投入生產,但出現錯誤500 。 我在 /public 中放置了一個.htaccess
文件。 我在主機 1&1 上。 對於我的.htaccess
文件,我選擇了這個: https : //github.com/symfony/symfony-standard/blob/3.3/web/.htaccess
這是我在日志文件的最后幾行中的內容:
[2020-03-17T23:16:12.375704+01:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-03-18T00:23:05.456699+01:00] console.ERROR: Error thrown while running command "assets:install web". Message: "The target directory "web" does not exist." {"exception":"[object] (Symfony\\Component\\Console\\Exception\\InvalidArgumentException(code: 0): The target directory \"web\" does not exist. at C:\\xampp\\htdocs\\waloude\\vendor\\symfony\\framework-bundle\\Command\\AssetsInstallCommand.php:108)","command":"assets:install web","message":"The target directory \"web\" does not exist."} []
[2020-03-18T00:23:05.484563+01:00] console.DEBUG: Command "assets:install web" exited with code "1" {"command":"assets:install web","code":1} []
感謝您的幫助
錯誤消息說您無法運行命令 assets:install web,因為文件夾 web 不存在。 創造了它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.