1、Freetds的安装
[root@red]# tar –zxvf freetds-0.62.3.tar.gz
[root@red]# cd freetds-0.62.3
[root@red]# ./configure \
>--prefix=/usr/local/freetds \ {指定freetds的安装目录为/usr/local/freetds}
>--with-tdsver=8.0 \ {指定freetds运行版本为8.0支持Ms SQL Server 2000}
>--enable-msdblib {设定freetds支持Msdblib,好像可以不用}
[root@red]# make
[root@red]# make install
port = 1433
tds Version = 8.0
client charset = UTF-8 {因为freetds不支持GB2312字符集,要想正确显示中文只能使用UTF-8字符集。}
2、Apache的安装
[root@red] # cd httpd-2.2.0
[root@red] # ./configure \
>--enable-so \ {让Apache支持模块动态加载}
>--enable-ssl=share \ {让Apache支持ssl }
>--enable-rewrite=share \ {让Apache支持URL重写 }
>--enable-track-vars \ { 启动cookie的get/post等追踪功能}
>--prifix=/usr/local/apache2 \ {指定Apache的安装目录为/usr/local/apache2}
[root@red] # make
[root@red] # make install
[root@red] # /usr/local/apache2/bin/apachectl start
在浏览器中地址中输入 如果看到It works! 证明Apache安装成功。
3、Php的安装
[root@red] # tar –zxvf php-4.4.2.tar.gz
[root@red] # cd php-4.4.2
[root@red] # ./configure \
>--prefix=/usr/local/php \ {指定PHP的安装目录为/usr/local/php}
>--with-mssql=/usr/local/freetds \ {设定PHP支持MSSQL的安装目录}
>--with-apxs2=/usr/local/apache2/bin/apxs \
>--with-config-file-path=/usr/local/php/etc \
>--enable-track-vars \
>--enable-force-cgi-redirect \
>--with-mhash {支持哈希算法,诸如MD5等}
[root@red] # make
[root@red] # make install
[root@red] # cp php.ini-dist /usr/local/php/etc/php.ini