Laravel 部署時發生Error
訊息如下
Warning: require(/var/www/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/blog/bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required '/var/www/blog/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/blog/bootstrap/autoload.php on line 17
通常會死在這邊最直接的原因是 composer 沒有完整安裝所照成的
請嘗試安裝composer
composer install
更新
composer update
延伸閱讀
程式系統串接ChatGPT API共需要三組金鑰,分別為Organization ID、Project ID、API Key,詳細申請步驟。
Composer 是一個套件管理工具,用途是在專案中可以透過簡易的指令將所使用的套件或程式碼庫安裝於專案內。
TLS 1.0 存在漏洞,在Acunetix 弱點掃描中如果沒有停用TLS 1.0將會被列為中度風險,以apache為例教學關閉 TLS 1.0
Slow HTTP Denial of Service Attack 是以非常緩慢的速度進行http請求,霸佔伺服器服務,達到癱瘓伺服器的目的,解決方式即是設定 Timeout
使用Composer update時出現Out of memory記憶體不足時解決方式