Home > PHP Framework > Laravel > Solutions to 2 common problems with Laravel and Vue Nginx configuration

Solutions to 2 common problems with Laravel and Vue Nginx configuration

藏色散人
Release: 2022-10-21 16:35:29
forward
1867 people have browsed it

The following column Laravel Tutorial will introduce to you two common questions about Laravel and Vue Nginx server configuration. I hope it will be helpful to you!

Solutions to 2 common problems with Laravel and Vue Nginx configuration

Summary of common problems with Laravel Vue Nginx server configuration

Question 1:

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

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版本
Copy after login

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;
Copy after login

Solution:php artisan cache:clear

Recommended: "laravel video tutorial"

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

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template