Home  >  Article  >  Backend Development  >  Solution to caching first when deploying TP to Linux server

Solution to caching first when deploying TP to Linux server

零到壹度
零到壹度Original
2018-03-29 15:55:231642browse

This article mainly shares a solution for caching when deploying TP to a Linux server. It has a good reference value and I hope it will be helpful to everyone. Let’s follow the editor and take a look.

When deploying thinkPHP to a Linux server, there is a caching problem


When you don’t $this-> ;display(), there is no problem when only the echo character is used;

But your display tp needs to write cached data, but the folder you upload to the server does not have writing permissions

As shown below:


So you need to give permissions to the Home directory: chmod -R 777 Home


This will solve it

Related recommendations:

Caching problem in Thinkphp deployment mode

Solution to the overflow cache problem when the ThinkPHP framework is running in the linux server nginx environment

hinkPHP Problems encountered when uploading projects to Linux servers

The above is the detailed content of Solution to caching first when deploying TP to Linux server. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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