※軟件版本
RedHat Linux 8.0
Apache 2.0.45
mysql 3.23.56
PHP 4.3.1
ProFTPD 1.2.8
※安裝過程
Apache:
1. 下載:
http://www.apache.org/dist/httpd/httpd-2.0.45.tar.gz
2. 解包:
tar xvfz httpd-2.0.45.tar.gz
3. 安裝:
cd httpd-2.0.45
./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. 使用RedHat自帶的MySQL,用up2date升級到3.23.56
2. 運行:
service mysqld start
3. 啟動時運行:
chkconfig --add mysqld
PHP:
1. 下載:
http://www.php.net/get/php-4.3.1.tar.gz/from/this/mirror
2. 解包:
tar xvfz php-4.3.1.tar.gz
3. 安裝:
cd php-4.3.1
./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
※ 糊塗饞寺:自由軟件文檔傳染源 http://www.hutuworm.org
>