文件下载地址:http://code.google.com/p/sugarcrmcn/downloads/list
需要下载的包有:
英文包:SugarCE-6.1.2.zip
汉化包:
简体包:SugarCRM-LangPack-zh_cn-6.1.1.zip
繁体包:SugarCRM-LangPack-zh_tw-6.1.1.zip
mysql -h localhost -u root -p
创建MySQL帐号
grant all privileges on scrm.* to scrm@'localhost' identified by "123456";
flush privileges;
查看刚创建的用户权限
show grants for scrm@'localhost';
安装SugarCRM
cd /data0/software/
unzip SugarCE-6.1.2.zip
mv /data0/software/SugarCE-Full-6.1.2 /data0/htdocs/Scrm
修改权限
chmod -R 777 /data0/htdocs/Scrm
配置虚拟主机指向这个目录(这里针对Nginx配置)
server
{
listen 80;
server_name crm.chinatree.com;
index index.html index.htm index.php;
root /data0/htdocs/Scrm/;
location ~ .*\.php {
fastcgi_pass 192.168.1.1:9000;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
#set $real_script_name $1;
set $path_info $2;
}
fastcgi_param PATH_INFO $path_info;
include fcgi.conf;
}
log_format scrmlogs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent $request_time "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for "$server_name" "$http_host"';
access_log /data1/logs/scrm.log scrmlogs;
}