- 论坛徽章:
- 0
|
今天中午终于无法忍受我的服务器上redhat9.1里的apache 2.0.40版本和php-4.22及perl-5.8.3版本.一升级竟牵涉进了包括glibc,mod_auth_xxx,mod_python,samba,subversion,在内十多个相关的包.要维护rpm数据库的整体性简直是灾难!!! 最终还是把httpd-2.0.53和php-4.3.10,perl-5.8.6给编译安装上了.真是累到半死.如果上天再给我来一次,打死也不会选红帽作服务器套件了
编译指令./configure `./confopt`
httpd-2.0.53的编译参数(用以下脚本confopt生成):
#!/bin/sh
for i in http dav cache ext-filter deflate logio isapi expires proxy proxy-connect proxy-http proxy-ftp ssl bucketeer cgi cgid dav-fs vhost-alias speling rewrite so ext-filter unique-id info suexec mem-cache disk-cache echo example case-filter case-filter-in disk-cache file-cache;do
echo -n "--enable-$i "
done;
echo -n "--enable-mods-shared=all "
php-4.3.10的编译参数(用以下脚本confopt生成):
#!/bin/sh
echo -n "--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-scan-dir=/etc/php.d --with-config-file-path=/etc --with-layout=GNU --libexecdir=/usr/libexec "
for i in imap-ssl sockets embed cdb db4 dbm mysql-sock curl ncurses mime-magic unixODBC kerberos java openssl zlib bz2 gdbm inifile iconv gettext gd imap ldap xmlrpc pear ; do
echo -n "--with-$i "
done
for i in dbase dbx dio gd-native-ttf force-cgi-redirect exif inline-optimization magic-quotes safe-mode sockets sysvem sysvshm sysvmsg ftp track-vars bcmath memory-limit calendar mbstring mbstr-enc-trans yp;do
echo -n "--enable-$i "
done |
|