异次元发卡服务器环境要求
1、liunx皆可,推荐debian12.0>centos7.9/7,6
2、php8.0【必须】
3、mysql5.7=8.0,不建议5.6
4、其余没要求
异次元发卡安装教程
0、拥有一台2核2G服务器(最低)
1,创建站点,输入域名。php版本选择8.0
2,删除站点目录下的默认文件
3,上传程序压缩包到站点目录,然后把压缩包解压在当前目录
4,【无需】设置网站运行目录为public,设置完后点保存
5,设置伪静态后保存。如何配置伪静态?
Apache伪静态规则:无需配置,规则就是程序根目录的.htaccess文件
下面是Nginx伪静态规则:
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
Windows IIS服务器环境,可以使用下面伪静态规则:
<rules>
<rule name="acg_rewrite" stopProcessing="true">
<match url="^(.*)$"/>
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$"/>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php?s={R:1}"/>
</rule>
</rules>
6,创建数据库,utf8mb4格式,导入mysql.zip演示文件。
7,修改 /config/database.php文件内数据库名、用户名、密码为你自己的
8,设置SSL证书。建议设置为通配符,否则分站功能无法使用
9,访问域名,即可看到效果https://域名
安装完成后的默认后台入口是 https://域名/admin
下载地址:https://whpx8.lanzoul.com/i1KT32pg8sxi
THE END
