Laravel+Vue Nginx服务器配置的常见问题总结
问题1:
Parse error: syntax error, unexpected '?' in D:Demolaravel56vendorlaravelframeworksrcIlluminateFoundationhelpers.php on line 233
解决方案:PHP的版本过低和安装的laravel56不匹配。
运行以下命令将相关PHP版本升级到7.2:
rpm -Uvh https://mirror.webtatic.com/y... #更新源 rpm -Uvh https://mirror.webtatic.com/y... yum remove php-common -y #移除系统自带的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
以上是Laravel与Vue Nginx配置的常见问题如何解决的详细内容。更多信息请关注PHP中文网其他相关文章!