CentOS 5.8安装SugarCRM 6.5版本

环境: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 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.linuxidc.com/Linux/2014-04/100956p2.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.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.

http://code.google.com/p/sugarcrmcn/downloads/list
cd  /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‘,

CentOS 5.5 简单方法升级php到php5.2.6

装完Centos5.5 看了看php版本才5.1.6,于是下意识的

# yum update php
Loading “fastestmirror” plugin
Existing lock /var/run/yum.pid: another copy is running as pid 12787.
Another app is currently holding the yum lock; waiting for it to exit…
Another app is currently holding the yum lock; waiting for it to exit…
Another app is currently holding the yum lock; waiting for it to exit…
Another app is currently holding the yum lock; waiting for it to exit…
Loading mirror speeds from cached hostfile
* base: centos.candishosting.com.cn
* updates: centos.candishosting.com.cn
* addons: centos.candishosting.com.cn
* extras: centos.candishosting.com.cn
Setting up Update Process
Could not find update match for php
No Packages marked for Update
看来Centos系统软件仓中的php没有更新,晕
本人懒人一个,不想重新手动编译php,既然官方的yum源里面没有,那总有一个源有吧,
 
找找总算找到一个,如下添加一个额外的源:
# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# gedit /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/media/RPM-GPG-KEY-jlitka
保存
# yum update php
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* utterramblings: www.jasonlitka.com
* base: centos.candishosting.com.cn
* updates: ftp.hostrino.com
* addons: ftp.hostrino.com
* extras: ftp.hostrino.com
utterramblings 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 68 kB 00:02
utterrambl: ################################################## 230/230
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package php.i386 0:5.2.6-jason.1 set to be updated
–> Processing Dependency: php-common = 5.2.6-jason.1 for package: php
–> Processing Dependency: php-cli = 5.2.6-jason.1 for package: php
–> Running transaction check
—> Package php-cli.i386 0:5.2.6-jason.1 set to be updated
—> Package php-common.i386 0:5.2.6-jason.1 set to be updated
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-gd
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-ldap
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-pdo
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-mysql
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-mbstring
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-xml
–> Running transaction check
—> Package php-mysql.i386 0:5.2.6-jason.1 set to be updated
—> Package php-mbstring.i386 0:5.2.6-jason.1 set to be updated
—> Package php-ldap.i386 0:5.2.6-jason.1 set to be updated
—> Package php-gd.i386 0:5.2.6-jason.1 set to be updated
—> Package php-xml.i386 0:5.2.6-jason.1 set to be updated
—> Package php-pdo.i386 0:5.2.6-jason.1 set to be updated
–> Finished Dependency Resolution
 
Dependencies Resolved
 
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
php i386 5.2.6-jason.1 utterramblings 3.7 M
php-cli i386 5.2.6-jason.1 utterramblings 2.6 M
php-common i386 5.2.6-jason.1 utterramblings 481 k
Updating for dependencies:
php-gd i386 5.2.6-jason.1 utterramblings 320 k
php-ldap i386 5.2.6-jason.1 utterramblings 56 k
php-mbstring i386 5.2.6-jason.1 utterramblings 1.3 M
php-mysql i386 5.2.6-jason.1 utterramblings 258 k
php-pdo i386 5.2.6-jason.1 utterramblings 159 k
php-xml i386 5.2.6-jason.1 utterramblings 316 k
 
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 9 Package(s)
Remove 0 Package(s)
 
Total download size: 9.1 M
Is this ok [y/N]: y
Downloading Packages:

(1/9): php-5.2.6-jason.1. 100% |=========================| 3.7 MB 02:35
(2/9): php-pdo-5.2.6-jaso 100% |=========================| 159 kB 00:05
(3/9): php-common-5.2.6-j 100% |=========================| 481 kB 00:15
(4/9): php-xml-5.2.6-jaso 100% |=========================| 316 kB 00:06
(5/9): php-cli-5.2.6-jaso 100% |=========================| 2.6 MB 01:36
(6/9): php-gd-5.2.6-jason 100% |=========================| 320 kB 00:10
(7/9): php-ldap-5.2.6-jas 100% |=========================| 56 kB 00:03
(8/9): php-mbstring-5.2.6 100% |=========================| 1.3 MB 00:41
(9/9): php-mysql-5.2.6-ja 100% |=========================| 258 kB 00:06
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common ####################### [ 1/18]
Updating : php-pdo ####################### [ 2/18]
Updating : php-cli ####################### [ 3/18]
Updating : php-mysql ####################### [ 4/18]
Updating : php-mbstring ####################### [ 5/18]
Updating : php-ldap ####################### [ 6/18]
Updating : php-gd ####################### [ 7/18]
Updating : php-xml ####################### [ 8/18]
Updating : php ####################### [ 9/18]
Cleanup : php-mysql ####################### [10/18]
Cleanup : php-mbstring ####################### [11/18]
Cleanup : php-ldap ####################### [12/18]
Cleanup : php-gd ####################### [13/18]
Cleanup : php-cli ####################### [14/18]
Cleanup : php-xml ####################### [15/18]
Cleanup : php-common ####################### [16/18]
Cleanup : php-pdo ####################### [17/18]
Cleanup : php ####################### [18/18]
 
Updated: php.i386 0:5.2.6-jason.1 php-cli.i386 0:5.2.6-jason.1 php-common.i386 0:5.2.6-jason.1
Dependency Updated: php-gd.i386 0:5.2.6-jason.1 php-ldap.i386 0:5.2.6-jason.1 php-mbstring.i386 0:5.2.6-jason.1 php-mysql.i386 0:5.2.6-jason.1 php-pdo.i386 0:5.2.6-jason.1 php-xml.i386 0:5.2.6-jason.1
Complete!
# service httpd restart
停止 httpd: [确定]
启动 httpd:httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain for ServerName
[确定]
# rpm -q php
php-5.2.6-jason.1

时间: 2024-12-13 12:46:04

CentOS 5.8安装SugarCRM 6.5版本的相关文章

CentOS 7.2 安装jdk1.8.x版本(二进制)

1.安装说明 系统环境:centos7.2 安装方式:二进制安装 软件:jjdk-8u151-linux-x64.tar.gz 官网下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2.去除旧版本 检验系统原版本 [[email protected] ~]# java -version java version "1.7.0_" OpenJDK Runtime Environment (Ice

CentOS查看已经安装的lib库版本

strings /usr/lib/libstdc++.so.6 | grep GLIBCXX [root@localhost vscode]# strings /usr/lib/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX

如何在 CentOS 7 中安装或升级最新的内核

转 原创 2017-03-19 译者:geekpi Linux中国 随着新的设备和技术定期出来,如果我们想充分利用它们,保持最新的内核就很重要.此外,更新内核将帮助我们利用新的内核函数,并保护自己免受先前版本中发现的漏洞的攻击.-- Matei Cezar 本文导航 -步骤 1:检查已安装的内核版本18% -步骤 2:在 CentOS 7 中升级内核33% -步骤 3:设置 GRUB 默认的内核版本63% -总结80% 虽然有些人使用 Linux 来表示整个操作系统,但要注意的是,严格地来说,L

[Linux]CentOS Minimal版安装纪录

CentOS Minimal版安装纪录 由于minimal版本的CentOS默认安装软件并不多,所以很多软件都需要自己后期手动进行安装.先将安装过程及创建错误进行一下纪录: 一,ifconfig命令的安装 1)yum install ifconfig报错: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386& repo=os error was14: PYCURL ERROR 6 -

CentOS yum 安装LAMP PHP5.4版本

CentOS yum 安装LAMP PHP5.4版本     [字体:大 中 小] Linux系统版本:CentOS 6.5 1.yum安装和源代码编译在使用的时候没啥区别,但是安装的过程就大相径庭了,yum只需要3个命令就可以完成,源代码需要13个包,还得加压编译,步骤很麻烦,而且当做有时候会出错,源代码编译安装大概需要2个小时,好处在于可以自己配置地址等一些参数,yum安装半个小时搞定,一般不会出错,更新也很方便. 2.我的机器是CentOS release 5.9 64为的系统,一般机器都

CentOS 6 中安装Node.js 4.0 版本或以上

如果想在CentOS 6 中安装Node.js >4.0,如果通过以往的方式安装: wget https://nodejs.org/dist/latest/node-v4.0.0.tar.xz tar zvxf node-v4.0.0.tar.xz cd node-v4.0.0 ./configure make && make install 会遇到报错提示: WARNING: C++ compiler too old, need g++ 4.8 or clang++ 3.4 (CX

CentOS 6.3安装配置LNMP服务器,自定义php,mysql版本

准备篇 1.配置防火墙,开启80端口.3306端口 1 vim /etc/sysconfig/iptables 2 -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙 3 -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火墙 service iptables restart #重启防火

如何在CentOS/RHEL上安装或升级新的内核版本

Linux内核版本 Linux内核版本分为主线.稳定和长期版本.(所有内核版本都可以在内核开发官方网站https://www.kernel.org上获取)目前我们看到最新的稳定内核版本为4.10.12. 主线版本代表整个Linux内核的一个树干,新的主线版本每2-3个月发布一次,所有的新功能及特性都将会包含主线版本中.稳定内核则是在主线版本中,被认为是"稳定的"得出.稳定内核的任何错误修复都将从主线树中返回,也就是主线内核出现的任何错误(包括之前的任何旧版本内核的错误和BUG)在得到修

CentOS 5.X安装LAMP最高版本环境

#------------CentOS 5.X安装LAMP最高版本环境------------------#! /bin/sh #安装Apacheyum install httpd -y#1.关闭selinuxcp -rp /etc/selinux/config /etc/selinux/config.baksetenforce 0sed -i '7s/enforcing/disabled/' /etc/selinux/config#2.显示selinux的状态 Permissive为关闭get