How to solve common problems with Laravel and Vue Nginx configuration

王林
Release: 2023-05-11 15:25:14
forward
781 people have browsed it

Summary of common problems in Laravel Vue Nginx server configuration

Problem 1:

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

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版本
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

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!

Related labels:
source:yisu.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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!