SMB架站务实:部署基于Linux的CRM(下)
【IT168 专稿】在前一篇文章中(点击阅读),简要介绍了中小企业CRM系统的概念及其选型,本文重点描述以一个中小linux企业为例搭建一个部署开源CRM系统。
Vtiger CRM提供了两种安装方法基于源代码和二进制工具,下面依次介绍。
一、基于源代码Vtiger CRM服务器安装
如果Linux系统已经安装了AMP环境如:已装有 Apache HTTP Server (2.0.53)、MySQL (4.1.22)、PHP (4.3.11) 的 Fedora Core 3 Linux 或者RHEL 4.0 ,但是AMP组件版本不能满足Vtiger CRM服务器要求。
1 下载软件
首先依次到http://httpd.apache.org/download.cgi 、http://dev.mysql.com/downloads/mysql/5.0.html#source 、http://www.php.net/releases/ 和http://www.vtiger.com/index.php 下载以下软件包:
Apache HTTP Server 2.0.59
MySQL 5.0.45
PHP 5.1.6
Vtiger CRM 5.0.3
2 停止原来的Apache HTTP Server、MySQL服务器的工作
#删除以下二行 (Ref: http://curl.haxx.se/mail/curlphp-2006-11/0002.html)
添加如下内容:
Vtiger CRM提供了两种安装方法基于源代码和二进制工具,下面依次介绍。
一、基于源代码Vtiger CRM服务器安装
如果Linux系统已经安装了AMP环境如:已装有 Apache HTTP Server (2.0.53)、MySQL (4.1.22)、PHP (4.3.11) 的 Fedora Core 3 Linux 或者RHEL 4.0 ,但是AMP组件版本不能满足Vtiger CRM服务器要求。
1 下载软件
首先依次到http://httpd.apache.org/download.cgi 、http://dev.mysql.com/downloads/mysql/5.0.html#source 、http://www.php.net/releases/ 和http://www.vtiger.com/index.php 下载以下软件包:
Apache HTTP Server 2.0.59
MySQL 5.0.45
PHP 5.1.6
Vtiger CRM 5.0.3
2 停止原来的Apache HTTP Server、MySQL服务器的工作
3.安装配置Apache/etc/init.d/httpd stop
chkconfig httpd off
/etc/init.d/mysql stop
chkconfig mysql off
修改配置文件: /usr/local/apache2/conf/httpd.conf./configure --prefix=/usr/local/apache2
make && make install
4安装 MySQL 5.0.45User apache
Group apache
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
建立文件链接
cd /usr/local/apache2
rmdir logs
ln -s /var/log/httpd logs
启动Apache
/usr/local/apache2/bin/apachectl -k start
vi /etc/rc.d/rc.local
/usr/local/apache2/bin/apachectl -k start
5安装 PHP 5.1.6./configure --prefix=/usr/local/mysql --with-charset=UTF --with-extra-charsets=all
make && make install
cd /usr/local/mysql
修改配置文件: share/mysql/my-large.cnf
socket /var/lib/mysql/mysql.sock
cp share/mysql/mysql-large.cnf ./my.cnf
ln -s /usr/local/mysql/my.cnf ./.my.cnf
/usr/local/mysql/bin/mysql_fix_privilege_table --password=mysql_root_password
重新启动 MySQL:
/usr/local/mysql/bin/mysqladmin shutdown -p && /usr/local/mysql/bin/mysqld_safe &
设置自动执行:
vi /etc/rc.d/rc.local
/usr/local/mysql/bin/mysqld_safe
修改配置文件: interface.cyum -y install pcre-devel libjpeg-devel libpng-devel freetype-devel gd-devel libc-client-devel cyrus-imapd-devel
cd php-5.1.6/ext/curl/
#删除以下二行 (Ref: http://curl.haxx.se/mail/curlphp-2006-11/0002.html)
编译phpREGISTER_CURL_CONSTANT(CURLOPT_FTPASCII);
REGISTER_CURL_CONSTANT(CURLOPT_PASSWDFUNCTION);
修改配置文件: /usr/local/php5/etc/php.ini 如下内容:./configure --prefix=/usr/local/php5 --enable-force-cgi-redirect --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl=/usr --with-freetype-dir=/usr --with-png-dir=/usr --with-gd=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-ncurses=/usr --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-imap=/usr --with-imap-ssl --with-kerberos --with-ldap=/usr --with-snmp=/usr --with-snmp=/usr --enable-ucd-snmp-hack --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mbstring=/usr --enable-mbstr-enc-trans --enable-mbregex --with-mime-magic=/usr/share/file/magic.mime --with-pic --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs
![]()
make && make install
cp php.ini-recommended /usr/local/php5/etc/php.ini
修改配置文件: /usr/local/apache2/conf/httpd.confsafe_mode = Off
display_errors = On
file_uploads = On
register_globals = Off
max_execution_time = 600
memory_limit = 64M
output_buffering = On
error_reporting = E_ALL & ~E_NOTICE
allow_call_time_pass_reference = On
log_errors = Off
short_open_tag = On
添加如下内容:
5安装 vtiger CRM 5.0.3LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
![]()
/usr/local/apache2/bin/apachectrl -k restart
建立 vtigercrm503 数据库, 数据库账号: vtiger, 密码: passwordcd /var/www/html
wget http://ftp.roedu.net/mirrors/sf.net/v/vt/vtigercrm/vtigercrm-5.0.3.tar.gz
到此为止基于源代码Vtiger CRM服务器安装完成。/usr/local/mysql/bin/mysql -u root -p -a mysql
mysql> create database vtigercrm503;
mysql> grant all privileges on vtigercrm503.* to vtiger@localhost identified by 'password';
mysql> flush privileges;
mysql> exit
0
相关文章
