Giter Site home page Giter Site logo

后台邮箱配置出问题 about tipask HOT 6 OPEN

sdfsky avatar sdfsky commented on July 20, 2024
后台邮箱配置出问题

from tipask.

Comments (6)

marryton007 avatar marryton007 commented on July 20, 2024

部署方式

version: "2"
services:
  tipask:
    image: richarvey/nginx-php-fpm:1.7.4
    container_name: tipask
    restart: always
    environment:
      - DB_HOST=db
      - DB_DATABASE=tipaskx
      - DB_USER=tipaskdb
      - DB_PASSWORD=password1
      - TZ = 'Asia/Shanghai'  
    volumes:
      - ./config:/root/.composer
      - ./tipask:/var/www/html    # clone code from github
      - ./nginx:/etc/nginx/sites-enabled
      - ./php:/usr/local/etc/php   
    ports:
      - '8008:80'
    links:
      - db    
      - xunsearch
  
  db:
    image: mysql:5.7
    container_name: tipask-db
    environment:
      - MYSQL_DATABASE=tipaskx
      - MYSQL_USER=tipaskdb
      - MYSQL_PASSWORD=password1
      - MYSQL_ROOT_PASSWORD=password1
    volumes:
      - db:/var/lib/mysql
    restart: always
    ports:
      - 3306:3306
  
  xunsearch:
    image: hightman/xunsearch
    container_name: xunsearch
    #volumes:
    #  - search:/usr/local/xunsearch/data
    restart: always
    ports:
      - 8383:8383
      - 8384:8384

volumes:
  db:

from tipask.

sdfsky avatar sdfsky commented on July 20, 2024

手动修改一下.env配置文件
MAIL_SENDMAIL=/usr/sbin/sendmail -bs
修改为
MAIL_SENDMAIL='/usr/sbin/sendmail -bs'
新版本php对env配置项读取作调整了不允许空格,下个版本处理一下。

from tipask.

marryton007 avatar marryton007 commented on July 20, 2024

奇怪,.env 没有这一项

APP_ENV=local
APP_DEBUG=true
APP_KEY=mnbl2zciiMg9qjFDaDzLAKIFUT2MR5Gv
DB_HOST=tipask-db
DB_PORT=3306
DB_DATABASE=tipaskx
DB_USERNAME=tipaskdb
DB_PASSWORD=password1
DB_PREFIX=ask_

from tipask.

sdfsky avatar sdfsky commented on July 20, 2024

如果不需要sendmail 命令行来发送邮件,先把sendmail去掉。

                         <div class="form-group sendmail @if ($errors->has('mail_sendmail')) has-error @endif">
                               <label for="mail_sendmail">SendMail命令配置</label>
                               <span class="text-muted">(设置SendMail命令配置)</span>
                               <input type="text" name="mail_sendmail" class="form-control " placeholder="/usr/sbin/sendmail -bs" value="{{ old('mail_sendmail',Setting()->get('mail_sendmail','/usr/sbin/sendmail -bs')) }}">
                               @if ($errors->has('mail_sendmail')) <p class="help-block">{{ $errors->first('mail_sendmail') }}</p> @endif
                           </div>

tipask/resources/views/admin/setting/email.blade.php 文件中去掉上面这一段代码,然后再保存。

from tipask.

marryton007 avatar marryton007 commented on July 20, 2024

我现在不用sendmail发送邮件,就是走普通的SMTP服务,前面也没选sendmail方式。注释这段代码后,问题依然存在。

from tipask.

marryton007 avatar marryton007 commented on July 20, 2024

看前面的错误提示, 在数组里插入了太多的额外的信息,下面是系统的env命令结果,已经包含在其中了,还有一些其他的信息,都不知道怎么来的?

scheme@scheme-virtual-machine:~/dock/my-tipask/tipask$ docker exec -it tipask bash
bash-4.4# env
DB_HOST=db
LUAJIT_LIB=/usr/lib
php_vars=/usr/local/etc/php/conf.d/docker-vars.ini
HOSTNAME=f4581309a5d8
TZ = 'Asia/Shanghai'
PHPIZE_DEPS=autoconf            dpkg-dev dpkg           file            g++             gcc             libc-dev              make            pkgconf                 re2c
GPG_KEYS=CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D
NGINX_VERSION=1.16.0
DB_USER=tipaskdb
LUA_MODULE_VERSION=0.10.14
PHP_EXTRA_CONFIGURE_ARGS=--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi
PHP_ASC_URL=https://www.php.net/get/php-7.3.8.tar.xz.asc/from/this/mirror
PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2
LUAJIT_INC=/usr/include/luajit-2.1
PWD=/var/www/html
HOME=/root
PHP_LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie
DB_PASSWORD=password1
php_conf=/usr/local/etc/php-fpm.conf
PHP_INI_DIR=/usr/local/etc/php
PHP_URL=https://www.php.net/get/php-7.3.8.tar.xz/from/this/mirror
PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2
TERM=xterm
PHP_VERSION=7.3.8
DEVEL_KIT_MODULE_VERSION=0.3.0
SHLVL=1
fpm_conf=/usr/local/etc/php-fpm.d/www.conf
PHP_MD5=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHP_SHA256=f6046b2ae625d8c04310bda0737ac660dc5563a8e04e8a46c1ee24ea414ad5a5
LD_PRELOAD=/usr/lib/preloadable_libiconv.so php
DB_DATABASE=tipaskx
_=/usr/bin/env
bash-4.4#

from tipask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.