Home  >  Article  >  Operation and Maintenance  >  How to solve common problems with Laravel and Vue Nginx configuration

How to solve common problems with Laravel and Vue Nginx configuration

王林
王林forward
2023-05-11 15:25:14745browse

Summary of common problems in Laravel Vue Nginx server configuration

Problem 1:

Parse error: syntax error, unexpected '?' in D:Demolaravel56vendorlaravelframeworksrcIlluminateFoundationhelpers.php on line 233

Solution Solution: The version of PHP is too low and does not match the installed laravel56.

Run the following command to upgrade the relevant PHP version to 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版本

Question 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;

Solution:php artisan cache:clear

The above is the detailed content of How to solve common problems with Laravel and Vue Nginx configuration. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete