环境:CentOS 5.8,安装了Asterisk 1.8
升级php到5.2
SugarCRM 6.5: Minimum PHP version required is 5.2.0. You are using PHP version 5.1.6
官方的yum源里面没有,如下添加一个额外的源:
# rpm -import
# 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
参考:
下载SugarCRM 6.5版本
cd /var/www/html
wget %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
浏览器访问
提示session.save_path设置错误
cd /var/www/html/SugarCRM/
创建文件phpinfo.php
<?php phpinfo(); ?>
浏览器访问
看到/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.ini
提示
PHP Memory Limit 32M (Set this to 41943040M or larger in your php.ini file)
IMAP Module Not found: InboundEmail and Campaigns (Email) require the IMAP libraries. Neither will be functional.
Upload File Size Warning: Your PHP configuration should be changed to allow files of at least 6MB to be uploaded.
cd /var/www/html/SugarCE
wget ?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、浏览器访问
退出并重新登录,将会出现English Chinese语言选择。
第一次登陆,会提示进行地区等设置。
设置完成后,
修改config.php,让CRM缺省为中文,可以另外选择英文。
'default_language' => 'zh_cn',