Blogger Information
Blog 94
fans 0
comment 0
visits 92723
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
【Thinkphp】Thinkphp 安装及配置
可乐随笔
Original
1466 people have browsed it

Thinkphp 安装及配置

1.Thinkphp 安装

1.1 安装composer

下载composer

https://getcomposer.org/Composer-Setup.exe

配置国内镜像:

打开命令行窗口(windows用户)或控制台(Linux、Mac 用户)并执行如下命令:

阿里云:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
华为云:
composer config -g repo.packagist composer https://repo.huaweicloud.com/repository/

1.2 安装 Thinkphp

命令窗口执行:

composer create-project topthink/think tp

1.3 入口文件

入口文件定义

默认的应用入口文件位于public/index.php

2. 配置Thinkphp

2.1 APP.PHP 配置

显示错误信息
‘show_error_msg’   => true,
其他配置见文件

2.2 数据库配置

见/config/database.php

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post