官方文档
http://club.shopex.cn/doc/b2b2c-deploy-and-maintenance/100.deploy/200.linux-install.md
windows环境下 浏览超级管理后台时候 容易出现如下错误::
1 报错Limited-user licenses are not supported
<b>Fatal error</b>: Limited-user licenses are not supported due to concurrent users module startup failure in <b>D:\webhost\oms\ShopexErp\app\base\kernel.php</b> on line
参考 http://www.updateweb.cn/zwfec/item-56.html
使用非administrator 用户来安装phpStudy导致问题
解决方法二
更改整个目录的所有者, 权限为当前最高用户 administrator.
2 redis启动失败常见问题
/etc/init.d/redis start
查看日志
tail -f /var/log/redis/redis.log
错误提示为 Can't chdir to './': Permission denied
linux --chdir() 改变当前工作目录函数
解决方法: 修改日志权限
启动脚本 为root
chown -R root:root /etc/init.d/redis
chmod 777 -R /var/log/redis/
chmod 777 /var/lock/subsys/redis
chmod 777 /etc/sysconfig/redis
修改所有者
chown -R root:root /etc/init.d/redis
chmod 777 -R /var/log/redis/
错误提示为 Can't open the append-only file: Permission denied
chown -R redis:redis /home/vagrant/appendonly.aof
chmod 777 -R /home/vagrant/
chmod 777 /home/vagrant/appendonly.aof
方法二 重新安装
yum remove redis
yum install redis
/etc/init.d/redis start
3 设置mysql 远程连接
问题: 安装完mysql之后, root无法远程连接, 没有密码:
运行
mysql -uroot
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
4 数值较大或者浮点数计算时候, 自动变成科学计数法
php.ini 中调整一下浮点数精度就可以了
precision = 18
5 Nginx rewrite 重写
vhost配置文件 /usr/local/nginx/conf/vhosts/*.conf中 添加规则
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
}
调用银行接口支付后, 回调地址无法访问.
比如 http://abc.com/index.php/goods?id=123&from=http://abb.com/index.php/goods?id=333
接口后台 正常访问路径
通过如下路径 http://abc.com/aaaaa/index.php/api ,也会路由到 http://abc.com/index.php/api 下
但是文件上传路径会出错