VTIGERCRM Installation Deployment

Source: Internet
Author: User
Tags imap what parameter vtiger
Copyright Notice: original works, allow reprint, reprint, please be sure to hyperlink form to indicate the original source of the article, author information and this statement. Otherwise, legal liability will be held. http://coolerfeng.blog.51cto.com/133059/50435
This CRM is the lamp program needs to install Apache+php+mysql RHEL4 default RPM version, or compile (compile PHP remember to add--with-imap and--WITH-GD parameters) RPM installation needs to be installed PHP-GD Php-imap these 2 packages to launch Apache, put Vtigercrm's newspaper in Apahce's web directory like/var/www/html
Modify Permissions
Chown-r Apache.apache Vtigercrm
In the browser access http://ip/vtigercrm/install.php follow the VTIGERCRM prompts to create the database, and modify the php.ini MySQL database needs to be manually created
Mysql-u root-p
>create database vtigercrm503;
>grant all privileges in vtigercrm503.* to ' CRM ' @ ' localhost ' identified by ' CRM '; Then next went down, altogether 5 steps. Last point finish, jump to login page, test whether can log in Chinese:
The default installation of VTIGERCRM is in English, download Chinese language pack online
2) Download Chinese package;
3) Extract the Chinese package;
4 copy include and modules to the Vtiger installation root directory; (all in the past)
It needs to be modified first, to change all the zh-ch.lang.php into zh_cn.lang.php
Find. -name zh-ch.lang.php-exec MV {} zh_cn.lang.php/; 5) Modify config.inc.php
Line 172th:
$languages = Array (' en_US ' => ' US 中文版 ');
To
$languages = Array (' zh_cn ' => ' simplized Chinese ', ' en_us ' => ' US 中文版 ');
Line 179th:
$default _charset = ' iso8859-1 ';
To
$default _charset = ' UTF-8 ';
Line 183th:
$default _language = ' en_US ';
To
$default _language = ' ZH_CN ';
5 The problem of Chinese fonts
Add Chinese fonts, such as Simsun.ttf, to the image/canvas/fonts directory of Vtiger CRM, and then modify Fontmap.txt to add a row:
Simsun,simsun.ttf
Then modify the include/utils/graphuntils.php
Line 42nd:
Case ' Cn_zh ':
To
Case ' ZH_CN ':
6) Successful installation.
Add: After the successful installation, I also tested the source code installation Apache+php+mysql+gd+imap now write the process of Apache installation will not say more. Online tutorials a lotGD Installation
The first thing to do is to install GD to the system, and install GD before the need to install jpeg-6b, libpng, Zlib, FreeType. Here is the download URL:
GD 2.0.33
jpeg-6b
Libpng 1.2.8
Zlib 1.2.3
Freetype-2.1.10.tar.gz set up the installation suite directory
Mkdir/usr/local/modules The download is complete, type the following instructions to install. Install Zlib
#不要用 –prefix The installation directory will affect the GD tar zxvf zlib-1.2.3.tar.gz
CD zlib-1.2.3
./configure
Make
Make install (if the release of x86_64 bit, before Mak, need to modify the makefile, find cflags= this line, in the end of this trip plus-fpic) and then compile GD after the error./USR/BIN/LD:/usr/ LOCAL/LIB/LIBZ.A (COMPRESS.O): Relocation r_x86_64_32 can not is used when making a shared object; Recompile with-fpic
/usr/local/lib/libz.a:could not read Symbols:bad value
Collect2:ld returned 1 exit status install FreeType tar zxvf freetype-2.1.10.tar.gz
CD freetype-2.1.10
./configure--prefix=/usr/local/modules/freetype
Make
Make install install libpng
#不要用 –prefix The installation directory will affect the GD tar zxvf libpng-1.2.8-config.tar.gz
CD Libpng-1.2.8-config
./configure
Make
Make install install jpeg-6b
Tar zxvf jpegsrc.v6b.tar.gz
CD jpeg-6b
./configure--prefix=/usr/local/modules/jpeg6--enable-shared--enable-static
Make
Make install this step may be wrong, mainly because the folder can not be automatically built, when the problem, less that folder, the Madir command to build the folder you can solve
Install GD tar zxvf gd-2.0.33.tar.gz
CD gd-2.0.33
./configure--prefix=/usr/local/modules/gd--with-jpeg=/usr/local/modules/jpeg6--with-png--with-zlib- With-freetype=/usr/local/modules/freetype
Make
Make install needs to configure PHP next. NOTE: Add IMAP support method to download Imap2006k.tar.gz.z first, and then untie the compression package IMAP do not install, just compile PHP when you specify IMAP source path can (--with-imap=/root/imap-2006k) ( Under the X86-64 platform, you are prompted to specify the path directlyAn error occurred configure:error:This c-client The library is built with Kerberos support. Solutions1. Compile IMAP x86_64 platform modify makefile file, add-fpic after extracflags=
The downloaded package does not need to be precompiled (configure), you can compile it yourself (make), but here we have to add parameters to the compilation, such as my system is redhat, then we compile to
Make LRH
As for your system for other, add what parameter, you can see makefile, find your corresponding system parameters

2. After successful compilation, CD C-client
CP *.h/usr/local/include/
CP c-client.a/usr/local/lib/

3. Now we can recompile PHP, plus--with-imap=/root/imap-2006k--with-imap-ssl
Tar zxvf php-5.2.5.tar.gz
CD php-5.2.5
#./configure--prefix=/usr/local/php5--with-apxs2=/usr/local/apache2/bin/apxs--with-zlib--with-gd=/usr/local/ MODULES/GD--with-jpeg-dir=/usr/local/modules/jpeg6--with-png-dir=/usr/local--with-freetype-dir=/usr/local/ Modules/freetype--with-imap=/root/imap-2006k--with-imap-ssl--with-mysql
#make x86_64 Platform If the error EXT/IMAP/.LIBS/PHP_IMAP.O (. text+0x2b8d): In function ' Zif_imap_expunge ':
: Undefined reference to ' mail_expunge_full '
Collect2:ld returned 1 exit status
Make: * * * * [sapi/cli/php] Error 1 reference to get the following solution.
Reference:
Google a bit (Baidu can not find anything, waiting for me This article is included, hehe), find the PHP team
TONY2001 's Passage:
"Please have the problem to IMAP cclient developers, PHP itself
Doesn ' t use this function, so there must is some problem in the
Underlying library.
Thank you. "Http://ceo.xwschool.net/blog/blog?do-showone-tid-446.html on the IMAP in the grep mail_expunge_full a bit, found the Mail_ The definition of the Expunge_full function,
So, edit the PHP directory under EXT/IMAP/PHP_IMAP.C, add the following code
Long Mail_expunge_full (mailstream *stream,char *sequence,long options)
{
/* Do the driver ' s action * *
Return STREAM->DTB? (*stream->dtb->expunge) (stream,sequence,options): NIL;
}
And then make
#make install MySQL if it is rpm installation, be sure to install mysql-devel this package, or compile the time can not find the MySQL library if the source code installation, only to specify the path of MySQL, we recommend the use of static compilation package. (on the X86-64 platform to encounter the specified path still can not find MySQL, the solution, the online download a mysql5.0.45 static compilation package, decompression, and then specify this path) edit the Apache configuration file, that is/usr/local/apache2/conf/ Httpd.conf, and add the following two lines:
AddType application/x-httpd-php. php
AddType Application/x-httpd-php-source. Phps
and add index.php to the DirectoryIndex line.
Then save the file and start the server
Next Test our PHP support has just compiled the GD and IMAP build test PHP file. Phpinfo ();?>
Then access http://ip/test.php in the browser if the configuration information has GD Support enabled
GD Version 2.0 or higher
FreeType Support Enabled
FreeType linkage with FreeType
FreeType Version 2.1.10
GIF Read Support Enabled
GIF Create Support Enabled
JPG Support Enabled
PNG Support Enabled
WBMP Support enabled the same IMAP support also has similar information, OK Source compiled Apache+php+mysql+gd+imap completed. Other steps ditto

This article from the "wind-blown Cloud" blog, please be sure to retain this source http://coolerfeng.blog.51cto.com/133059/50435

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.