环境:
CentOS 5.8,安装了Asterisk 1.8
升级php到5.2SugarCRM 6.5: Minimum PHP version required is 5.2.0. You are using PHP version 5.1.6
官方的yum源里面没有,如下添加一个额外的源:
# rpm -import http://www.jasonlitka.com/RPM-GPG-KEY-jlitka
# vi /etc/yum.repos.d/utterramblings.repo在打开的文件中加入以下内容:
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/RPM-GPG-KEY-jlitka
保存
# yum update php
# reboot
参考:http://www.myhack58.com/Article/sort099/sort0102/2011/32081.htm
下载SugarCRM 6.5版本
cd /var/www/html
wget http://nchc.dl.sourceforge.net/project/sugarcrm/1%20-%20SugarCRM%206.5.0/SugarCommunityEdition-6.5.0/SugarCE-6.5.2.zip
unzip SugarCE-6.5.2.zip
ln -s SugarCE-Full-6.5.2/ SugarCE
chown asterisk:asterisk SugarCE* -R
浏览器访问 http://192.168.100.103/SugarCE/install.php
提示session.save_path设置错误
cd /var/www/html/SugarCRM/
创建文件phpinfo.php<?php phpinfo(); ?>
浏览器访问 http://192.168.100.103/SugarCE/phpinfo.php
看到/var/lib/php/session
mkdir /var/lib/php/session_sugarcrm
chown asterisk:asterisk /var/lib/php/session_sugarcrm
touch .htaccess
vi .htaccess
php_value session.save_path /var/lib/php/session_sugarcrm
/etc/init.d/httpd restart
提示mbstring没有启用
CentOS 5.8缺省的php没有启用mbstring
yum -y install php-mbstring
在/etc/php.ini的加入extension=mbstring.so
按照 下面的资料编辑/etc/php.inihttp://twpug.net/modules/newbb/viewtopic.php?post_id=7199
提示
PHP Memory Limit32M (Set this to 41943040M or larger in your php.ini file)
IMAP ModuleNot found: InboundEmail and Campaigns (Email) require the IMAP libraries. Neither will be functional.
Upload File SizeWarning: Your PHP configuration should be changed to allow files of at least 6MB to be uploaded.
http://code.google.com/p/sugarcrmcn/downloads/listcd /var/www/html/SugarCE
wget http://code.google.com/p/sugarcrmcn/downloads/detail?name=SugarCRM-LangPack-zh_cn-6.1.1.zip&can=2&q=
unzip SugarCRM-LangPack-zh_tw-6.2.3.zip
修改config.php
array (
'en_us' => 'English (US)',
'zh_cn' => 'Chinese'
),
5、浏览器访问 http://192.168.100.103/SugarCE/
退出并重新登录,将会出现English Chinese语言选择。
第一次登陆,会提示进行地区等设置。
设置完成后,
修改config.php,让CRM缺省为中文,可以另外选择英文。
'default_language' => 'zh_cn',
修改admin口令方法:
use springw5_su7873 ;# MySQL 返回的查询结果为空 (即零行)。
use xxxdb;
update users set user_hash = '098f6bcd4621d373cade4e832627b4f6' where user_name = 'admin';# 影响了 1 行。
参考:http://stackoverflow.com/questions/13296530/sugarcrm-6-5-password-reset