fecshop 怎么部署到线上啊? lnmp环境

文档问题 · shiyongzhe88 · 于 6年前 发布 · 2817 次阅读

fecshop 怎么部署到线上啊?

共收到 28 条回复
Fecmall#26年前 0 个赞

如果还看不懂,就看视频

访问出现 Forbidden You don't have permission to access / on this server.

Fecmall#46年前 0 个赞

@shiyongzhe88 #3楼 是严格按照配置文档操作的吗?

http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-config.html

你看看每一步的执行是否成功,别粘贴执行了不看执行的log,无脑粘贴执行就不管了。

另外你给的信息太少,我无法给你诊断问题所在。请给与更多的信息。

fecshoper#56年前 1 个赞
server {
    listen       80;
    #server_name ;
    index        index.html index.htm index.php;
    root         /var;
    error_log    /var/log/nginx/var.error.log;
    access_log   /var/log/nginx/var.access.log;

    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        try_files      $uri = 404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass   unix:/run/php/php7.0-fpm.sock;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}

fecshop 安装的前提是不是redis mongodb 都要安装和配置好?

7楼 已删除.

@Terry #4楼 fecshop 安装的前提是不是redis mongodb 都要安装和配置好?

Fecmall#96年前 0 个赞

@shiyongzhe88 #8楼 在linux安装教程中,涉及到的安装的php,php的扩展,redis,mongodb,mysql,nginx,等安装好即可。

在windows mac linux下面安装都是可以的

不过对于后台的脚本,目前只写了linux下执行的shell命令行脚本,其他的操作系统没有写,自己需要自己调整了。

还是建议用linux,我目前的开发测试都是在linux 下面进行的

@Terry #9楼 terry 不好意思又来打扰你 项目服务器上面安装好了 但是只有商城首页显示 点了商品单品就找不到页面 是不是我哪里设置 不和规范能否指点下 您的安装视频看了 应该我哪些地方遗漏了没注意 还麻烦你指点下 谢谢

Fecmall#146年前 0 个赞

@Terry #14楼 收到 谢谢哈

Fecmall#166年前 1 个赞

@shiyongzhe88 #15楼 可以了? 我今天网络有问题,看不到你的截图

Fecmall#176年前 1 个赞

http://appfront.syz-max.top/index.php/customer/account/login

这个url是可以访问的

但是你的产品,加了index.php ,还是不能访问。 http://appfront.syz-max.top/index.php/alluring-long-sleeve-open-back-draped-maxi-dress-55525232

这个我还不能诊断出来是什么原因导致的

@Terry #17楼 可以了 百度了apache去除index.php处理 现在 可以了 但是后台进不去 帐号密码填进去了 就是一个空白的页面也没有报错。。。

Fecmall#196年前 0 个赞

@shiyongzhe88 #18楼 请给予详细信息

@Terry #19楼 http://appadmin.syz-max.top/fecadmin/login/index 登录后台没有报错 但是进入一个空白页面 想请教下是哪里部署出现问题了是么。。。还请terry指点

Fecmall#216年前 0 个赞

@shiyongzhe88 #20楼 然后在访问 http://appadmin.syz-max.top ,就可以访问后台了

搞不懂你的为什么没有跳转呢?

Fecmall#226年前 0 个赞

你把 vendor/fancyecommerce/fec_admin/controllers/LoginController.php 里面下面这个方法,用下面的代码替换试试

public function actionIndex()
    {
		//exit;
		$isGuest = Yii::$app->user->isGuest;
		//echo $isGuest;exit;
		if(!$isGuest){
			$this->redirect("/",200);
            return;
		}	
		$errors = '';
		$loginParam = \fec\helpers\CRequest::param('login');
		if($loginParam){
			//echo 1;exit; 
			$AdminUserLogin = new AdminUserLogin;
			$AdminUserLogin->attributes = $loginParam;
			if($AdminUserLogin->login()){
				\fecadmin\helpers\CSystemlog::saveSystemLog();
				$this->redirect("/",200)->send(); 
                return;
			}else{
				$errors = CModel::getErrorStr($AdminUserLogin->errors);
			}
		}
		$this->layout = "login.php";	
		return $this->render('index',['error' => $errors]);
	}

@Terry #22楼 terry哥 这里可以了 不是代码的问题 说出来怕你笑话 我的服务器太low 了 响应时间太慢了

Fecmall#246年前 0 个赞

@shiyongzhe88 #23楼 好的,那这样就可以了,nginx 去掉index.php 这个我把他写到安装配置文档里面。

Fecmall#256年前 0 个赞

@shiyongzhe88 #23楼 我看一下一下,还是不行,无法正常登陆,您去掉cookie试试,还是不行的,可以按照上面的代码改改试试,

不过服务器的问题,而是那个地方没有设置好,具体的登录的文件,就是我上面发的那个文件的actionIndex()方法进行的登录操作,您按照我给的方法覆盖试试,如果不行,自己解决下,我这边是可以的

@Terry #25楼 好的 谢谢terry哥

Fecmall#276年前 0 个赞

您好,apache去掉index.php的配置发个完整的,我整理到文档里面,我只有nginx的

Fecmall#286年前 0 个赞

@shiyongzhe88 #26楼 后台登录,无法跳转,按照这里调整一下就可以了:

https://github.com/fecshop/yii2_fec_admin/commit/c6cceab3b26a58ebfc38b5a12a4fdbd5203d222a

后面发布新版本会更新上去这个调整

@Terry #27楼 在论坛里面发布一个是吧? 好的 我整理下 一会发布一个

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics