博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SugarCRM CE 部署除错
阅读量:7180 次
发布时间:2019-06-29

本文共 1660 字,大约阅读时间需要 5 分钟。

部署环境

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

你可能感兴趣的文章
Java中HashMap和TreeMap的区别深入理解
查看>>
WCF Web Services & iOS - Part 3
查看>>
js让输入inpu不是数字的时候自动删除内容
查看>>
Linux环境下安装Nodejs
查看>>
7.2存储分配策略
查看>>
java配置文件的读取写入的解决方案(getResourceAsStream的用法)
查看>>
无线WIFI无法正常启动问题
查看>>
nginx启动脚本
查看>>
保证Linux Apache Web服务器安全的10个建议
查看>>
mysql-5.6.20 源码安装的一些问题
查看>>
Nginx与Apache、Tomcat、Resin动静分离核心配置
查看>>
Sublime Text使用入门8——扩展之命令
查看>>
EasyUI:easyui-combobox(清除选中项)
查看>>
window.location使用
查看>>
thinkphp框架开启页面gzip压缩
查看>>
gcc and g++分别是gnu的c & c++编译器
查看>>
centos 例行性工作转发外部邮箱
查看>>
工作中使用了一些触发器
查看>>
[每日一题] 11gOCP 1z0-052 :2013-09-7 The usage of the SQL*LOAD utility.............................
查看>>
我的友情链接
查看>>