laravel+vue nginx服務(wù)器配置的常見問題總結(jié)
問題1:
Parse?error:?syntax?error,?unexpected?'?'?in?D:Demolaravel56vendorlaravelframeworksrcIlluminateFoundationhelpers.php?on?line?233
解決方案:PHP的版本過低和安裝的laravel56不匹配。
運行以下命令將相關(guān)PHP版本升級到7.2:
立即學(xué)習(xí)“前端免費學(xué)習(xí)筆記(深入)”;
rpm?-Uvh?https://mirror.webtatic.com/y...?#更新源 rpm?-Uvh?https://mirror.webtatic.com/y... yum?remove?php-common?-y?#移除系統(tǒng)自帶的php-common yum?install?-y?php72w?php72w-opcache?php72w-xml?php72w-mcrypt?php72w-gd?php72w-devel?php72w-mysql?php72w-intl?php72w-mbstring?#安裝依賴包 php?-v?查看php版本
問題2:
file_put_contents(/www/wwwroot/BFERP/storage/framework/cache/data/b1/74/b174398831c15a6e1ed7c7e7873a44ebc1bdb6b2):?failed?to?open?stream:?No?such?file?or?directory file_put_contents?()?錯誤,failed?to?open?stream:?No?such?file?or?directory;
解決方法:php artisan cache:clear
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END