分类 电脑 下的文章

安装Mercury/32,通过阿里云免费邮箱账户用php mail发邮件

环境:Windows 2012, Mercury/32 Mail Transport System 4.8

过程:

1.安装欢迎界面,请点击 New installation
mercury-1.png
2.无需NetWare支持,请点击 No NetWare Support
mercury-2.png
3.安装路径,默认C:\MERCURY,请点击 OK, accept the directory
mercury-3.png
4.无需Pegasus Mail,请点击 No pegasus Mail interation
mercury-4.png
5.邮件存储路径,默认C:\MERCURY\MAIL,请点击 OK, accept this dirctory
mercury-5.png
6.协议组件,本例仅发信,所以只勾 MercuryS,请点击 OK, continue installation
mercury-6.png
7.选择SMTP Client模块,本例是用外部邮局,所以选Install MercuryC
mercury-7.png
8.这里填写基本信息,如需要连接外发的服务器地址,本例写smtp.aliyun.com,后边也可以改,请点击,OK, continue installation
mercury-20.png
9.选择SMTP relaying模式,一般选择Normal
mercury-9.png
10.设置发信队列存储目录,默认在C:\MERCURY\QUEUE,请点击 OK, continue installation
mercury-10.png
11.配置好,准备安装,请点击 Install Mercury/32
mercury-11.png
12.因为以Windows服务运行需要授权,所以本例点击 Continue
mercury-12.png
13.本例不安装其它附加功能,所以点击 Done
mercury-14.png
14.完成安装,请点击 Exit
mercury-15.png
15.点击自动创建的快捷方式来运行Mercury
mercury-16.png
16.在MercuryC SMTP Relay Client Configureation里,填写阿里云邮箱账户关键信息,如 smart host name 里填写 smtp.aliyun.com,connection port里填写465,模式选择 SSL encryption using direct connection,Login username里填写阿里云邮箱账户,Password里填写密码
mercury-23.png
17.在Mercury SMTP Server设置框里允许relay,即不勾选 Do not permit SMTP relaying of non-local mail
mercury-25.png
18.在Mercury里发测试邮件,注意from里要填写阿里云账号的地址
mercury-22.png
19.在php里用mail函数发送测试,注意from里要填写阿里云账号的地址
mercury-24.png
20.收件箱里能收到两封测试邮件
mercury-26.png

参考:

virtualmin创建magento2网站 - htaccess - 500错误 - Options FollowSymLinks - Options All not allow here

问题:将一个magento2的站点,迁移到virualmin的机子,在浏览器里访问,提示 500 internal server error 错误。

过程:

1.在virualmin面板里,查看站点错误日志,有提示相应的.htaccess文件中,不应该设置如 Options FollowSymLinks 和 Options All
virtualmin-1.png

2.在相应的.htaccess文件里,将FollowSymLinks替换为SymLinksIfOwnerMatch,适当删除Options All中的All
virtualmin-2.png

参考:https://www.virtualmin.com/node/24753

从服务器检索信息时出错 DF-CHARTA-01 - G Suite 管理员

想在 Google 商店里安装一个应用,先是在手机里点击 -> 设置 --> 系统 ---> 辅助功能 ---> GMS包安装,启用了 Google 商店。之后,找个代理,以Google账号登录,商店首页提示“从服务器检索信息时出错 DF-CHARTA-01”。

网上查到,原来这个Google账号是G Suite的成员,所以需要G Suite 管理员在管理页中,启用 Google Play 的应用。

google-play-1.png

参考:

在Mac电脑里的 Windows 10 系统 xampp 启动 mysql 失败

环境:苹果电脑里安装了Windows 10的系统,在Windows 10系统里安装的xampp

问题:通过xampp面板启动mysql失败,面板无出错信息。

过程:

  1. 点击xampp面板里的mysql日志按钮,查看
  2. 关键字 'read' returned OS error 287
  3. Google搜索后,知在my.ini配置文件的相应位置里添加一行 innodb_flush_method=normal
  4. 再次启动mysql,成功了

参考:

在Deiban 9里安装FUDforum 3.0 (PostgreSQL)

FUDforum是用PHP写的网上论坛程序,支持多种数据库。本例是在Debian 9,php7.0 和 PostgreSQL 9.6 环境里的安装实践。

过程:

  1. apt-get update # 更新软件仓库
  2. apt-get install nginx # 安装nginx,如果提示启动失败,请注释掉默认站点监听ipv6的配置行
  3. apt-get install php7.0-fpm php7.0-pgsql php7.0-mbstring php7.0-pspell # 安装php7.0及相应组件
  4. /etc/nginx/sites-enabled/default # 修改默认站点的配置内容,如添加php支持,增加SSL访问等,本例部分内容如下:

         # pass PHP scripts to FastCGI server
         #
         location ~ \.php$ {
                 include snippets/fastcgi-php.conf;
         #
         #       # With php-fpm (or other unix sockets):
                 fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
         #       # With php-cgi (or other tcp sockets):
         #       fastcgi_pass 127.0.0.1:9000;
         }
  5. apt-get install postgresql postgresql-client # 安装PostgreSQL服务端及客户端
  6. su postgres # 从当前root用户切换到postgres用户
  7. psql # 登录到PostgreSQL控制台
  8. 在控制台执行以下命令,创建 fuduser 用户,创建 fuddb 数据库,且授予fuduser用户管理fuddb数据库

    CREATE USER fuduser WITH PASSWORD 'aqtest888';
    CREATE DATABASE fuddb OWNER fuduser;
    GRANT ALL PRIVILEGES ON DATABASE fuddb to fuduser;
  9. 下载好FUDforum安装包,本例解压到/var/www/html的路径,且创建好/var/www/FUDforum的目录存储论坛的缓存等文件,并设置好权限
  10. 在浏览器里访问 install.php,开始安装
  11. 检测安装环境
  12. 安装第一步,检测访问网址和存储路径
  13. 安装第二步,填写数据库访问信息
  14. 安装第三步,设置cookies域名,不过这里出现了数据库查询失败的警告
  15. 安装第四步,设置论坛主题和显示语言,这里选择了默认的主题和简体中文的语言
  16. 安装第五步,设置论坛管理员用户名,密码和邮箱地址
  17. 删除网站目录里的 install.php , uninstall.php, upgrade.php 和 fudforum_archive 文件,完成安装
  18. 论坛前、后台浏览,内容显示正常

参考: