SugarCRM CE 部署除错

部署环境

Centos 6.5

Xampp php/6.5 Apache/2.4.26

SugarCE V6.5.9 Build 8653

GAP 1

安装完毕后报错

  Creating default Sugar data

  Creating default users...
  Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in   /home/wwwroot/SugarCE/modules/Users/User.php on line 711

解决方案:

在/home/wwwroot/SugarCE/modules/Users/User.php第711行,新增红色字段

public static function getPasswordHash($password)
    {
        if(!defined('CRYPT_MD5') || !constant('CRYPT_MD5')) {
            // does not support MD5 crypt - leave as is
            if(defined('CRYPT_EXT_DES') && constant('CRYPT_EXT_DES')) {
                return crypt(strtolower(md5($password),'$6$rounds=5000$usesomesillystringforsalt$'),
                    "_.012".substr(str_shuffle('./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), -4));
            }
            // plain crypt cuts password to 8 chars, which is not enough
            // fall back to old md5
            return strtolower(md5($password));
        }
        return crypt(strtolower(md5($password)),'$6$rounds=5000$usesomesillystringforsalt$'); }

GAP 2

安装完毕后报500错误

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@admin.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

解决方案

在httpd-xampp.conf中,将SugarCRM对应的虚拟目录配置中的

AllowOverride AuthConfig Limit

 

更改为

AllowOverride all

 

转载于:https://www.cnblogs.com/bionexit/p/7765941.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值