※软件版本
RedHat Linux 9 □下列软件均在此平台上安装成功
Apache 2.0.46 ◇Web服务器
MySQL 4.0.13 ◇数据库服务器
PHP 4.3.1 ◇服务器端脚本语言
ProFTPD 1.2.8 ◇FTP服务器
vsftpd 1.1.0-1 ◇非常安全的FTP服务器
UnrealIRCd 3.2-beta16 ◇IRC服务器
pptpd 1.1.4-b3 ◇VPN服务器
cnphpBB 2.0.4mod ◇PHP编写的BBS
JabberD Quickstart 0.2 ◇即时消息服务器
ample 0.5.6 ◇网络电台服务器
※安装过程
Apache:
1. 下载:
http://www.apache.org/dist/httpd/httpd-2.0.46.tar.gz
2. 解包:
tar xvfz httpd-2.0.46.tar.gz
3. 安装:
cd httpd-2.0.46
./configure --prefix=/usr/local/apache --enable-so
make
make install
4. 修改httpd.conf:
vi /usr/local/apache/conf/httpd.conf
DirectoryIndex后加上index.php
加一行 AddType application/x-httpd-php .php .phtml .php3 .inc
加一行 LoadModule php4_module modules/libphp4.so
AddDefaultCharset后改为GB2312
5. 启动时运行:
vi /etc/rc.d/rc.local 加一行 /usr/local/apache/bin/apachectl start
MySQL:
1. 下载:
http://mysql.ihostunit.com/Downloads/MySQL-4.0/mysql-standard-4.0.13-pc-linux-i686.tar.gz
2. 安装:
groupadd mysql
useradd -g mysql mysql
cd /usr/local
gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
ln -s full-path-to-mysql-VERSION-OS mysql
cd mysql
scripts/mysql_install_db
chown -R root .
chown -R mysql data
chgrp -R mysql .
3. 运行:
./bin/mysqld_safe --user=mysql &
4. 启动时运行:
vi /etc/rc.d/rc.local 加一行 cd /usr/local/mysql;./bin/mysqld_safe --user=mysql &
PHP:
1. 下载:
http://www.php.net/get/php-4.3.2.tar.gz/from/this/mirror
2. 解包:
tar xvfz php-4.3.2.tar.gz
3. 安装:
cd php-4.3.2
./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --with-gd --with-zlib --with-xml
make
make install
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/lib/php.ini 修改 mysql.default_socket =/tmp/mysql.sock
ProFTPD:
1. 下载:
ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.8.tar.gz
2. 解包:
tar xvfz proftpd-1.2.8.tar.gz
3. 安装:
cd proftpd-1.2.8
./configure
make
make install
vi /usr/local/etc/proftpd.conf 将 Group 后改为nobody
4. 运行:
/usr/local/sbin/proftpd
5. 启动时运行:
vi /etc/rc.d/rc.local 加一行 /usr/local/sbin/proftpd
vsftpd:
1. 下载:
ftp://ftp.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/vsftpd-1.1.3-8.i386.rpm
2. 安装:
rpm -ihv vsftpd-1.1.3-8.i386.rpm
3. 配置:
vi /etc/vsftpd.conf
每一个选项都有详细说明,根据需要按照说明进行配置。
修改/etc/vsftpd将disable设置为NO
4. 运行:
service xinetd reload
UnrealIRCd:
1. 下载:
http://www.unrealircd.com/downloads.php
2. 解包:
tar xvfz Unreal3.2-beta16.tar.gz.tar
3. 安装:
cd Unreal3.2
./Config
./make
4. 配置:
cp doc/example.conf ./unrealircd.conf
根据需求按照文档设置unrealircd.conf
5. 运行:
./unreal start
6. 启动时运行:
vi /etc/rc.d/rc.local 加一行 cd /home/hutuworm/Unreal3.2;./unreal start
pptpd:
1. 下载:
http://aleron.dl.sourceforge.net/sourceforge/poptop/pptpd-1.1.4-b4.tar.gz
2. 解包:
tar xvfz pptpd-1.1.4-b4.tar.gz
3. 安装:
cd poptop-1.1.4/
./configure
make
make check
make install
4. 配置:
※ vi /etc/pptpd.conf
speed 115200
option /etc/ppp/options
localip 192.168.1.88-168
remoteip 192.168.2.88-168
※ vi /etc/ppp/options
lock
name hutuworm.org
auth
require-chap
proxyarp
※ vi /etc/ppp/chap-secrets
hutuworm hutuworm.org password *
※ vi /etc/rc.d/rc.local
modprobe ipip
modprobe ip_conntrack
modprobe iptable_nat
modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -d 0.0.0.0/0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
/usr/local/sbin/pptpd
5. 重起后自动运行:
reboot
cnphpBB:
1. 下载:
http://www.cnphpbb.com/forum/download.php?id=393
2. 解包:
unrar x phpBB204mod.rar
3. 安装:
mv phpBB204mod /usr/local/apache/htdocs/forum
chown nobody.nobody /usr/local/apache/htdocs/ -R
mysql: create DATABASE forum;
用浏览器打开http://你的域名/forum/,页面将自动转向安装页面
填好所需参数,按下一步
将forum/contrib,forum/install目录删除
JabberD:
1. 下载:
http://jabberd.jabberstudio.org/quickstart/linux/jabberd-quickstart-0.2-linux.tar.gz
2. 解包:
tar xvfz jabberd-quickstart-0.2-linux.tar.gz
3. 管理:
cd jabberd-quickstart
./setup.sh
显示界面以配置参数、管理用户、启停Jabber服务器
4. 客户端:
JAJC : Just Another Jabber Client
主页: http://jajc.ksn.ru/
软件包: http://jajc.ksn.ru/downloads/jajc0.0.7.100.rar
中文语言包: http://jajc.ksn.ru/lngs/zh.lng
ample:
1. 下载:
http://aleron.dl.sourceforge.net/sourceforge/ample/ample-0.5.6.tar.gz
2. 解包:
tar xvfz ample-0.5.6.tar.gz
3. 安装:
cd ample-0.5.6
./configure
make
make install
4. 配置:
在/usr/local/etc/目录下建立新文件:ample.conf
内容可参照以下样例修改:
# An example of a Ample config file
#
# @Copyleft 2003 hutuworm.org
#
# All options supported are included
#
# Boolean values can be given as (case insensitive)
# yes,true,no,false
# Port number to use
port = 8000
# Should files be ordered?
order = false
# Amount of simultaneous clients allowed
clients = 5
# Path to logfile if syslog isn't used
logfile = /var/log/ample
# Path to MP3 files
mp3path = /usr/local/mp3 # mp3文件都放在这个目录下
# Should that path be recursively scanned?
recursive = true
# Name of the server (displayed to clients in HTML and MetaData)
servername = hutuworm Internet Radio http://radio.hutuworm.org:8000/
# The end
5. 运行:
/usr/local/bin/ample
可用XMMS,winamp,Media Player等客户端软件访问http://radio.hutuworm.org:8000/
※ 糊涂馋寺:自由软件文档传染源 http://www.hutuworm.org