🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# phpStudy下安装 ## 安装phpStudy 下载地址:<https://www.xp.cn/download.html> ## 部署流程 第一步启动apache、mysql服务,然后去到网站菜单新建网站保存即可。 ![](https://img.kancloud.cn/64/7c/647c6d2dd5660c122098fd6449326fb5_800x630.png) \*\*根目录选择到public目录下。\*\* ![](https://img.kancloud.cn/a4/b8/a4b88cc1c7eab362fc0b4358fe21825c_787x620.png) ## 常见问题 - 1. 默认创建网站后,如果没有填写伪静态,会覆盖默认的伪静态。文件路径为`public`下的`.htaccess`文件,导致异常。可复制以下代码到`.htaccess`文件。 ``` <pre class="calibre20">``` <span class="token"><</span>IfModule mod_rewrite<span class="token1">.</span>c<span class="token">></span> Options <span class="token">+</span>FollowSymlinks <span class="token">-</span>Multiviews RewriteEngine On RewriteCond <span class="token">%</span><span class="token1">{</span>REQUEST_FILENAME<span class="token1">}</span> <span class="token">!</span><span class="token">-</span>d RewriteCond <span class="token">%</span><span class="token1">{</span>REQUEST_FILENAME<span class="token1">}</span> <span class="token">!</span><span class="token">-</span>f RewriteRule <span class="token">^</span><span class="token1">(</span><span class="token1">.</span><span class="token">*</span><span class="token1">)</span>$ index<span class="token1">.</span>php <span class="token1">[</span>L<span class="token1">,</span>E<span class="token">=</span>PATH_INFO<span class="token1">:</span>$<span class="token3">1</span><span class="token1">]</span> <span class="token"><</span><span class="token">/</span>IfModule<span class="token">></span> ``` ```