代码拉取完成,页面将自动刷新
1.php.ini开启intl.ddl
2.导入pdm/common_base_table.sql
3.配置图片上传路径app_image/uploads下面
4.初始化配置文件:win下执行init,linux下执行php init
5.apache配置rewrite规则,如:
# yyl be
<VirtualHost *:80>
ServerName be-yyl.tunnel.echomod.cn
DocumentRoot F:\xampp\htdocs\SC\sc_yyl\backend\web
<Directory "F:\xampp\htdocs\SC\sc_yyl\backend\web">
Require all granted
Allow from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
</Directory>
</VirtualHost>
6.nginx配置:
server
{
listen 80;
#listen [::]:80;
server_name fe-api.otmk.club ;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/ds-dance.otmk.club/frontend/web;
include other.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location / {
# Redirect everything that isn't a real file to index.php
if (!-e $request_filename){
rewrite ^/(.*) /index.php last;
}
try_files $uri $uri/ /index.php?$args;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/fe-ds.otmk.club.log;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。