Home > php教程 > php手册 > body text

The Think PHP project is deployed on Alibaba Cloud's virtual host

WBOY
Release: 2016-12-05 13:26:28
Original
1202 people have browsed it

After purchasing Wanwang’s virtual host, I finally converted a previous project into a PHP project today. I used the TP framework. Alibaba’s virtual host is very easy to use. After importing the database, I used FTP to download the program. Upload the file to the server, Alibaba's virtual host (Linux host), click Run and the first time it appears:

require PHP > 5.3.0 !

Obviously the PHP version is too low. You can choose the PHP version on the host. Directly select the highest PHP version 5.5, run it, OK!

The imaginary page data is out!

But some files cannot be accessed, and this appears:

  1. Failed to load module: Public

After carefully studying the reason, it turns out that it is a problem with the case of the file path. My original development environment was windows, with upper and lower case. This must be in the same caseotherwise it will not work no matter how you change it,

There is a setting to ignore case in TP's documentation, but it doesn't seem to work after trying it again!

2.Verification code cannot be displayed

Access the verification code path separately to display the content. You can put it in the src of the IMG tag but the image will not be displayed.

The process is ignored, the final solution:

Put in the entry file:

define('APP_DEBUG',True);

Change True of

to False, final effect:

define('APP_DEBUG',False);

Refresh the page after making changes, OK, all problems are solved!

In short, this is my first time using the Think PHP framework. Due to the domestic framework, the documentation is very good, and with Du Niang’s help, it is easy to learn and get started! Highly recommended!

source:php.cn
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template