fileinfo
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_openssl.dll
同时关闭防跨站攻击(open_basedir)
提示:访问不了请在线检测环境:域名/install/requirements.php 安装过程中请牢记您的账号密码!
删除 /public/data/install.lock 文件、/public/data/initdata.lock
[APACHE]
<IfModule mod_rewrite.c>
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
</IfModule>
[Nginx]
location /admin {
try_files $uri $uri/ /admin/index.php$is_args$args;
}
location /home {
try_files $uri $uri/ /home/index.php$is_args$args;
}
location /mob {
try_files $uri $uri/ /mob/index.php$is_args$args;
}
location /install {
try_files $uri $uri/ /install/index.php$is_args$args;
}
location /api {
try_files $uri $uri/ /api/index.php$is_args$args;
}
location /h5 {
try_files $uri $uri/ /h5/index.html;
}
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
[IIS]
<rewrite>
<rules>
<rule name="rewrite_admin_rewrite" stopProcessing="true">
<match url="admin/?(.*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
</conditions>
<action type="Rewrite" url="admin/index.php" appendQueryString="true"/>
</rule>
<rule name="rewrite_home_rewrite" stopProcessing="true">
<match url="home/?(.*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
</conditions>
<action type="Rewrite" url="home/index.php" appendQueryString="true"/>
</rule>
<rule name="rewrite_mob_rewrite" stopProcessing="true">
<match url="mob/?(.*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
</conditions>
<action type="Rewrite" url="mob/index.php" appendQueryString="true"/>
</rule>
<rule name="rewrite_install_rewrite" stopProcessing="true">
<match url="install/?(.*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
</conditions>
<action type="Rewrite" url="install/index.php" appendQueryString="true"/>
</rule>
<rule name="rewrite_install_rewrite" stopProcessing="true">
<match url="api/?(.*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
</conditions>
<action type="Rewrite" url="api/index.php" appendQueryString="true"/>
</rule>
<rule name="rewrite_h5_rewrite" stopProcessing="true">
<match url="h5/?(.*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
</conditions>
<action type="Rewrite" url="h5/index.html" appendQueryString="true"/>
</rule>
<rule name="rewrite_rewrite" stopProcessing="true">
<match url="." ignoreCase="false"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php" appendQueryString="true"/>
</rule>
</rules>
</rewrite>
系统安装时报 Warning:require():open_baseDir restriction in effect....
答:进入php.ini搜索“open_baseDir”, 设置为正确的值,如:open_baseDir=/www/wwwroot/站点根目录/:/tmp/, 或者通过站点设置【如宝塔面板】的网站目录,取消勾选【防跨站攻击(open_basedir)】
系统安装时报404错误
答:请参照【URL重写】配置好伪静态规则,如是商业版,请使用源码包根目录下的伪静态规则文件
vscode 执行 npm i 时终端报错:无法加载文件 D:\nodejs\npm.ps1
答:1) 在终端输入指令:Set-ExecutionPolicy -Scope CurrentUser 2) 根据提示后输入:RemoteSigned
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )