【安装教程】2023年全新算命付费测算网站源码星座运势塔罗牌牛年运程宝宝起名姻缘
这套代码安装很复杂,需要按照步骤进行。先去https://myppt.top/goods-119.html购买源码,假设管理后台域名demo1.com,测试页面域名demo2.com
第一步:
配置nginx.conf如下
server {
listen 80;
server_name demo1.com;
root /etc/nginx/html/demo1;
index index.php;
access_log /data1/www/logs/demo1.com-access.log main;
error_log /data1/www/logs/demo1.com-error.log;
location ~ \.php$ {
fastcgi_pass php56:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name demo2.com;
root /etc/nginx/html/demo1/ffsm;
index index.php;
access_log /data1/www/logs/demo1.com-access.log main;
error_log /data1/www/logs/demo1.com-error.log;
include /etc/nginx/rewrite.nginx.conf;
location ~ \.php$ {
fastcgi_pass php56:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
第二步:
修改config/inc_config.php文件
第22行,修改成测试页面域名,如 http://demo2.com/
第65行,修改mysql连接配置。
$GLOBALS['config']['db'] = array( 'host' => array( 'master' => 'mysql', 'slave' => array('mysql') ), 'user' => 'root', 'pass' => 'root', 'name' => 'demo1', 'charset' => 'utf-8', );
第三步:
使用数据库操作软件如phpmyadmin导入1.sql文件。
第四步:
访问http://demo1.com/acs/?ct=index&ac=index 账号admin 密码123456