当前位置:网站首页>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.phpSecond, 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
边栏推荐
- [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
- gstreamer 记录
- 使用JS实现数组扁平化的几种方式
- 全文翻译:EDPB关于VVA(虚拟语音助理)中处理个人数据的指南02/2021
- typescript90-使用类型文件声明类型
- 程序员的日常生活 | 每日趣闻
- How SEMRush finds keywords for advertising
- 史上最猛“员工”,疯狂吐槽亿万富翁老板小扎:那么有钱,还总穿着同样的衣服!
- Wireshark packet capture tool
- Image denoising based on edge enhancement Diffusion 】 (cEED) and Coherence Enhancing coursing together (cCED) filter to realize image denoising matlab code
猜你喜欢

Using ngrok on Raspberry Pi (Extra 2)

解决有路由策略的情况下域内NAT不通的问题

德语翻译-德语在线批量翻译软件

eladmin容器部署超详细过程

力扣刷题记录10.1-----19. 删除链表的倒数第 N 个结点
![class path resource [bean.xml] cannot be opened because it does not 错误解决方案](/img/e2/6430a511998944a3357984b554b00c.png)
class path resource [bean.xml] cannot be opened because it does not 错误解决方案

力扣刷题记录7.1-----707. 设计链表

SEMRush如何寻找关键词用于投放广告

LeetCode每日两题02:第一个错误的版本 (均1200道)方法:二分查找

右键新建缺少word、excel选项问题处理
随机推荐
Z-Game on grid(牛客多校赛)
德语翻译器在线翻译中文
力扣刷题记录--常用功能函数
When the centralized platform is gone, everything derived from this platform will be in vain
史上最猛“员工”,疯狂吐槽亿万富翁老板小扎:那么有钱,还总穿着同样的衣服!
Go-11-流程控制
力扣刷题记录6.1-----203. 移除链表元素
qps tps rps 区别
JDBC technology (3) - use Druid database connection pool test
最新豆瓣top250爬虫案例代码分析[注释齐全]
考研人总结的时间管理7大忌,你中了几条?
深度学习模型的两种部署:ONNX与Caffe
如何在EasyDSS中使用ffmpeg实现点播视频的拼接与合成?
配置文件的读取-TOML
日文翻译-在线免费日文翻译软件
ROS2 ERROR: OpenGL 1.5 is not supported in GLRenderSystem::initialiseContext at C:\ci\ws\build...
LeetCode每日两题02:第一个错误的版本 (均1200道)方法:二分查找
Cmake 报错 Could not find a package configuration file provided by “OpenCV“
谷歌翻译软件-免费谷歌翻译
Introduction to LVGL (based on v8.1-8.2)