session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)

phpmyadmin允许提示错误:

Error during session start; please check your and/or webserver log file and configure your installation properly. Also ensure that cookies are enabled in your browser.

session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)
这是session存储目录没有执行权限。

方法和我之前提到的phpMyAdmin – Error Cannot start session一样。

打开php.ini,增加:

session.save_path = "/var/lib//session"

然后在给予目录:/var/lib/php/session" 执行权限。

Windows 10 IIS安装php manager和IIS URL Rewrite 2.0组件的方法

Windows 10中自带的Server:Microsoft-/10.0(使用Microsoft Web Platform Installer安装),然后这个10却让原本支持组件无法安装了, manager组件安装时提示“必须安装IIS7以上才可以安装”。那是不是真的就没法在新的IIS上安装了呢?显然不是的。自IIS7以来,微软的IIS更改并不大,架构一致,几乎所有IIS7能用的组件都能够在IIS7.7/8/8.5/10上安装。微软脑子秀逗,跳过了9,以为能解决版本识别的问题,没想到弄成10,还是出现了版本识别的问题,真是自己打自己的脸啊!

继续阅读“Windows 10 IIS安装php manager和IIS URL Rewrite 2.0组件的方法”

Plugin ‘FEEDBACK’ is disabled

MySQL低版本升级高版本一般会出现Plugin 'FEEDBACK' is disabled这个错误,通常还伴随The InnoDB memory heap is disabled问题一起出现。

如果是The memory heap is disabled错误可以在[mysqld]下方增加"_use_sys_malloc = 1",即使用系统自动分配内存。而Plugin 'FEEDBACK' is disabled只需要在[mysqld]下方增加“feedback=ON”即可开启。

参考MariaDB提供的文档:Feedback Plugin

Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler

mysql迁移至mariadb的时候出现:

Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler

解决办法:

停止MySQL,备份

service mysqld stop
\cp -a /var/lib// /var/lib/mysqlback

移除旧mysql,初始化mysql

继续阅读“Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler”

Windows,Apache 2.4.12,PHP-5.6.10-nts-Win32-VC11-x86,Zend Guard Loader

Windows下载的Zend Loader目前只支持PHP的NTS模式,apache需要加载mod_fcgid使用FastCGI运行PHP。介绍个来自Zend官方的apache + -nts + + mod_fcgid。

Zend官网下载:http://eu-up.zend.com/files/srv.exe
百度云盘:http://pan.baidu.com/s/1bp7iClL 密码: kyva
参考文档:Howto: Setting Up Apache, PHP (NTS) and Guard 7 Loader on Windows

需要注意的是zend官方的srv.exe里面php关于opcache与Zend Guard Loader的配置顺序和官方的Installing Zend Guard Loader居然是相反的(参考文章:Zend Guard Loader与Zend OPcache之间的顺序问题),不知道什么原因,但是srv.exe的配置方法也是生效的。

InnoDB: If you are attempting downgrade from MySQL 5.7.9 or later

: If you are attempting downgrade from 5.7.9 or later

这是一个版本问题,之前安装过mysql 5.7,再回到mariadb 5.5出现的问题。之后我搜了下网上很多人有这个问题。错误全文:

160916 17:03:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/
2016-09-16 17:03:22 139911928530976 [Note] /usr/sbin/mysqld (mysqld 10.1.17-) starting as process 16541 ...
2016-09-16 17:03:22 139911928530976 [Note] : Using mutexes to ref count buffer pool pages
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: The InnoDB memory heap is disabled
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: Using Linux native AIO
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: Using SSE crc32 instructions
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: Completed initialization of buffer pool
2016-09-16 17:03:22 139911928530976 [Note] InnoDB: Highest supported file format is Barracuda.
InnoDB: No valid checkpoint found.
InnoDB: If you are attempting downgrade from MySQL 5.7.9 or later,
InnoDB: please refer to http://dev.mysql.com/doc/refman/5.6/en/upgrading-downgrading.html
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/error-creating-innodb.html
2016-09-16 17:03:22 139911928530976 [ERROR] Plugin 'InnoDB' init function returned error.
2016-09-16 17:03:22 139911928530976 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-09-16 17:03:22 139911928530976 [Note] Plugin 'FEEDBACK' is disabled.
2016-09-16 17:03:22 139911928530976 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-09-16 17:03:22 139911928530976 [ERROR] Aborting

160916 17:03:22 mysqld_safe mysqld from pid file /var/lib/mysql/iZ236priv51Z.pid ended

