Summary
This article briefly introduces the installation of network service software on the Linux platform, such as Apache, MySQL, PHP, ftp server, IRC server, VPN Server, BBS server, Instant Messaging Server, and network radio server. configuration. (09:20:59)
By dumb
Linux network service software installation memorandum ver 0.3
By huhuuworm
※Software version
RedHat Linux 9 □the following software is successfully installed on this platform
Apache 2.0.46 ◇ Web Server
MySQL 4.0.13 ◇ Database Server
PHP 4.3.1 ◇ server scripting language
ProFTPD 1.2.8 ◇ FTP Server
Vsftpd 1.1.0-1 ◇ very secure FTP Server
UnrealIRCd 3.2-beta16 ◇ IRC server
Pptpd 1.1.4-b3 ◇ VPN Server
CnphpBB 2.0.4mod ◇ BBS written in PHP
JabberD Quickstart 0.2 ◇ Instant Messaging Server
Ample 0.5.6 ◇ network radio Server
※Installation Process
Apache:
1. Download:
Http://www.apache.org/dist/httpd/httpd-2.0.46.tar.gz
2. Unpack:
Tar xvfz httpd-2.0.46.tar.gz
3. installation:
Cd httpd-2.0.46
./Configure -- prefix =/usr/local/apache -- enable-so
Make
Make install
4. Modify httpd. conf:
Vi/usr/local/apache/conf/httpd. conf
Add index. php to DirectoryIndex
Add AddType application/x-httpd-php. php. phtml. php3. inc
Add a line of LoadModule php4_module modules/libphp4.so
Change adddefacharcharset to GB2312
5. run at startup:
Vi/etc/rc. d/rc. local add a line/usr/local/apache/bin/apachectl start
MySQL:
1. Download:
Http://mysql.ihostunit.com/Downloads/MySQL-4.0/mysql-standard-4.0.13-pc-linux-i686.tar.gz
2. installation:
Groupadd mysql
Useradd-g 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. Run:
./Bin/mysqld_safe -- user = mysql &
4. run at startup:
Vi/etc/rc. d/rc. local Add a cd/usr/local/mysql;./bin/mysqld_safe -- user = mysql &
PHP:
1. Download:
Http://www.php.net/get/php-4.3.2.tar.gz/from/this/mirror
2. Unpack:
Tar xvfz php-4.3.2.tar.gz
3. installation:
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 modify mysql. default_socket =/tmp/mysql. sock
ProFTPD:
1. Download:
Ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.8.tar.gz
2. Unpack:
Tar xvfz proftpd-1.2.8.tar.gz
3. installation:
Cd proftpd-1.2.8
./Configure
Make
Make install
Vi/usr/local/etc/proftpd. conf change Group to nobody
4. Run:
/Usr/local/sbin/proftpd
5. run at startup:
Vi/etc/rc. d/rc. local add a line/usr/local/sbin/proftpd
Vsftpd:
1. Download:
Ftp://ftp.rpmfind.net/linux/redhat/9/en/ OS /i386/RedHat/RPMS/vsftpd-1.1.3-8.i386.rpm
2. installation:
Rpm-ihv vsftpd-1.1.3-8.i386.rpm
3. Configuration:
Vi/etc/vsftpd. conf
Each option is described in detail and configured as needed.
Modify/etc/vsftpd and set disable to NO
4. Run:
Service xinetd reload
UnrealIRCd:
1. Download:
Http://www.unrealircd.com/downloads.php
2. Unpack:
Tar xvfz Unreal3.2-beta16.tar.gz.tar
3. installation:
Cd Unreal3.2
./Config
./Make
4. Configuration:
Cp doc/example. conf./unrealircd. conf
Set unrealircd. conf as needed
5. Run:
./Unreal start
6. run at startup:
Vi/etc/rc. d/rc. local add a line of cd/home/huuworm/Unreal3.2;./unreal start
Pptpd:
1. Download:
Http://aleron.dl.sourceforge.net/sourceforge/poptop/pptpd-1.1.4-b4.tar.gz
2. Unpack:
Tar xvfz pptpd-1.1.4-b4.tar.gz
3. installation:
Cd poptop-1.1.4/
./Configure
Make
Make check
Make install
4. Configuration:
※Vi/etc/pptpd. conf
Speed115200
Option/etc/ppp/options
Localip 192.168.1.88-168
Remoteip 192.168.2.88-168
※Vi/etc/PPP/options
Lock
Name huuworm.org
Auth
Require-Chap
Proxyarp
※Vi/etc/PPP/chap-secrets
Huuworm huuworm.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. automatically run after restart:
Reboot
Cnphpbb:
1. Download:
Http://www.cnphpbb.com/forum/download.php? Id = 393
2. Unpack:
Unrar x phpbb204mod.rar
3. installation:
Mv phpBB204mod/usr/local/apache/htdocs/forum
Chown nobody. nobody/usr/local/apache/htdocs/-R
Mysql: create DATABASE forum;
Open http: // your domain name/forum/in a browser. The page will automatically go to the installation page.
Fill in the required parameters and follow the next step
Delete the forum/contrib, forum/install directories.
JabberD:
1. Download:
Http://jabberd.jabberstudio.org/quickstart/linux/jabberd-quickstart-0.2-linux.tar.gz
2. Unpack:
Tar xvfz jabberd-quickstart-0.2-linux.tar.gz
3. Management:
Cd jabberd-quickstart
./Setup. sh
Displays the interface to configure parameters, manage users, and start and stop the Jabber server
4. Client:
JAJC: Just Another Jabber Client
Home: http://jajc.ksn.ru/
Package: http://jajc.ksn.ru/downloads/jajc0.0.7.100.rar
Http://jajc.ksn.ru/lngs/zh.lng Language Pack
Ample:
1. Download:
Http://aleron.dl.sourceforge.net/sourceforge/ample/ample-0.5.6.tar.gz
2. Unpack:
Tar xvfz ample-0.5.6.tar.gz
3. installation:
Cd ample-0.5.6
./Configure
Make
Make install
4. Configuration:
Create a new file in the/usr/local/etc/directory: ample. conf
You can modify the content as follows:
# An example of a Ample config file
#
# @ Copyleft 2003 hutuworm.org
#
# All options supported are supported DED
#
# Boolean values can be given as (case insensitive)
# Yes, true, no, false
# Port number to use
Port = 8000
# Shocould 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 # Put all mp3 files in this directory
# Shoshould that path be recursively scanned?
Recursive = true
# Name of the server (displayed to clients in HTML and MetaData)
Servername = maid Internet Radio http://radio.hutuworm.org: 8000/
# The end
5. Run:
/Usr/local/bin/ample
Available XMMS, winamp, Media Player and other client software access http://radio.hutuworm.org: 8000/
Confused temple: Free Software documentation infectious source http://www.hutuworm.org