当前位置:网站首页>Phpstudy installs Thinkphp6 (problem + solution)
Phpstudy installs Thinkphp6 (problem + solution)
2022-08-02 03:54:00 【stealth rookie】
One. Installation
Install composer in the software management interface
(I installed version 1.8.5 because the installation of 2.3.3 failed. If I can install 2.3.3, I will install 2.3.3. Because of the error reported later, I still upgraded compose)

Create a website
will generate the following in this folder(The following content needs to be removed first, and then put back after the installation is complete)
Find composer in the management, select the compose version and the php version, PHP >= 7.1.0

Enter cd ../ to return to the previous level
Then composer create-project topthink/think thinkphp
(thinkphp is the domain name of the website created by myself)
Result server composer update reported error: Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
1. The reason is that the composer version is too old
2. The solution: enter the command composer self-update


Then type cd ../ again
and composer create-project topthink/think thinkphp
The reason for the error is that the thinkphp folder is not empty, so it was mentioned earlier that the contents of the folder should be moved out

After moving out, enter composer create-project topthink/think thinkphp, and then there is no problem!!!
Domain/public
The test installation is complete (remember to move the files that were moved out and move them back!!!)

Update Thinkphp6 core (I didn't update it)
composer update topthink/framework
Note: The directory where the installation and update commands are located is different, and the update must be executed under your application root directory
2. After the installation is successful, the directory structure
- The main change in the directory structure of version 6.0 is that the core framework is included in the
vendordirectory, and then the originalapplicationdirectory becomes theappdirectory. - The directory structure after installation is a single application mode
- In the
macorlinuxenvironment, note that you need to set theruntimedirectory permission to 777
www WEB deployment directory (or subdirectory)├─app application directory│ ├─controller Controller directory│ ├─model Model catalog│ ├─ ... more class library directories│ ││ ├─common.php public function file│ └─event.php event definition file│├─config configuration directory│ ├─app.php Application configuration│ ├─cache.php cache configuration│ ├─console.php console configuration│ ├─cookie.php Cookie configuration│ ├─database.php database configuration│ ├─filesystem.php file disk configuration│ ├─lang.php Multilingual configuration│ ├─log.php log configuration│ ├─middleware.php middleware configuration│ ├─route.php URL and routing configuration│ ├─session.php Session configuration│ ├─trace.php Trace configuration│ └─view.php view configuration│├─view view directory├─route route definition directory│ ├─route.php route definition file│ └─ ...│├─public WEB directory (external access directory)│ ├─index.php entry file│ ├─router.php quick test file│ └─.htaccess for apache rewriting│├─extend extension class library directory├─The runtime directory of the runtime application (writable, customizable)├─vendor Composer class library directory├─.example.env environment variable example file├─composer.json composer definition file├─LICENSE.txt authorization description file├─README.md README file├─think command line entry file边栏推荐
猜你喜欢
随机推荐
[symfony/finder]最好用的文件操作库
vim编辑模式
Advanced gradient of skeleton effect, suitable for waiting for pictures
Baidu positioning js API
6.24今日学习
AES加密的各种蛋疼方式方式
你的本地创建的项目库还在手动创建远端代码仓库再推送吗,该用它了
由中序遍历和后序遍历得到前序遍历(树的遍历)
SQL classification, DQL (Data Query Language), and corresponding SQL query statement demonstration
Circular linked list---------Joseph problem
ES6迭代器解释举例
数组的高级操作
js takes the value of a feature at a certain position in the string, such as Huawei=> Huawei
4.PHP数组与数组排序
IP门禁:手把手教你用PHP实现一个IP防火墙
PHP8.2将会有哪些新东西?
查询数据库中所有表的索引,并且解析成sql
Living to detect the Adaptive Normalized Representation Learning for GeneralizableFace Anti - Spoofing reading notes
正则笔记(2)- 正则表达式位置匹配攻略
多线程(实现多线程、线程同步、生产者消费者)









