当前位置:网站首页>[php]tp6 cli mode to create tp6 and multi application configurations and common problems
[php]tp6 cli mode to create tp6 and multi application configurations and common problems
2022-06-22 06:25:00 【wyy7293】
Install the stable version from the command line ThinkPHP
composer create-project topthink/think tp
tp => Name of the project . Customizable
After creation , Configuration items Including but not limited to ( Access portal , Pseudostatic , port , domain name ), Ensure normal access to
Install the multi application mode extension
composer require topthink/think-multi-app
Delete app In the catalog controller Catalog
After multi application mode deployment , Remember to delete app In the catalog controller Catalog ( The system uses this directory as the basis for determining whether to apply a single application )
Use the command to create an application
//php think build [api] apply name
php think build index
php think build admin
php think build api
visit
http://127.0.0.1/api
Install the extension
composer require topthink/think-view
It can only be used after installation View::fetch()
Modify application configuration
config/app.php
// Default application
'default_app' => 'index',
// Application mapping ( Automatic multi application mode is effective )
'app_map' => [],
// Domain name binding ( Automatic multi application mode is effective )
'domain_bind' => [],
common problem
Use View::fetch() Report errors ( Install the extension )
- composer require topthink/think-view
mkdir(): Permission denied
- adopt
ps -ef |grep phpCommand view php Who is the executing user of ( It's usually www)- chown -R www:www /www/wwwroot/tp6
- chmod -R g+rw /www/wwwroot/tp6
边栏推荐
- MySQL-IFNULL处理N/A
- WPS文档目录更新产生的问题记录
- Dynamically create object execution methods
- BlockingQueue four sets of APIs
- 【OpenAirInterface5g】高层模块接口及itti实体线程创建
- 线程池的三大方法
- Pytest数据参数化&数据驱动
- In the PostgreSQL database, if a field is judged to exist, the update operation is performed. If it does not exist, the insert operation is performed
- 【OpenAirInterface5g】RRC NR解析之RrcSetupRequest
- Single cell thesis record (Part12) -- unsupervised spatial embedded deep representation of spatial transcriptomics
猜你喜欢

Performance comparison and analysis

Subqueries in sqlserver

leetcode每周3道(八)图之最短路

Unsafe concurrency of collection classes
![[NAND file system] UBI introduction](/img/69/7213b8b39cebc1626eb6bb8cc10d16.png)
[NAND file system] UBI introduction

h = key.hashCode()) ^ (h >>> 16) 详细解读以及为什么要将hashCode值右移16位并且与原来的hashCode值进行异或操作

C技能树评测——用户至上做精品

Using Monte Carlo method to calculate pi

What is JUC

pip升级难题(已解决)You are using pip version 19.0.3, however version 22.1.2 is available.
随机推荐
Oracle之trim,ltrim,rtrim三个函数的用法
Machine learning concept sorting (no formula)
Pyg tutorial (7): dissecting neighborhood aggregation
SQL 注入漏洞(十一)宽字节注入
Modeling and Simulation of Radar Seeker Servo System
集合类并发不安全问题
Huiding technology gr551x series development board supports openharmony
ERROR: cannot verify nih.at’s certificate, issued by “/C=US/O=Let‘s Encrypt/CN=R3”,wget报错
【5G NR】NGAP协议之NG Setup
The difference between drop, truncate and delete
postgresql数据库中根据某个字段判断存在则更新(update)操作,不存在则插入(insert)
Bathymetry along Jamaica coast based on Satellite Sounding
PyG教程(7):剖析邻域聚合
On the definition of jinja2 macro
[Key review of cloud computing]
College entrance examination is a post station on the journey of life
Empirical mode decomposition (EMD) and Hilbert Huang transform (HHT)
No business series 7: removing spots from old photos
Lock lock (key)
[5g NR] mobile phone ID number IMEI and imeisv
