How to Install SugarCRM with SQL Server 2008 and IIS 7.0

本文详细介绍如何在Windows Server 2008上使用IIS7.0安装SugarCRM,并配置其与SQL Server 2008进行交互。文章包括安装PHP、SQL Server Express Edition以及SugarCRM的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The post copied from http://jassemshakil.blogspot.com/2010/08/how-to-install-sugarcrm-with-sql-server.html

Hi!

Welcome to my blog again. So, here is something useful for you. The following post can be used as a reference to install SugarCRM on a Windows Server 2008 machine with IIS 7.0. Please note that unlike IIS 5.1 or 6.0, IIS 7.0 comes with FastCGI, so you do not have to install the CGI component.


In this guide, I have assumed that SQL Server is installed on a different machine than Web Server. If you want to install SugarCRM with SQL Server on a single machine, still you can use this guide. You just have to change the SQL server information in Step 6 of Chapter 4.

I have included screen snapshots to demonstrate the entire process. However, I have not covered much details regarding SQL Server installation. I assume, you are well acquainted with it. 


Best of Luck!


JS

------------------------------------------------------------------------

Table of Contents

1. Assumptions
2. Install PHP
3. Install SQL Server Express Edition
4. Configure SugarCRM

1. Assumptions

The following are the assumptions:

1. Web server is running on Windows Server 2008 machine.

2. IIS 7.0 is installed as webserver.

3. SQL Server 2008 is installed on database server.

4. sa account is active in SQL server, that is, both SQL Authentication and Windows Authentication are enabled as login methods.



2. Install PHP

and download PHP Windows binaries “PHP 5.2.14 VC6 x86 Non Thread Safe” Zip package. Please make sure that you do not install latest version (5.3.x) as support for Microsoft SQL Server has been temporarily taken out from the new versions.










2. Extract the package into C:\PHP\

3. Go to Properties of My Computer->Advanced and append the system environment variable "Path" to ";c:\PHP\". 





















4. Create a new environment variable. Call it “PHPRC” and assign it value " c:\PHP\".

5. Go to “c:\PHP” folder, and rename “php.ini-recommended” to “php.ini”

6. Open “php.ini” file and make sure the following entries, appear like these:

extension_dir = " C:\PHP\ext"
error_log=" C:\inetpub\temp\php-errors.log"
cgi.force_redirect = 0
fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo=1
extension=php_mbstring.dll
extension = php_mssql.dll
mssql.charset = "UTF-8"
mssql.datetimeconvert = Off
mssql.secure_connection = Off
variables_order = "EGPCS"
error_reporting = E_ALL & ~E_NOTICE
display_errors = on
display_startup_errors = On

7. Make sure that FastCGI scripts are enabled in IIS by going to the following page:
Server Manager -> Roles -> Add Role Services. On the Select Role Services page















8. Open IIS Manager and at server level, open Handler Mappings.













9. On right, select “Add Module Mapping”. Provide the following values and restart IIS:
Request path: *.php
Module: FastCgiModule
Executable: "C:\PHP\php-cgi.exe"
Name: PHP via FastCGI














10. Add PHPVersionInfo as a website in IIS and set “index.php” as default page.

11. Create a simple PHP script file “index.php” and save it in PHPVersionInfo website.


3. Install SQL Server Express Edition Express
1. Install SQL Server Express Edition.

2. Make sure that SQL Native Client is installed. If not installed, please use the following link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=c6c3e9ef-ba29-4a43-8d69-a2bed18fe73c&displaylang=enp;displaylang=en



4. Install SugarCRM
1. Download SugarCRM Community Edition 5.5.4 from the following location: http://www.sugarforge.org/frs/?group_id=6/frs/?group_id=6


2. Extract all the files in C:\Inetpub\wwwroot\SugarCRM folder. Please make sure that IIS user has “full-control” rights to the SugarCRM folder.

3. Add this folder as a website in IIS and set “index.php” as default document.
4. Now open “install.php” in internet explorer from SugarCRM website. The setup will check the system requirements and will prompt for issues. 

















5. If “install.php” shows SQL Server problem, download “ntwdblib.dll” from

and replace the existing one in "C:\PHP\" with this one.























7. Complete SugarCRM installation.





http://www.dlldll.com/ntwdblib.dll_download.html 





首先,感谢 索孚方科 公司的大力支持以及相关研发人员的鼎力协助,让山寨版的CE语言包可能比Pro版的更贴切好用一些,故本语言包也可以说攀了个粗腿。对公司相关人员快捷高效的测试,表示感谢! 其次,注意事项: 兼容6.5.X; 一般注意事项,见http://down.51cto.com/data/275922 建议中文的sugar系统修改config.php配置文件,以获得更好使用(先备份好原文 件)。 config.php为sugar配置文件,建议更改部分。 第1处: 'default_currency_iso4217' => 'CNY', //修改默认货币代码为人民币 'default_currency_name' => 'Chinese Yuan', //修改默认货币名称为元,可在 系统管理->货币 下增加汇率和其他货币 第2处: 'default_language' => 'zh_cn', //修改默认登陆为中文 第3处: 'default_locale_name_format' => 's f l', //姓名称谓 第4处: 'default_charset' => 'EUC-CN', //导入导出为GB2312格式,避免中文乱码 第5处,可不变: 'upload_dir' => 'upload/', //保持此目录或者修改上传目录,包括document的文件附件存放在此目录 'upload_maxsize' => 30000000, //保持或者修改此值,修改单个文件最大上传值(默认30M) =========================================================================== 本次语言包解决的一些问题: 1.在IE下的Ajax问题(模块因语言问题显示null),详见《6.4.3中文模块列表不能正确显示?寻帮助》一文http://www.sugar360.cn/forum.php ... &extra=page=1 2.已解决:模块生成器->文件包-> 可用子面板->默认,点开后无内容(而英文下无此问题); 3.中文下,日历的日期与星期几可能不对应的问题; 4.更新翻译,让其更加易懂。 5.相关翻译人员:木子飞飞 (rell336@126.com),无常(Huang.jecky@gmail.com),Cheli Zhao (cheli.zhao@srforce.com), Richard Qi (richard@srforce.com)。 6.若对翻译的一些文字有建议,可直接联系我:rell336@126.com 14:52 2014-7-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值