当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Bugs encountered in remote control projects
ONNX是什么?怎么用?[简明解读版]
KQL和Lucene的区别
【图像增强】基于Step和Polynomial 滤波实现图像增强附matlab代码
How SEMRush finds keywords for advertising
【物理应用】基于El-centro地震波作用下隔震与非隔震支座下的顶层位移、速度、加速度的对比情况附matlab代码
Using ngrok on Raspberry Pi (Extra 2)
Go-12-结构体
mysql连接超过八小时报错
面试秘籍 | 软件测试必备的mysql数据库技术
【信号去噪】基于Sage-Husa自适应卡尔曼滤波器实现海浪磁场噪声抑制及海浪磁场噪声的产生附matlab代码
Observer pattern
The 7 taboos of time management summarized by the postgraduate students, how many have you won?
Image denoising based on edge enhancement Diffusion 】 (cEED) and Coherence Enhancing coursing together (cCED) filter to realize image denoising matlab code
HCIP-R&S By Wakin自用笔记(2)OSPF之OSPF回顾、虚连接
谷歌翻译软件-免费谷歌翻译
ICMP差错报告报文数据字段
字节输入流(InputStream)与字节输出流(OutputStream)
力扣刷题记录4.1-----209. 长度最小的子数组
mysql 5.7 入坑