继续阅读“InnoDB: If you are attempting downgrade from MySQL 5.7.9 or later”

Zend Guard Loader与Zend OPcache之间的顺序问题

我在做LAMP环境搭建的时候都会使用Zend Gurad Loader和Zend ,特别是WordPress缓存优化后效果提升非常大。Zend Guard Loader与Zend OPcache之间的顺序问题在XCache Zend OPcache在php.ini中的顺序这篇文章有所提到,这里做一个修正:

必须先加载Zend Guard Loader,后加载Zend ,参考文档:http://files.zend.com/help/Zend-Guard/content/installing_zend_guard_loader.htm继续阅读“Zend Guard Loader与Zend OPcache之间的顺序问题”

Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

Error during session start; please check your and/or webserver log file and configure your installation properly. Also ensure that cookies are enabled in your browser.

这个错误的解决办法和Error Cannot start session的解决办法一致,只是PHPMYADMIN版本不同,提示语不同而已。

[mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process

apache的httpd重启非常大缓慢,查看apache日志发现提示:

[Sat Apr 23 07:54:26.942919 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 07:54:38.534805 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 07:54:51.164915 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 07:55:01.326120 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 07:55:11.611888 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 07:55:21.748079 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 07:55:31.904565 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:04:06.542791 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:04:19.735743 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:04:29.771527 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:04:41.467122 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:04:53.362998 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:05:39.214134 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:06:01.450646 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:06:13.206822 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:07:07.284277 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:07:22.435505 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:07:35.638026 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:07:47.571186 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:07:59.620333 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:09:35.116737 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:09:46.962955 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:09:57.504738 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:10:09.849130 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:10:20.353784 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:10:30.989057 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:10:41.458330 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:10:52.948407 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:11:04.320103 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:11:14.374090 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:13:02.921164 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:13:14.060134 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:13:24.162400 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:13:35.538524 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:13:45.944818 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:13:56.960173 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:14:07.207997 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:14:18.350277 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:14:28.503925 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:14:38.745918 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:14:49.069990 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:14:59.240770 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:15:09.994853 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:15:20.784285 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:15:31.044740 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:15:42.288655 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:15:52.972540 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:16:03.689883 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:16:13.845462 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:16:24.072143 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:16:34.715432 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:16:44.834477 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:16:55.215597 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:17:05.722457 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:17:16.188541 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:17:26.908749 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:17:37.692222 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:17:48.431861 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:17:58.602142 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:18:10.917485 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:18:21.658476 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:18:32.094039 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:18:42.587907 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:18:52.741943 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:19:03.082861 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:19:14.169032 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:21:32.900601 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:21:44.902858 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:23:35.190583 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:23:47.554272 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:23:58.156844 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:24:10.332308 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:24:22.280225 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:24:36.307383 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:24:47.765587 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:24:58.844297 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Sat Apr 23 08:25:29.932847 2016] [mpm_prefork:error] [pid 799] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process

说明内容不够,那就调大内存:

[root@iZ23rnc315tZ ~]# grep memory_limit /etc/.ini
memory_limit = 128M

默认php.ini是128M,修改为256M,然后重启apache:

[root@iZ23rnc315tZ ~]# systemctl restart httpd
[root@iZ23rnc315tZ ~]#

发现瞬间快多了,如果重启还是很慢,那么再把memory_limit调大。

“Couldn’t resolve host ‘rpms.remirepo.net'”

升级mysql-community-server的时候错误提示:

[root@iopenv ~]# yum install -community-server
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://rpms.remirepo.net/enterprise/6/56/mirror error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'rpms.remirepo.net'"
Error: Cannot find a valid baseurl for repo: remi-56

修改vi /etc/resolv.conf,修改DNS为google的即可。

options attempts:1 timeout:1 rotate
#nameserver 10.242.197.247
#nameserver 10.242.197.248
nameserver 8.8.8.8
nameserver 223.6.6.6

阿里云服务器ECS购买什么配置比较好

阿里云服务器是我推荐的比较靠谱的WordPress靠谱国内空间,但是对ECS不太熟悉的朋友不知道购买什么配置比较好,针对PHP程序我做一个推荐。

首先获得推荐码折扣

购买阿里云使用推荐码会有折扣,新用户购买是9折,如果遇上什么活动还有可能5折,已经是相当大的力度了。

选购合理的服务器配置

进入ECS开始购买服务器:

官网进入ECS
官网进入ECS

地域:如果你的网站用户是国内用户就选择深圳、杭州、北京、青岛、上海,是国外用户可以选择其他地区。

可用区:默认

实例系列:默认

I/O优化:默认

实例规格:推荐起步选择1核1G内存,如果是512MB,做好优化也可以,我们的经验WordPress做好缓存优化可以每天跑2万IP没有太大问题(可对外提供服务器搭建和优化服务)。但是为什么推荐1G内存呢,因为现在很多PHP程序使用MySQL、MariaDB对内存要求变高了,就拿utf8mb字符来说,低版本的数据库不支持,可能导致网站升级出现问题,比如说是乱码。

配置选购一
配置选购一

公网带宽:按固定带宽

带宽:2M(至少),1M比较吃力,现在网站很多HTML5、CSS3、JS特效

镜像类型:公共镜像,不要选择其他的,其他的大多是个性化配置,不标准,而且更新服务器、漏洞以及性能都不太靠谱,还是自己配置LAMP/LNMP环境比较好,这样标准,也可以针对你自己的网站来配置,提供性能和安全。

公共镜像:CentOS最高版本,没有什么好说的,PHP还是Linux下比较好。

系统盘:40GB

数据盘:可以不加,如果你的网站有很多图片可以考虑加

设置密码:创建后设置,创建后会发邮件给你,也方便保存

购买时长:1年,按月没有折扣,按年可以优惠2个月。

配置选购二
配置选购二

阿里云推荐码

购买完即可,不要忘记使用我们的阿里云推荐码:

阿里云推荐码9折怎么获取

阿里云推荐码9折怎么获取

什么是阿里云推荐码

阿里云推荐码(推荐码:7tuaku)是阿里云提供给老用户营销新用户的推荐码,新用户可以享受9折购买阿里云服务,老用户可以享受一定返利,返利金额可以兑换为代金券使用。下面将会对阿里云推荐码怎么获取以及一些使用做进一步说明。

阿里云推荐码
阿里云推荐码

网络上所称的阿里云优惠码阿里云优惠券不是官方说法,请仔细甄别。

阿里云推荐码怎么获取

已注册阿里云的用户,登录管理控制台-用户中心-费用中心-推荐码即可看到自己的推荐码:

阿里云推荐码怎么获取
阿里云推荐码怎么获取

推荐码的使用规则

  1. 适用用户:阿里云账号下无运行中的包年包月云服务器ECS、云数据库RDS、云解析、弹性Web托管
  2. 适用产品:包年包月云服务器、包年包月云数据库、包年包月云解析、包年包月弹性Web托管
  3. 优惠折扣:享受原价9折优惠。
  4. 有效期: 推荐码限量限时,请尽快使用。

备注:其中分销商关联账号、企业子账户不在使用范围
折扣订单可以使用推荐码,此订单已有优惠无法再享受推荐码折扣,订单提交后返利仍然有效。

参考文档:https://help.aliyun.com/knowledge_detail/6568905.html

推荐码返利规则

什么时候可以获得返利?

  • 返利时间: 每个月的10号上午9点发放上上个自然月的返利。
  • 返利金额=实际支付订单金额*10%。
  • 返利方式:代金券

(因用户退货造成的退款应从实际返利收入中扣除,如返利规则发生变化,需以实际返利额度为准。)

如:5月订单的返利佣金额度,7月10日上午9点发放返利额度

(如果遇国家法定假期,会顺延,具体请关注短信通知)

查考文档:https://help.aliyun.com/knowledge_detail/6666671.html

本站推荐码

推荐码:7tuaku购买链接:http://dwz.cn/2TKAuq

相关文章:

WordPress空间靠谱国内外一览

Apache将HTTP请求重定向到HTTPS的配置方法

如果你的网站启用了HTTPS,但是用户可能使用HTTP访问,那么就需要做跳转(301重定向),将80端口请求跳转到443端口。

先配置一个80口的VirtualHost:

<VirtualHost *:80>
    DocumentRoot /var/www/html/xiedexu.cn
    ServerName xiedexu.cn
</VirtualHost>

再配置一个ssl的443 VirtualHost

<VirtualHost *:443>
    DocumentRoot "/var/www/html/xiedexu.cn"
    ServerName xiedexu.cn:443
    ServerAlias xiedexu.cn

    # HTTPS VirtualHost的其他配置这里就不列出来了
</VirtualHost>

.htaccess中做301跳转

<IfModule mod_rewrite.c>
RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://lampserver.cn/$1 [R=301,L]
</IfModule>