ZDNetChina服务器站 x86服务器技巧
1.安装apache
tar -xzvf apache-2.0.45.tar.gz
cd apache-2.0.45
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
2.安装imap
tar -xzvf imap-2002.tar.gz
cd imap-2002
make lrf SSLTYPE=none
cd c-client
cp mail.h linkage.h rfc822.h /usr/local/include
cp c-client.a /usr/local/lib/libc-client.a
3.安装kerveros
rpm -ivh --force krb5*.rpm
4.安装php4
tar -xzvf php-4.3.1.tar.gz
cd php-4.3.1
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/lib --enable-track-vars
--with-xml --with-mysql --with-imap=../imap-2002
--with-kerberos
make
make install
cp php.ini-dist /usr/local/lib/php.ini
5.配置httpd.conf
AddType application/x-httpd-php .php .php3 .phtml .inc
AddType application/x-httpd-php-source .phps
LoadModule php4_module modules/libphp4.so
/usr/local/apache/bin/./apachet1 restart 重新启动apache
6.测试apache对php的支持
编写/usr/local/apache/htdocs/test.php
<?phpinfo ()?>;
测试:
http://127.0.0.1/test.php
7.整合v-webmail
tar -xzvf v-webmail-1.5.0.tar.gz
cp -r v-webmail-1.5.0 /usr/local/apache/htdocs
cd v-webmail-1.5.0
chmod 777 logs
chmod 777 userdata
chmod 777 tmp
另外,可能存在大小写的问题,同样的包在win32下可以用,而在Linux可能会出错!不用急,将includes目录下问题对应的文件名作大小写转换即可。
本人在调试中改了以下文件:
includes/pear/pear.php (PEAR.PHP)
includes/common.php 65行:url.php(URL.php)
其他问题以此类推!