当前位置:网站首页>How to install yii2
How to install yii2
2022-08-09 02:02:00 【Robin Luo Bing】
Environment: win10, phpstudy8.1.1.2, yii2
First, use apche, mysql pseudo-static settings
phpstudy: website->corresponding website->modification->pseudo-static Add the following code
Options +FollowSymLinksIndexIgnore */*RewriteEngine on# if a directory or a file exists, use it directlyRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d# otherwise forward it to index.phpRewriteRule.index.php
Second, use ngix, mysql pseudo-static settings
phpstudy: website->corresponding website->modification->pseudo-static Add the following code
location / {# Redirect everything that isn't a real file to index.phptry_files $uri $uri/ /index.php$is_args$args;}
The above method was successfully tested on the win10 home Chinese version of the notebook, but it did not succeed in the same environment as the desktop computer, and the prompt failed opend required.Is it because the win10 professional version of the desktop is a simplified version when the ghost is installed? I didn't find any answer on the Internet
Fourth, the following error message (it's not a problem of setting the environment, but there is really no file in the vendor folder, which makes me look for it. That is to say, when a certain idea can't find the answer on the Internet, I need to change my ideaThe answer is generally found on the Internet):
Warning: require(D:\wwwroot\www.a11.cc\web/../vendor/autoload.php): failed to open stream: No such file or directory in D:\wwwroot\www.a11.cc\web\index.php on line 7
Fatal error: require(): Failed opening required 'D:\wwwroot\www.a11.cc\web/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\wwwroot\www.a11.cc\web\index.php on line 7
边栏推荐
猜你喜欢
The 7 taboos of time management summarized by the postgraduate students, how many have you won?
解决有路由策略的情况下域内NAT不通的问题
Qt中QFile、QByteArray QDataStream和QTextStream区别
力扣刷题记录4.1-----209. 长度最小的子数组
如何在群晖系统中安装cpolar(群晖6.X版)
425 Can‘t open data connection for transfer of “/“
任务五 处理连续型数据
全文翻译:EDPB关于VVA(虚拟语音助理)中处理个人数据的指南02/2021
Grid布局介绍
虹科技术|如何阻止供应链攻击?
随机推荐
等到中心化的平台不再,衍生于这个平台的一切都将化作泡影
[Signal denoising] Based on Sage-Husa adaptive Kalman filter to realize the suppression of ocean wave magnetic field noise and the generation of ocean wave magnetic field noise with matlab code
OpenMLDB + Jupyter Notebook:快速搭建机器学习应用
yii2的安装之路
电磁辐射安全标准及检测方法
德语翻译器在线翻译中文
String compression
Codeforces Round #809 (Div. 2)A~D1
d初化模板构造器
Introduction to LVGL (based on v8.1-8.2)
力扣刷题记录3.1-----977. 有序数组的平方
软件测试技术之如何编写测试用例(5)
How to install ngrok in Synology system (Synology 6.X version)
谷歌翻译下载-免费谷歌翻译软件下载
全文翻译:欧盟第29条数据保护工作组 数据保护官指南
JDBC technology (2) - set up common sql and configuration files
New Swagger3.0 tutorial, OAS3 quick configuration guide, to automate API interface documentation!
Bugs encountered in remote control projects
HNUMSC-C语言第一课
力扣刷题记录2.1-----27. 移除元素